/* Scoped consent UI; the landing's typography, palette and CTA stay unchanged. */
.cookie-banner-visible body { background: #1b1b18; }
.cookie-banner, .cookie-dialog {
  box-sizing: border-box;
  color: var(--text, #f2efe8);
  background: var(--surface, #2d2f31);
  border: 1px solid rgb(242 239 232 / 15%);
  border-radius: 14px;
  font-family: var(--font-body);
  box-shadow: 0 10px 36px rgb(0 0 0 / 22%);
}
.cookie-banner[hidden], .cookie-error[hidden] { display: none; }
.cookie-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  width: min(1400px, calc(100% - 64px));
  margin: 12px auto 0;
  padding: 14px 20px;
  box-shadow: none;
}
.cookie-banner h2, .cookie-dialog h2 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.cookie-banner h2 { font-size: .9375rem; }
.cookie-banner p { grid-column: 1; margin: 0; max-width: none; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.cookie-banner .cookie-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.cookie-actions { display: flex; gap: 12px; align-items: center; }
.cookie-button {
  appearance: none; min-height: 44px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 8px;
  font: 700 .75rem/1.4 var(--font-body); letter-spacing: .025em;
  cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.cookie-button--primary { color: #252729; background: #f7ba4f; }
.cookie-button--primary:hover { background: #f9c56a; }
.cookie-button--secondary { color: var(--text); background: transparent; border-color: rgb(242 239 232 / 22%); }
.cookie-button--secondary:hover { border-color: var(--accent); background: rgb(247 186 79 / 5%); }
.cookie-button--text { font-weight: 500; letter-spacing: 0; color: var(--muted); background: transparent; }
.cookie-button--text:hover { color: var(--text); background: rgb(242 239 232 / 5%); }
.cookie-button:focus-visible, .cookie-footer-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.landing .cookie-footer-link { appearance: none; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; }
.cookie-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; margin: auto; overflow: auto; }
.cookie-dialog::backdrop { background: rgb(12 14 16 / 60%); }
html:has(.cookie-dialog[open]) { overflow: hidden; }
.cookie-dialog h2 { font-size: 1.2rem; margin-bottom: 24px; }
.cookie-dialog .cookie-actions { margin-top: 24px; }
.cookie-dialog .cookie-button { flex: 1; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgb(242 239 232 / 10%); cursor: pointer; }
.cookie-category:first-of-type { padding-top: 0; }
.cookie-category__label { display: grid; gap: 5px; font-size: .9rem; font-weight: 500; }
.cookie-category small { color: var(--muted-soft); font-size: .75rem; font-weight: 400; }
.cookie-switch { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 44px; }
.cookie-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 10px 0; border: 1px solid rgb(242 239 232 / 30%); background: #424547; border-radius: 20px; transition: background-color .18s; }
.cookie-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #f2efe8; transition: transform .18s; }
.cookie-switch input:checked + span { background: #f7ba4f; border-color: #f7ba4f; }
.cookie-switch input:checked + span::after { transform: translateX(20px); background: #252729; }
.cookie-switch input:disabled { cursor: default; }
.cookie-switch input:disabled + span { background: #666863; border-color: #85867f; }
.cookie-switch input:disabled + span::after { background: #f2efe8; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.cookie-error, .cookie-banner .cookie-error { color: var(--text); font-size: .75rem; line-height: 1.5; margin: 12px 0 0; }
/* The purchase dialog remains above the banner; no competing overlay. */
body.body--modal-open .cookie-banner { visibility: hidden; }
@media (max-width: 699px) {
  .cookie-banner { width:calc(100% - 32px); padding:14px 16px; grid-template-columns:1fr; gap:8px; }
  .cookie-banner .cookie-actions { grid-column:1; grid-row:auto; margin-top:4px; }
  .cookie-banner .cookie-actions > * { flex: 1; }
  .cookie-banner p { font-size: .75rem; }
  .cookie-banner h2 { font-size: .9rem; }
  .cookie-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-button, .cookie-switch span, .cookie-switch span::after { transition: none; }
}

/* The consent strip uses its own space above the hero, including on short laptops. */
@media(min-width:700px) {
  .cookie-banner .cookie-button, .cookie-dialog .cookie-button { font-size:.8125rem; }
}
