#cookie-banner:not([hidden]) {
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: .8rem max(1rem,calc((100% - 1160px) / 2)) max(.8rem,env(safe-area-inset-bottom));
  background: var(--paper, #fcfaf4);
  color: var(--ink, #0b1120);
  border-top-width: 2px;
  max-height: 50dvh;
  overflow: auto;
}
#cookie-banner h2 { margin: 0 0 .25rem; }
#cookie-banner p { line-height: 1.45; }
#cookie-banner .cookie-actions { display: flex; gap: .5rem; align-items: center; margin: 0; }
#cookie-banner .cookie-actions .button { min-height: 44px; width: auto; white-space: nowrap; }
#cookie-banner .cookie-actions .text-button { min-height: 44px; }
#cookie-dialog::backdrop { background: transparent; }
#cookie-dialog { box-shadow: 0 8px 32px #0b112044; }
#cookie-dialog fieldset { border: 1px solid #0b112026; border-radius: 6px; padding: .55rem .75rem; margin: .7rem 0; }
#cookie-dialog legend, #cookie-dialog .consent-essential strong { font-weight: 700; }
#cookie-dialog .consent-essential span { color: #565e71; font-size: .875rem; margin-left: .5rem; }
#cookie-dialog .consent-essential p { margin: .2rem 0 .6rem; }
@media(max-width:800px) {
  #cookie-banner:not([hidden]) { flex-direction: column; align-items: stretch; gap: .35rem; padding-block: .55rem max(.55rem,env(safe-area-inset-bottom)); }
  #cookie-banner h2 { font-size: 1.05rem; line-height: 1.2; }
  #cookie-banner p { font-size: .875rem; line-height: 1.28; }
  #cookie-banner .cookie-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
  #cookie-banner .cookie-actions :is(.button,.text-button) { width: 100%; min-width: 0; padding-inline: .3rem; white-space: normal; font-size: .875rem; line-height: 1.2; }
}
html:has(#cookie-banner:not([hidden])) { scroll-padding-bottom: min(11rem,30vh); }
