/* ============================================================================
   Black Week 2026 — one stylesheet for the whole funnel
   (/black-week, /black-week-*-valg, /black-week-*-koeb, /black-week-tak)
   ----------------------------------------------------------------------------
   Idea: a bookshop window on Black Friday. True black, white and the yellow of
   a Danish price tag. The 33 covers are the only other colour on the page, so
   the chrome stays out of their way.

   One typeface, Archivo, self-hosted. Its width axis does the work: narrow and
   heavy for headlines and prices (offer-leaflet numerals), normal for reading.

   No Tailwind here on purpose: these pages shipped with the CDN runtime, which
   costs ~300 KB of JS and a flash of unstyled content on a checkout.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bw-black: #000;
  --bw-paper: #fff;
  --bw-tag: #ffdd1a;        /* price-tag yellow: buttons, sticker, selection */
  --bw-tag-press: #f2cd00;
  --bw-ink-2: #454545;      /* secondary text on white */
  --bw-ink-3: #6b6b6b;      /* tertiary text on white, 5.3:1 */
  --bw-rule: #dedede;
  --bw-well: #f3f3f3;
  --bw-on-black-2: #bdbdbd; /* secondary text on black */
  --bw-rule-on-black: #333;
  --bw-focus: #2563eb;      /* brand blue, focus rings only */
  --bw-wrap: 1180px;
  --bw-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Resets live in :where() so they carry no specificity: a single class
   further down always wins, without having to out-rank ".bw p". */

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body.bw {
  margin: 0;
  background: var(--bw-paper);
  color: var(--bw-black);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:where(.bw) img { display: block; max-width: 100%; height: auto; }
:where(.bw) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.bw) :is(ul, ol) { padding: 0; list-style: none; }
:where(.bw) a { color: inherit; text-underline-offset: 3px; }
:where(.bw) s { text-decoration-thickness: 1.5px; }
:where(.bw) button { font: inherit; color: inherit; }
.bw :focus-visible { outline: 3px solid var(--bw-focus); outline-offset: 3px; }
.bw .bw-dark :focus-visible { outline-color: var(--bw-tag); }
[x-cloak] { display: none !important; }

.bw-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.bw-wrap { width: min(var(--bw-wrap), 100% - 2 * var(--bw-gutter)); margin-inline: auto; }
.bw-dark { background: var(--bw-black); color: var(--bw-paper); }
.bw-nowrap { white-space: nowrap; }

/* --- type ---------------------------------------------------------------- */

.bw-display {
  font-stretch: 68%;
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.012em;
}
.bw-h1 { font-size: clamp(2.5rem, 9.6vw, 7.5rem); }
.bw-h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
.bw-h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; }
.bw-lede { font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 34em; }
.bw-small { font-size: .875rem; line-height: 1.45; }
.bw-muted { color: var(--bw-ink-3); }
.bw-dark .bw-muted { color: var(--bw-on-black-2); }

/* Prices are set like the numerals in an offer leaflet: as narrow and as heavy
   as the face goes, with the unit small and raised. */
.bw-price {
  display: inline-flex; align-items: flex-start; gap: .08em;
  font-stretch: 62%; font-weight: 900; line-height: .82;
  font-size: clamp(4rem, 7.4vw, 6.25rem);
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.bw-price small {
  font-size: .27em; font-stretch: 80%; font-weight: 700; letter-spacing: 0;
  line-height: 1; padding-top: .12em;
}

/* --- buttons ------------------------------------------------------------- */

.bw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  border: 2px solid var(--bw-black); border-radius: 6px;
  background: var(--bw-tag); color: var(--bw-black);
  font-size: 1.125rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .12s ease, transform .12s ease;
}
.bw-btn:hover { background: var(--bw-tag-press); }
.bw-btn:active { transform: translateY(1px); }
.bw-btn[disabled] { opacity: .5; cursor: default; }
.bw-dark .bw-btn { border-color: var(--bw-tag); }
.bw-btn--ink { background: var(--bw-black); color: var(--bw-paper); }
.bw-btn--ink:hover { background: #222; }
.bw-btn--block { width: 100%; }

/* --- top bar (shared by all four pages) ---------------------------------- */

.bw-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.bw-logo img { width: auto; height: 32px; }
.bw-top__link { font-size: 1rem; font-weight: 600; }

/* ============================================================================
   Landing
   ========================================================================== */

.bw-hero { overflow: hidden; padding-bottom: clamp(40px, 6vw, 72px); }
.bw-hero__copy { padding-top: clamp(20px, 4.5vw, 56px); }
.bw-hero__copy .bw-lede { margin-top: clamp(20px, 2.4vw, 32px); color: #e6e6e6; }
.bw-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(24px, 2.8vw, 36px); }
.bw-hero__cta p { max-width: 20em; }

/* The window: every cover in the catalogue on two shelves that run off both
   edges of the screen and drift slowly against each other. This is the only
   motion on the page that the visitor did not ask for. */
.bw-wall { position: relative; margin-top: clamp(36px, 5vw, 64px); display: grid; gap: clamp(8px, 1.1vw, 14px); }
.bw-wall__row {
  display: flex; gap: clamp(8px, 1.1vw, 14px); width: max-content;
  animation: bw-drift 90s ease-in-out infinite alternate;
}
.bw-wall__row:nth-child(2) { animation-direction: alternate-reverse; }
.bw-wall__row img {
  width: clamp(98px, 11vw, 158px); aspect-ratio: 5 / 7; object-fit: cover;
  background: #1c1c1c; border-radius: 2px 4px 4px 2px;
  outline: 1px solid rgba(255, 255, 255, .16); outline-offset: -1px;
}
@keyframes bw-drift {
  to { transform: translateX(min(0px, calc(100vw - 100%))); }
}

/* A bookseller's price sticker, stuck on the window. */
.bw-sticker {
  position: absolute; z-index: 2; top: clamp(-52px, -3.4vw, -30px); right: max(var(--bw-gutter), calc((100vw - var(--bw-wrap)) / 2));
  display: grid; place-content: center; justify-items: center;
  width: clamp(128px, 15vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--bw-tag); color: var(--bw-black); text-decoration: none; text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transition: transform .18s ease;
}
.bw-sticker:hover { transform: rotate(-4deg) scale(1.04); }
.bw-sticker span { font-size: clamp(.8rem, 1.15vw, 1.05rem); font-weight: 700; line-height: 1.15; }
.bw-sticker strong {
  display: flex; align-items: flex-start; gap: .06em;
  font-stretch: 62%; font-weight: 900; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(3rem, 6vw, 4.9rem); margin-block: .04em .06em;
}
.bw-sticker strong small { font-size: .3em; font-stretch: 80%; font-weight: 700; padding-top: .12em; }

/* --- sections ------------------------------------------------------------ */

.bw-section { padding-block: clamp(56px, 8vw, 112px); }
.bw-section--flush { padding-top: 0; }
.bw-section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.bw-section__head p { margin-top: 14px; max-width: 38em; color: var(--bw-ink-2); }

/* --- packs: one price board, three columns -------------------------------- */

.bw-board { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--bw-black); border-radius: 10px; }
.bw-pack { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 34px); }
.bw-pack + .bw-pack { border-left: 2px solid var(--bw-black); }
.bw-pack--pick { background: var(--bw-black); color: var(--bw-paper); }
.bw-pack__flag {
  position: absolute; top: -16px; left: clamp(22px, 2.6vw, 34px);
  padding: 5px 12px; border: 2px solid var(--bw-black); border-radius: 4px;
  background: var(--bw-tag); color: var(--bw-black);
  font-size: .875rem; font-weight: 700; line-height: 1.2;
}
.bw-pack__name { font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
.bw-pack__sum { margin-top: 6px; min-height: 3em; color: var(--bw-ink-2); }
.bw-pack--pick .bw-pack__sum { color: var(--bw-on-black-2); }
.bw-pack__price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; }
.bw-pack__was { font-size: 1.05rem; font-weight: 600; color: var(--bw-ink-3); padding-bottom: 2px; }
.bw-pack__value { margin-top: 14px; font-size: .95rem; color: var(--bw-ink-2); }
.bw-pack--pick .bw-pack__value { color: var(--bw-on-black-2); }

/* What is physically in the pack, at a glance. Eleven slots to a row, so the
   Alt pack fills three rows and Start fills five slots of one. The stacks
   stand on the same line above the button, like piles on one shelf. */
.bw-stock { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin-top: auto; padding-top: 28px; }
.bw-stock > * { aspect-ratio: 5 / 7; border-radius: 2px; }
.bw-stock img { width: 100%; height: 100%; object-fit: cover; background: var(--bw-well); }
.bw-stock__slot { border: 1.5px dashed currentColor; opacity: .55; }
.bw-stock__more { grid-column: span 2; aspect-ratio: auto; display: grid; place-items: center; background: var(--bw-tag); color: var(--bw-black); font-size: .7rem; font-weight: 800; line-height: 1; text-align: center; }

.bw-pack__self { display: block; margin-top: 12px; text-align: center; font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bw-pack--pick .bw-pack__self { color: var(--bw-paper); }
.bw-pack__list { margin-top: 22px; padding-top: 20px; border-top: 2px solid currentColor; display: grid; gap: 10px; align-content: start; }
.bw-pack__list li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.4; }
.bw-pack__list li::before {
  content: ""; position: absolute; left: 2px; top: .28em; width: 14px; height: 8px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg);
}
.bw-pack .bw-btn { margin-top: 22px; }
.bw-board__note { margin-top: 18px; }

/* --- everything in the Alt pack ------------------------------------------ */

.bw-all { background: var(--bw-well); }
.bw-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.bw-extra { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 18px; background: var(--bw-paper); border: 2px solid var(--bw-black); border-radius: 10px; }
.bw-extra img, .bw-extra__tile { width: 96px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px 4px 4px 2px; }
.bw-extra__tile { display: grid; place-content: center; background: var(--bw-black); color: var(--bw-tag); font-stretch: 62%; font-weight: 900; font-size: 1.7rem; line-height: .9; text-align: center; }
.bw-extra p { margin-top: 6px; color: var(--bw-ink-2); font-size: 1rem; }
.bw-extra s { display: inline-block; margin-top: 8px; font-size: .95rem; color: var(--bw-ink-3); }

.bw-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(22px, 2.6vw, 34px) clamp(12px, 1.8vw, 24px); }
.bw-shelf img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: #e4e4e4; border-radius: 2px 5px 5px 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 18px -10px rgba(0, 0, 0, .45); }
.bw-shelf h3 { margin-top: 12px; font-size: .95rem; font-weight: 650; line-height: 1.25; }
.bw-shelf s { font-size: .875rem; color: var(--bw-ink-3); }

.bw-receipt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; margin-top: clamp(36px, 5vw, 64px); padding: clamp(24px, 3.4vw, 44px); border-radius: 10px; }
.bw-receipt__was { font-size: 1.1rem; color: var(--bw-on-black-2); }
.bw-receipt__now { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; margin-top: 16px; }
.bw-receipt__label { font-size: 1.1rem; font-weight: 600; padding-bottom: 4px; }
.bw-receipt__save { margin-top: 16px; font-size: 1.15rem; font-weight: 700; color: var(--bw-tag); }

/* --- who it is for / what arrives ----------------------------------------- */

.bw-facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.bw-facts h2 { margin-bottom: 26px; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.bw-who li { padding-block: 18px; border-top: 2px solid var(--bw-black); font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 550; line-height: 1.3; }
.bw-who li:last-child { border-bottom: 2px solid var(--bw-black); }
.bw-gets { display: grid; gap: 14px; }
.bw-gets li { position: relative; padding-left: 32px; }
.bw-gets li::before {
  content: ""; position: absolute; left: 2px; top: .34em; width: 16px; height: 9px;
  border-left: 3px solid var(--bw-black); border-bottom: 3px solid var(--bw-black); transform: rotate(-45deg);
}
.bw-firm { margin-top: 30px; padding: 22px 24px; background: var(--bw-well); border-radius: 10px; }
.bw-firm h3 { font-size: 1.15rem; font-weight: 700; }
.bw-firm p { margin-top: 6px; color: var(--bw-ink-2); font-size: 1rem; overflow-wrap: anywhere; }

/* --- questions ------------------------------------------------------------ */

.bw-faq { max-width: 820px; }
.bw-faq details { border-top: 2px solid var(--bw-black); }
.bw-faq details:last-of-type { border-bottom: 2px solid var(--bw-black); }
.bw-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px; font-size: 1.15rem; font-weight: 650; line-height: 1.3; cursor: pointer; list-style: none; }
.bw-faq summary::-webkit-details-marker { display: none; }
.bw-faq summary::after { content: "+"; flex: none; font-size: 1.7rem; font-weight: 400; line-height: 1; }
.bw-faq details[open] summary::after { content: "\2212"; }
.bw-faq details p { max-width: 40em; padding-bottom: 22px; color: var(--bw-ink-2); }

/* --- last call ------------------------------------------------------------ */

.bw-final { padding-block: clamp(56px, 8vw, 104px); }
.bw-final__packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.bw-final__packs a { flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 2px; }
.bw-final__packs span { font-size: .95rem; font-weight: 600; }
.bw-final__packs strong { font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: .95; }
.bw-final p { margin-top: 20px; }

.bw-foot { border-top: 1px solid var(--bw-rule-on-black); padding-block: 26px; font-size: .875rem; color: var(--bw-on-black-2); }
.bw-foot .bw-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.bw-foot__links { display: flex; gap: 22px; }
/* leadadapter.js appends its "Cookieindstillinger" link to the footer. */
.bw-foot #la-cookie-settings { display: block; width: min(var(--bw-wrap), 100% - 2 * var(--bw-gutter)); margin: 8px auto 0; padding: 4px 0; text-align: left; }

.bw-stick { display: none; }

/* ============================================================================
   Picker (/black-week-start-valg, /black-week-pro-valg)
   ========================================================================== */

.bw-steps { display: flex; gap: 22px; font-size: .95rem; font-weight: 600; color: var(--bw-on-black-2); }
.bw-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bw-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .8rem; line-height: 1; }
.bw-steps li[aria-current] { color: var(--bw-paper); }
.bw-steps li[aria-current] > span { background: var(--bw-tag); border-color: var(--bw-tag); color: var(--bw-black); }

.bw-pickhead { padding-bottom: clamp(32px, 5vw, 56px); }
.bw-pickhead__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; padding-top: clamp(16px, 3vw, 36px); }
.bw-pickhead .bw-lede { margin-top: 18px; color: #e6e6e6; }
.bw-pickhead__price { text-align: right; }
.bw-pickhead__price .bw-price { color: var(--bw-tag); }

.bw-pick { padding-block: clamp(28px, 4vw, 48px) 200px; }
.bw-pick__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.bw-pick__count { font-stretch: 68%; font-weight: 800; font-size: 1.6rem; line-height: 1; }

/* Five across: all 33 titles fit in seven rows, so choosing is comparing,
   not scrolling. */
.bw-books { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.book-card { display: flex; flex-direction: column; overflow: hidden; background: var(--bw-paper); border: 2px solid var(--bw-rule); border-radius: 10px; transition: border-color .12s ease; }
.book-card.on { border-color: var(--bw-black); box-shadow: 0 0 0 2px var(--bw-black); }
.book-row { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.book-row[disabled] { cursor: default; opacity: .4; }
.book-row:focus-visible { outline-offset: -3px; }
.book-row__cover { position: relative; display: block; aspect-ratio: 5 / 7; background: var(--bw-well); }
.book-row__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-row__tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--bw-black); border-radius: 50%; background: var(--bw-tag); }
.book-row__tick::before { content: ""; width: 16px; height: 9px; margin-top: -4px; border-left: 3px solid var(--bw-black); border-bottom: 3px solid var(--bw-black); transform: rotate(-45deg); }
.book-row__body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.book-row__name { font-size: .95rem; font-weight: 650; line-height: 1.25; }
.book-row__was { margin-top: 4px; font-size: .875rem; color: var(--bw-ink-3); }
.book-row__act { margin-top: auto; padding-top: 14px; }
.book-row__act span { display: block; padding: 11px 10px; border: 2px solid var(--bw-black); border-radius: 6px; background: var(--bw-black); color: var(--bw-paper); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; }
.book-row__act span.is-on { background: var(--bw-tag); color: var(--bw-black); }
.book-row__act span.is-off { background: var(--bw-well); border-color: var(--bw-well); color: var(--bw-ink-3); }
.book-card__more { display: block; padding: 11px 10px; border-top: 2px solid var(--bw-rule); font-size: .95rem; font-weight: 600; text-align: center; }
.book-card.on .book-card__more { border-top-color: var(--bw-black); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 221, 26, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 221, 26, .9); } }
.flash { animation: flash .5s ease-in-out 2; }

.bw-pick__go { margin-top: 40px; text-align: center; }
.bw-pick .bw-faq { margin: clamp(48px, 7vw, 80px) auto 0; }
.bw-pick .bw-faq h2 { margin-bottom: 22px; }

/* --bw-consent is the height of the cookie-consent panel while it is open
   (set by /js/black-week.js), so the tray sits on top of it, not under it. */
.bw-tray { position: fixed; inset: auto 0 var(--bw-consent, 0px); z-index: 50; padding-bottom: env(safe-area-inset-bottom); border-top: 2px solid var(--bw-tag); }
.bw-tray__in { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.bw-tray__slots { display: flex; gap: 6px; flex: none; }
.mini { display: grid; place-items: center; width: 36px; aspect-ratio: 5 / 7; overflow: hidden; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 3px; font-size: .8rem; font-weight: 700; color: var(--bw-on-black-2); }
.mini.filled { border: 0; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.bw-tray__text { flex: 1; min-width: 0; }
.bw-tray__text b { display: block; font-size: 1.05rem; line-height: 1.2; }
.bw-tray__text > span { display: block; font-size: .9rem; color: var(--bw-on-black-2); line-height: 1.3; }
.bw-tray .bw-btn { flex: none; }
.bw-tray .bw-btn.is-wait { background: transparent; color: var(--bw-paper); border-color: rgba(255, 255, 255, .45); }

/* ============================================================================
   Checkout (/black-week-*-koeb) and thank-you
   ========================================================================== */

.bw-pay { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 4.5vw, 56px) 80px; }
.bw-order__sum { margin-top: 14px; color: var(--bw-ink-2); }
.bw-order__totals { margin-top: 24px; border-top: 2px solid var(--bw-black); }
.bw-order__totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--bw-rule); }
.bw-order__totals div:last-child { border-bottom: 2px solid var(--bw-black); font-weight: 700; font-size: 1.15rem; }
.bw-order__totals dt span { color: var(--bw-ink-3); font-weight: 400; font-size: .95rem; }
.bw-order h2 { margin-top: 32px; font-size: 1.15rem; font-weight: 700; }
.bw-order__items { margin-top: 12px; }
.bw-order__items li { display: flex; align-items: center; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--bw-rule); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.bw-order__items img { flex: none; width: 44px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px; background: var(--bw-well); }

.bw-order__change { margin-top: 14px; }
.bw-order__change a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Checkout only: keep terms + Betal clear of #la-consent-panel (z-index 99999,
   fixed to the bottom). --bw-consent is the panel height while it is visible
   (set by /js/black-week.js). Do not change the panel itself. */
body.bw-checkout {
  padding-bottom: calc(var(--bw-consent, 0px) + env(safe-area-inset-bottom, 0px));
}
body.bw-checkout .bw-pay {
  padding-bottom: calc(80px + var(--bw-consent, 0px) + env(safe-area-inset-bottom, 0px));
}
body.bw-checkout .bw-pay-actions {
  position: sticky;
  bottom: var(--bw-consent, 0px);
  z-index: 5;
  display: grid;
  gap: 16px;
  background: var(--bw-paper);
  padding-top: 8px;
  padding-bottom: 4px;
}

.bw-order__grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; margin-top: 14px; }
.bw-order__grid img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 2px; background: var(--bw-well); }

.bw-form { position: sticky; top: 20px; padding: clamp(20px, 2.6vw, 30px); border: 2px solid var(--bw-black); border-radius: 10px; background: var(--bw-paper); }
.bw-form__price { display: flex; align-items: flex-end; gap: 12px; }
.bw-form__price .bw-price { font-size: 4rem; }
.bw-form form { display: grid; gap: 16px; margin-top: 24px; }
.bw-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bw-field { display: block; font-size: .95rem; font-weight: 600; }
.bw-field span { font-weight: 400; color: var(--bw-ink-3); }
.bw-field input, .stripe-box {
  display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid #8a8a8a; border-radius: 6px; background: var(--bw-paper);
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--bw-black);
}
.stripe-box { padding-block: 14px; }
.bw-field input:focus, .stripe-box.StripeElement--focus { outline: none; border-color: var(--bw-black); box-shadow: 0 0 0 3px var(--bw-tag); }
.bw-track { margin: 0; padding: 0; border: 0; min-width: 0; }
.bw-track legend { padding: 0; font-size: .95rem; font-weight: 600; }
.bw-track__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.bw-track label { position: relative; display: block; }
.bw-track input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bw-track label span { display: block; padding: 12px 6px; border: 1.5px solid #8a8a8a; border-radius: 6px; font-weight: 600; text-align: center; }
.bw-track input:checked + span { background: var(--bw-black); border-color: var(--bw-black); color: var(--bw-paper); }
.bw-track input:focus-visible + span { outline: 3px solid var(--bw-focus); outline-offset: 2px; }
.bw-terms { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.45; color: var(--bw-ink-2); }
.bw-terms input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bw-black); }
.bw-error { color: #b00020; font-size: .95rem; font-weight: 600; }
.bw-error:empty { display: none; }
.bw-secure { font-size: .875rem; color: var(--bw-ink-3); text-align: center; }

.bw-thanks { min-height: calc(100vh - 78px); display: grid; align-content: center; padding-block: 56px; }
.bw-thanks__in { max-width: 640px; }
.bw-thanks dl { margin-top: 28px; border-top: 2px solid var(--bw-black); }
.bw-thanks dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--bw-rule); }
.bw-thanks dt { color: var(--bw-ink-3); }
.bw-thanks dd { font-weight: 700; overflow-wrap: anywhere; }
.bw-thanks p { margin-top: 22px; color: var(--bw-ink-2); }
.bw-thanks .bw-btn { margin-top: 30px; }

/* ============================================================================
   Narrower screens
   ========================================================================== */

@media (max-width: 1000px) {
  .bw-shelf { grid-template-columns: repeat(4, 1fr); }
  .bw-books { grid-template-columns: repeat(4, 1fr); }
  .bw-board { grid-template-columns: 1fr; border: 0; border-radius: 0; gap: 28px; max-width: 560px; }
  .bw-pack, .bw-pack + .bw-pack { border: 2px solid var(--bw-black); border-radius: 10px; }
  .bw-pack__sum { min-height: 0; }
  .bw-facts { grid-template-columns: 1fr; }
  .bw-pay { grid-template-columns: 1fr; }
  .bw-form { position: static; order: -1; }
}

@media (max-width: 720px) {
  :root { --bw-gutter: 20px; }
  body.bw { font-size: 17px; }
  .bw-logo img { height: 28px; }
  .bw-top { padding-block: 18px; }
  .bw-sticker { top: -34px; }
  .bw-extras { grid-template-columns: 1fr; }
  .bw-extra { grid-template-columns: 72px 1fr; gap: 16px; padding: 14px; }
  .bw-extra img, .bw-extra__tile { width: 72px; }
  .bw-extra__tile { font-size: 1.3rem; }
  .bw-shelf { grid-template-columns: repeat(3, 1fr); }
  .bw-shelf h3 { font-size: .875rem; margin-top: 8px; }
  .bw-receipt { grid-template-columns: 1fr; }
  .bw-receipt .bw-btn { width: 100%; }
  .bw-final__packs { grid-template-columns: 1fr; }
  .bw-final__packs a { flex-direction: row; align-items: center; justify-content: space-between; }
  .bw-foot { padding-bottom: 104px; }

  /* A thumb-reach route back to the packs while the visitor reads on. */
  .bw-stick { display: block; position: fixed; inset: auto 0 var(--bw-consent, 0px); z-index: 40; padding: 10px var(--bw-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bw-black); border-top: 1px solid var(--bw-rule-on-black); transition: transform .2s ease; }
  .bw-stick[hidden] { display: block; transform: translateY(110%); }
  .bw-stick .bw-btn { width: 100%; min-height: 50px; }

  .bw-steps { gap: 12px; font-size: .875rem; }
  .bw-steps li:not([aria-current]) > span + * , .bw-steps li:not([aria-current]) { font-size: 0; }
  .bw-steps li:not([aria-current]) > span { font-size: .8rem; }
  .bw-pickhead__grid { grid-template-columns: 1fr; }
  .bw-pickhead__price { text-align: left; }
  .bw-books { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book-row__body { padding: 10px; }
  .book-row__name { font-size: .95rem; }
  .bw-tray__in { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .mini { width: 30px; }
  .bw-tray .bw-btn { width: 100%; min-height: 50px; }
  .bw-form__price .bw-price { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bw-wall__row { animation: none; }
  .bw *, .bw *::before, .bw *::after { transition: none !important; }
  .flash { animation: none; outline: 4px solid var(--bw-tag); }
}
