.analytics-consent{box-sizing:border-box;width:100%;padding:14px clamp(16px,4vw,64px);background:#f3efe8;color:#252525;border-bottom:1px solid #d8d1c6;display:flex;align-items:center;justify-content:center;gap:24px;font:13px/1.5 Arial,sans-serif}
.analytics-consent[hidden]{display:none!important}.analytics-consent>div:first-child{max-width:830px}.analytics-consent strong{font-size:14px}.analytics-consent p{margin:4px 0 0}.analytics-consent a{text-decoration:underline;color:inherit}.analytics-consent-actions{display:flex;gap:8px;flex-shrink:0}.analytics-consent button{font:inherit;font-weight:600;padding:10px 16px;border:1px solid #555;background:transparent;color:#252525;cursor:pointer;white-space:nowrap;border-radius:0}.analytics-consent [data-analytics-accept]{background:#252525;color:white}.analytics-consent button:focus-visible,.analytics-preferences:focus-visible{outline:2px solid #8b5e35;outline-offset:3px}.analytics-preferences{font:inherit;font-size:12px;background:none;border:0;color:inherit;text-decoration:underline;cursor:pointer;margin:12px 0;padding:5px}
@media(max-width:760px){.analytics-consent{display:block;padding:12px 16px}.analytics-consent-actions{margin-top:10px}.analytics-consent-actions button{flex:1;min-width:0}}

.meta-consent-choice{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:13px;line-height:1.5}.meta-consent-choice input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:#202020}

/* Keep the notice out of document flow to avoid moving painted content. */
.analytics-consent:not([hidden]){
 position:fixed;
 inset:auto 0 0;
 z-index:19;
 max-height:min(42dvh,max(0px,calc(100dvh - var(--nav-height,160px) - 8px)));
 overflow:auto;
 scroll-padding-bottom:70px;
 overscroll-behavior:contain;
 padding-bottom:max(14px,env(safe-area-inset-bottom));
 box-shadow:0 -3px 14px #0002;
}
.analytics-consent:not([hidden]) .analytics-consent-actions{position:sticky;bottom:0;z-index:1;background:#f3efe8;padding:8px 0}
.analytics-consent:not([hidden]) .analytics-consent-actions button{min-height:44px}
@media(max-width:760px){.analytics-consent:not([hidden]){padding-right:72px}}
@media(max-width:480px){.analytics-consent:not([hidden]){scroll-padding-bottom:150px}.analytics-consent:not([hidden]) .analytics-consent-actions{flex-direction:column}}
@media(max-height:500px){.analytics-consent:not([hidden]){display:block}.analytics-consent:not([hidden]) .analytics-consent-actions{margin-top:10px}}
@media(max-width:480px) and (max-height:400px){.analytics-consent:not([hidden]){scroll-padding-bottom:70px}.analytics-consent:not([hidden]) .analytics-consent-actions{flex-direction:row}.analytics-consent:not([hidden]) button{font-size:11px;padding-inline:4px}}
body:has(> #staging-banner) .analytics-consent:not([hidden]){max-height:min(42dvh,max(0px,calc(100dvh - var(--nav-height,160px) - 72px)))}

/* On a failed save, keep the alert visible in short viewports; controls remain scrollable. */
.analytics-consent:not([hidden]):has([data-consent-save-error]) .analytics-consent-actions{position:static}
.analytics-consent [data-consent-save-error]{margin:0 0 8px;font-weight:600}
