/* Cookie choices (2 Nov 2026). Site tokens and the site's own .btn classes only; no new colour or font.
   Until the visitor chooses: a full-width band fixed to the bottom of the window, on every page. No close button: Accept or Decline.
   While it is open the page keeps room for it (html.choice-open), so nothing is hidden for good and keyboard focus stays clear of it.
   Opened from "Cookie choices" after a choice: the same label, docked in the corner of the window.
   The running stitch is the one inside .btn-primary. Stacking: under the header's menu (60); Paddle's checkout sits far above everything here. */
.choice-band {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  max-height: 50vh;
  max-height: 50dvh;
  overflow-y: auto;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 -14px 28px -22px rgba(0, 0, 0, .5);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.choice-band::after {
  content: "";
  position: absolute;
  inset: 5px 0;
  border-block: 1px dashed currentColor;
  opacity: .32;
  pointer-events: none;
}
.choice-band.is-leaving { opacity: 0; transform: translateY(100%); }
.choice-band.is-waiting { visibility: hidden; }
html.choice-open { scroll-padding-bottom: calc(var(--choice-band-height, 200px) + 12px); }
html.choice-open body { padding-bottom: var(--choice-band-height, 200px); }
.choice-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px clamp(24px, 4vw, 64px);
  padding-block: 18px;
}
.choice-copy { max-width: 74ch; }
.choice-title { font-size: 1.0625rem; font-stretch: 108%; font-weight: 540; line-height: 1.25; letter-spacing: -.01em; }
.choice-text { margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.choice-text a { color: var(--ink); white-space: nowrap; }
.choice-now { margin-top: 8px; font-size: .9375rem; font-weight: 600; line-height: 1.45; }
.choice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.choice-actions .btn { min-width: 112px; }
.choice-close { margin-left: 8px; font-size: .9375rem; font-weight: 560; }

.choice-band.is-docked {
  inset: auto 16px 16px auto;
  z-index: 70;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctl);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
}
.choice-band.is-docked::after { inset: 5px; border: 1px dashed currentColor; border-radius: 1px; }
.choice-band.is-docked .choice-inner { grid-template-columns: minmax(0, 1fr); padding: 22px 24px; }

@media (max-width: 720px) and (min-height: 421px) {
  .choice-inner { grid-template-columns: minmax(0, 1fr); padding-block: 14px; gap: 10px; }
  .choice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-actions .btn { min-width: 0; }
  .choice-close { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
}
@media (max-width: 720px) {
  .choice-band.is-docked .choice-inner { padding: 18px 20px; }
}
@media (max-width: 520px) {
  .choice-band::after { inset: 3px 0; }
  .choice-inner { padding-block: 9px; gap: 7px; }
  .choice-title { font-size: 1rem; font-stretch: 100%; line-height: 1.2; }
  .choice-text { margin-top: 2px; font-size: .875rem; font-stretch: 92%; line-height: 1.32; }
}
@media (max-height: 420px) {
  .choice-inner { padding-block: 9px; gap: 8px 16px; }
  .choice-text { margin-top: 2px; font-size: .875rem; line-height: 1.32; }
  .choice-actions .btn { min-width: 92px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .choice-band { transition: none; }
}
@media print {
  .choice-band { display: none; }
  html.choice-open body { padding-bottom: 0; }
}
