.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 8;
  right: 24px;
  bottom: 24px;
  width: min(530px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #dcbda466;
  border-radius: 14px;
  color: var(--paper);
  background: #382617;
  box-shadow: 0 14px 50px #1c120b40;
}
.cookie-banner h2 { margin: 0 0 12px; font: 500 20px/1.3 var(--body); letter-spacing: -.02em; text-transform: none; }
.cookie-banner p { margin: 0 0 8px; color: #f0dfd2; font: 400 14px/1.65 var(--body); }
.cookie-policy { display: inline-flex; align-items: center; min-height: 44px; color: #f0dfd2; font-size: 12px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cookie-actions .button { width: 100%; justify-content: center; min-height: 46px; padding-inline: 12px; font-size: 12px; letter-spacing: .03em; cursor: pointer; }
.cookie-actions .cookie-decline { color: var(--paper); background: transparent; border-color: #dcbda480; }
.cookie-actions .cookie-decline:hover { background: #503922; }
.cookie-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cookie-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .cookie-banner { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); max-height: calc(100dvh - 40px); padding: 20px; }
  .has-mobile-actions .cookie-banner { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 180px - env(safe-area-inset-bottom, 0px)); }
  .cookie-banner h2 { font-size: 18px; }
}
