/* The one cookie banner: compact floating card, bottom-right. Vesper palette
   (void / chalk / signal) with fallbacks for pages without soda tokens. */
.cookie-consent[hidden], .cookie-consent [hidden], [data-cookie-settings][hidden] { display: none !important; }
.cookie-consent {
  --cc-ink: var(--vesper-void, #0b0b0c);
  --cc-paper: var(--vesper-chalk, #fdfdfd);
  --cc-signal: var(--vesper-signal, #6cf3a3);
  --cc-muted: #4f5356;
  --cc-line: rgba(11, 11, 12, .12);
  --cc-soft: #f2f3ef;
  position: fixed; z-index: 10000;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box; width: min(360px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto;
  margin: 0; padding: 1.1rem 1.1rem 1rem;
  background: var(--cc-paper); color: var(--cc-ink);
  border: 1px solid var(--cc-line); border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 11, 12, .18), 0 2px 6px rgba(11, 11, 12, .08);
  font: 400 15px/1.5 var(--font-main, system-ui, -apple-system, 'Segoe UI', sans-serif);
  text-align: left;
  /* The Soda document is color-scheme: dark; this card is a light surface. */
  color-scheme: light;
}
.cookie-consent *, .cookie-consent *::before, .cookie-consent *::after { box-sizing: border-box; }
.cookie-consent__head { display: flex; align-items: center; gap: .7rem; }
.cookie-consent__icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--cc-ink); color: var(--cc-signal); }
.cookie-consent .cookie-consent__title { flex: 1 1 auto; margin: 0; font: 600 1.05rem/1.3 var(--font-display, inherit); color: inherit; letter-spacing: 0; }
.cookie-consent .cookie-consent__title:focus { outline: none; }
.cookie-consent .cookie-consent__title:focus-visible { outline: 3px solid var(--cc-ink); outline-offset: 3px; border-radius: 4px; }
.cookie-consent__close { flex: 0 0 auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.5rem -.55rem -.5rem 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--cc-muted); cursor: pointer; }
.cookie-consent__close:hover { background: var(--cc-soft); color: var(--cc-ink); }
.cookie-consent .cookie-consent__text { margin: .7rem 0 0; color: var(--cc-muted); font-size: .9rem; }
.cookie-consent .cookie-consent__text a { color: var(--cc-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__prefs { display: grid; gap: .5rem; margin-top: .85rem; }
.cookie-consent__category { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--cc-line); border-radius: 12px; background: var(--cc-soft); cursor: pointer; }
.cookie-consent__category input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--cc-ink); cursor: pointer; }
.cookie-consent__category input:disabled { cursor: not-allowed; }
.cookie-consent__category span { display: grid; gap: .1rem; }
.cookie-consent__category strong { font-weight: 600; font-size: .92rem; }
.cookie-consent__category small { color: var(--cc-muted); font-size: .8rem; line-height: 1.4; }
.cookie-consent__status { margin: .5rem 0 0; font-size: .82rem; color: #8a1c1c; }
.cookie-consent__status:empty { display: none; }
.cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.cookie-consent__prefs .cookie-consent__actions { margin-top: .35rem; }
/* Keep the initial accept/customize actions in one shared two-column row. */
.cookie-consent__button { min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--cc-ink); border-radius: 12px; background: var(--cc-ink); color: var(--cc-paper); font: 600 .88rem/1.2 inherit; cursor: pointer; }
.cookie-consent__button:hover { background: #23262a; }
.cookie-consent__button--quiet { background: transparent; color: var(--cc-ink); }
.cookie-consent__button--quiet:hover { background: var(--cc-soft); }
.cookie-consent__customize { display: block; width: 100%; min-height: 44px; margin-top: .35rem; padding: .4rem; border: 0; border-radius: 10px; background: transparent; color: var(--cc-ink); font: 600 .86rem/1.2 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-consent__customize:hover { background: var(--cc-soft); }
.cookie-consent button:focus-visible, .cookie-consent a:focus-visible, .cookie-consent input:focus-visible, [data-cookie-settings]:focus-visible {
  outline: 3px solid var(--cc-ink, #0b0b0c); outline-offset: 2px; box-shadow: 0 0 0 6px var(--cc-signal, #6cf3a3);
}
@media (max-width: 480px) {
  .cookie-consent { left: max(.75rem, env(safe-area-inset-left)); right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); width: auto; max-height: min(78vh, calc(100vh - 1.5rem)); padding: 1rem .95rem .85rem; }
  /* Keep the page's own last controls (checkout submit) reachable by scrolling. */
  html.has-cookie-consent body { padding-bottom: calc(var(--cookie-consent-h, 0px) + 1.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-consent:not([hidden]) { animation: cookie-consent-in .22s ease-out; }
  @keyframes cookie-consent-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) { .cookie-consent { border: 2px solid CanvasText; } .cookie-consent__button { border: 2px solid ButtonText; } }

.cookie-consent__actions .cookie-consent__customize { margin-top: 0; width: auto; }
