[data-consent-root] { border: 1px solid currentColor; padding: 1rem; margin-block: 1rem; }
[data-consent-root] .consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
[data-consent-root] button { min-height: 44px; padding: .5rem 1rem; font: inherit; }
[data-consent-root] button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[data-consent-root] [hidden] { display: none !important; }

/* Banner layout: bottom bar on wide screens, full-width stacked sheet on phones. */
[data-consent-root][data-consent-layout="banner"] {
  position: fixed; inset: auto 0 0 0; z-index: 1000; box-sizing: border-box; margin: 0;
  max-height: 33vh; overflow-y: auto; border-width: 1px 0 0;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  background: Canvas; color: CanvasText;
}
[data-consent-root][data-consent-layout="banner"] .consent-actions { flex-direction: column; }
[data-consent-root][data-consent-layout="banner"] .consent-actions button { width: 100%; }
@media (min-width: 40em) {
  [data-consent-root][data-consent-layout="banner"] .consent-actions { flex-direction: row; }
  [data-consent-root][data-consent-layout="banner"] .consent-actions button { width: auto; }
}
/* Hidden after a remembered Reject or a choice in this view, but never while Retry or the error message is needed. */
[data-consent-root][data-consent-layout="banner"]:is([data-consent-remembered="denied"], [data-consent-remembered="granted"], [data-consent-decided]):not([data-consent-phase="blocked"], [data-consent-phase="unavailable"]) {
  display: none;
}
