/* V24.12 — compact privacy notice: the first screen belongs to the work.
   Same text, same choices; only the first (intro) state is made smaller.
   The preferences view keeps the original layout. */
.afp-consent:has(#afp-consent-prefs[hidden]){
  display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;
  width:min(400px,calc(100vw - 28px));padding:14px 16px 12px;border-radius:18px;
  box-shadow:0 14px 44px rgba(0,0,0,.42);
}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-consent-intro{display:contents}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-consent-header{flex:1 0 100%;gap:8px}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-consent-symbol{width:22px;height:22px;flex-basis:22px;font-size:12px}
.afp-consent:has(#afp-consent-prefs[hidden]) h2{font-size:13.5px}
.afp-consent:has(#afp-consent-prefs[hidden]) p{flex:1 0 100%;margin:6px 0 10px;font-size:11.5px;line-height:1.6}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-consent-actions{flex:1 0 100%;gap:8px}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-btn{min-height:38px;padding:8px 9px;font-size:11px}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-preferences-link,
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-details-toggle{display:inline-block;margin:6px 0 0;padding:6px 2px 2px;font-size:11px}
.afp-consent:has(#afp-consent-prefs[hidden]) .afp-details{flex:1 0 100%}
@media(max-width:650px){
  .afp-consent:has(#afp-consent-prefs[hidden]){
    inset-inline:12px;width:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px));padding:12px 14px 10px;border-radius:16px;
  }
  /* The hero's two buttons must stay fully visible above the notice on phones:
     the title row is hidden visually only (it still names the dialog for screen readers). */
  .afp-consent:has(#afp-consent-prefs[hidden]) .afp-consent-header{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .afp-consent:has(#afp-consent-prefs[hidden]) p{margin-top:0}
  .afp-consent:has(#afp-consent-prefs[hidden]) .afp-btn{min-height:44px}
  .afp-consent:has(#afp-consent-prefs[hidden]) .afp-preferences-link,
  .afp-consent:has(#afp-consent-prefs[hidden]) .afp-details-toggle{min-height:32px}
}
