.ffb .ffb-consent[hidden] { display:none; }
.ffb .ffb-consent { position:fixed; inset:0; margin:auto; z-index:100; box-sizing:border-box; width:min(720px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; padding:16px 20px; border:1px solid var(--ffb-line); border-radius:var(--ffb-r3); color:var(--ffb-text); background:var(--ffb-surface); box-shadow:var(--ffb-shadow-pop); }
.ffb .ffb-consent .ffb-h2 { margin:0 0 12px; font-size:18px; line-height:1.5; }
.ffb .ffb-consent p { margin:8px 0; font-size:16px; line-height:1.7; }
.ffb .ffb-consent__close { position:absolute; inset:6px 6px auto auto; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:var(--ffb-r2); color:var(--ffb-text); background:none; font:inherit; font-size:24px; cursor:pointer; }
.ffb .ffb-consent__details { font-size:16px; }
.ffb .ffb-consent__details summary { display:flex; align-items:center; min-height:44px; width:fit-content; color:var(--ffb-link); text-decoration:underline; cursor:pointer; }
.ffb .ffb-consent__actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.ffb .ffb-consent__actions .ffb-btn { flex:1 1 120px; min-height:44px; white-space:normal; }
.ffb .ffb-consent [data-analytics-status]:empty, .ffb [data-analytics-notice]:empty { display:none; }
.ffb .ffb-consent :is(button,summary,a):focus-visible, .ffb .ffb-consent .ffb-h2:focus { outline:2px solid var(--ffb-focus); outline-offset:3px; }
.ffb .ffb-analytics-preferences { padding:8px 0; min-height:44px; background:none; border:0; color:var(--ffb-link); text-decoration:underline; font:inherit; cursor:pointer; }
.ffb .ffb-analytics-preferences:focus-visible { outline:2px solid var(--ffb-focus); outline-offset:4px; }
.ffb .ffb-analytics-preview { margin:16px; padding:12px; background:var(--ffb-surface); border:1px solid var(--ffb-line); }
.ffb .ffb-analytics-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
@media(max-width:599px) { .ffb .ffb-consent { width:calc(100% - 24px); padding:20px; max-height:calc(100dvh - 24px); } }
.ffb .ffb-consent::backdrop { background:rgb(0 0 0 / 48%); }
html:has(.ffb-consent[open]) { overflow:hidden; }
.ffb .ffb-consent__actions .ffb-btn { flex:1 1 0; min-width:0; }
@media(max-height:480px) { .ffb .ffb-consent { padding:16px; } }
