/* All rules are scoped to optional consent. No document layout or global selectors. */
#measurement-banner{position:fixed;z-index:120;bottom:18px;left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 28px));box-sizing:border-box;background:var(--paper,#fff);color:var(--ink,#24284c);border:1px solid var(--line,#dbdbeb);border-radius:16px;padding:15px 18px;box-shadow:0 6px 26px #23274720;display:flex;gap:18px;align-items:center}
#measurement-banner[hidden],#consent [hidden]{display:none!important}#measurement-banner .measurement-copy{flex:1;min-width:0}#measurement-banner p{font-size:13px;line-height:1.5;margin:0}#measurement-banner .measurement-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}#measurement-banner .btn{font-size:13px;min-height:42px;padding:9px 13px}
#consent.consent-dialog{width:min(460px,calc(100% - 28px));max-height:86dvh;box-sizing:border-box;overflow:auto}#consent .dialog-body{padding:22px 22px 12px}#consent h2{font-size:25px;margin:12px 0}#consent p{font-size:14px;line-height:1.5}#consent .settings-item{gap:12px;align-items:center}#consent .settings-item>div{min-width:0}#consent .toggle{flex-shrink:0}#consent .footer-actions{padding:14px 22px 22px;display:flex;gap:10px;flex-wrap:wrap}#consent .footer-actions .btn{font-size:14px;min-height:44px;white-space:normal}#consent button:disabled,#measurement-banner button:disabled{opacity:.65;cursor:wait}#consent .measurement-status,#measurement-banner .measurement-status{margin-top:8px;font-size:12px}#consent .measurement-spinner,#measurement-banner .measurement-spinner{display:inline-block;width:.9em;height:.9em;vertical-align:middle;margin-right:.45em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:measurement-spin .85s linear infinite}
@keyframes measurement-spin{to{transform:rotate(360deg)}}@media(max-width:720px){#measurement-banner{bottom:calc(76px + env(safe-area-inset-bottom,0px));flex-direction:column;align-items:stretch;padding:14px;gap:11px}#measurement-banner .measurement-actions{justify-content:stretch}#measurement-banner .btn{flex:1;white-space:normal}#consent .footer-actions>.btn{flex:1}}@media(prefers-reduced-motion:reduce){#consent .measurement-spinner,#measurement-banner .measurement-spinner{animation:none;border-style:dotted}}

/* Keep every consent action reachable on short/touch screens, above floating navigation. */
#measurement-banner{max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain}
#measurement-banner .measurement-actions{margin:0;flex-shrink:0}
#measurement-banner .btn{min-height:44px;touch-action:manipulation}
#consent.consent-dialog{max-height:86vh;max-height:86dvh}
#consent.consent-fallback[open]{display:block;position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:125;box-shadow:0 0 0 100vmax #20244880}
@media(max-width:720px){#measurement-banner{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px)}#measurement-banner .measurement-actions{flex-shrink:0;gap:8px}#measurement-banner .measurement-copy{flex:none}#measurement-banner .btn{min-width:76px}}
@media(max-height:480px){#measurement-banner{bottom:8px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}}

.consent-fallback-backdrop{position:fixed;inset:0;z-index:124;background:#20244880}.consent-fallback-backdrop[hidden]{display:none!important}
#consent.consent-fallback[open]{box-shadow:0 10px 42px #20244830}

/* R22: recovery control remains reachable on small and embedded WebViews. */
#measurement-banner [data-consent-continue][hidden],#consent [data-consent-continue][hidden]{display:none!important}
#measurement-banner .consent-continue,#consent .consent-continue{display:block;margin-top:10px;max-width:100%;min-height:44px;white-space:normal;text-align:center}
@media(max-width:440px){#consent.consent-dialog{width:calc(100% - 20px);padding:0}#consent .dialog-body{padding:18px 16px 12px}#consent .footer-actions{padding:12px 16px 18px}}
