/* HCDB Pockies — mobile first */

/* Inter, self-hosted (variable font, SIL OFL 1.1 — see /fonts/OFL.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000;
  --yellow: #ffd800;
  --white: #fff;
  --grey: #f2f2f2;
  --grey-text: #6e6e73;
  --radius: 24px;
  --gutter: 16px;
  --max: 1200px; /* text pages; the product grid runs full width */
  --topbar-h: 56px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.icon { display: block; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s ease, opacity .2s ease;
}
.button:active { transform: scale(.98); }
.button--block { display: flex; width: 100%; }
/* Product page: "In winkelmand", yellow with black text (never white on yellow) */
.button--yellow { border-radius: 0; background: var(--yellow); color: var(--black); }
.button[disabled],
.button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }
/* Checkout switched off: grey with dark grey text, not clickable */
.button--off,
.button--off[aria-disabled="true"] { opacity: 1; background: var(--grey); color: var(--grey-text); }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: rgba(0, 0, 0, .06); }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 calc(var(--gutter) - 6px) 0 var(--gutter);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.topbar__logo img { height: 36px; width: auto; }

.cart-toggle { position: relative; }
.cart-toggle__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 30vh;
  min-height: 190px;
  max-height: 260px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after { /* light dark overlay so white text is always readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .45));
}
.hero__title {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  font-size: clamp(1.75rem, 7vw, 4.5rem);
  max-width: 16ch;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Campaign line ---------- */

.campaign {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px var(--gutter) 4px;
  text-align: center;
}
.campaign__line { margin: 0; font-weight: 600; font-size: 1.05rem; text-wrap: balance; }
.campaign__guarantee { margin: 8px 0 0; color: var(--grey-text); font-size: .875rem; }
.campaign__notice {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
}

/* ---------- Product grid (homepage) ---------- */

/* Calm, lots of white: no borders, shadows or rounded corners. */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 8px;
  padding: 24px 8px 48px;
}
.products__loading { grid-column: 1 / -1; text-align: center; color: var(--grey-text); }

/* Photo area: light grey, portrait 3:4, product centred. The photos have a
   white background; multiply blends that white into the grey. */
.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--grey);
}
.photo img {
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tile {
  display: block;
  min-width: 0;
  color: var(--black);
  text-decoration: none;
}
.tile .photo img { transition: transform .4s ease; }
.tile:hover .photo img { transform: scale(1.03); }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tile__title {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}
.tile__desc {
  margin: 2px 0 0;
  color: var(--grey-text);
  font-size: .8rem;
  line-height: 1.35;
}
.tile__price { margin: 4px 0 0; font-size: .875rem; font-weight: 700; }

/* ---------- Product page ---------- */

.pdp-wrap { max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter) 56px; }
.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--grey-text);
  font-size: .875rem;
  text-decoration: none;
}
.back-link:hover { color: var(--black); text-decoration: underline; }

.pdp { display: grid; gap: 24px; }
/* Mobile: full width and square, so the info stays close to the fold */
.pdp__photo { margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 1; }
.pdp__info { min-width: 0; }
.pdp__title { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.pdp__desc { margin: 6px 0 0; color: var(--grey-text); }
.pdp__price { margin: 10px 0 0; font-size: 1.15rem; font-weight: 700; }
.pdp__rule { margin: 20px 0; border: 0; border-top: 1px solid #e0e0e0; }
.pdp__color { margin: 0 0 16px; font-size: .95rem; }
.pdp__color strong { font-weight: 600; }
.pdp__size { margin-bottom: 20px; }
.pdp__size-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .95rem;
}
.pdp__size-head label { font-weight: 600; }
.pdp__error {
  margin: 8px 0 0;
  color: #c0000c;
  font-size: .875rem;
  font-weight: 600;
}
.pdp__facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.pdp__facts li { display: flex; align-items: center; gap: 10px; color: var(--grey-text); font-size: .85rem; }
.pdp__facts .icon { flex: none; color: var(--black); }
.pdp__missing { padding: 40px 0; }
.pdp__missing p { margin-top: 12px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Dropdown (size) */
.select select {
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #c7c7cc;
  border-radius: 0;
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--black);
  font: inherit;
  font-size: 1rem; /* ≥16px: no zoom on iOS */
  appearance: none;
  cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--black); outline-offset: 0; }
.select select[aria-invalid="true"] { border-color: #c0000c; box-shadow: inset 0 0 0 1px #c0000c; }

@media (min-width: 800px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pdp__photo { margin: 0; aspect-ratio: 3 / 4; }
  .pdp__info { position: sticky; top: calc(var(--topbar-h) + 24px); padding-top: 8px; }
  .pdp__title { font-size: 2.1rem; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--grey);
  color: var(--grey-text);
  font-size: .875rem;
  text-align: center;
}
.footer__line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; }
.footer__group { display: flex; flex-wrap: wrap; justify-content: center; }
.footer__group > span { white-space: nowrap; }
.footer__group > span + span::before { content: "·"; margin: 0 8px; }
/* Address may break after the comma on very narrow screens */
.footer__group > .footer__address { white-space: normal; }
.footer__address > span { white-space: nowrap; }
/* Mobile/tablet: one group per line without a leading dot; wide: one line */
.footer__group { flex-basis: 100%; }
@media (min-width: 1000px) {
  .footer__group { flex-basis: auto; }
  .footer__group + .footer__group::before { content: "·"; margin: 0 8px; }
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.legal-menu { position: relative; }
.legal-menu__toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}
.legal-menu__toggle:hover,
.legal-menu__toggle[aria-expanded="true"] { color: var(--black); text-decoration: underline; }
.legal-menu__popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: var(--black);
  text-align: left;
}
.legal-menu__popup a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--white);
}
.legal-menu__popup a:hover,
.legal-menu__popup a:focus-visible { background: rgba(255, 255, 255, .12); color: var(--yellow); text-decoration: none; outline: none; }

/* ---------- Cart drawer ---------- */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .25s ease;
}
.cart-backdrop.is-visible { opacity: 1; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--white);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.cart.is-open { transform: translateX(0); }

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 20px;
  border-bottom: 1px solid var(--grey);
}
.cart__title { font-size: 1.25rem; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart__empty { margin: 40px 0; color: var(--grey-text); text-align: center; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey);
}
.cart-item__thumb { display: block; width: 64px; height: 64px; padding: 4px; background: var(--grey); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__name { margin: 0; font-weight: 600; }
.cart-item__meta { margin: 0; color: var(--grey-text); font-size: .875rem; }
.cart-item__price { margin: 0; font-weight: 600; text-align: right; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty .icon-button { width: 32px; height: 32px; background: var(--grey); }
.qty .icon-button .icon { width: 16px; height: 16px; }
.qty__value { min-width: 24px; text-align: center; font-weight: 600; }

.cart__footer { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--grey); }
.cart__total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 6px; }
.cart__hint { margin: 0 0 14px; color: var(--grey-text); font-size: .8rem; }

/* ---------- Size dialog ---------- */

.size-dialog {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 64px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
}
.size-dialog::backdrop { background: rgba(0, 0, 0, .4); }
.size-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 4px 24px;
}
.size-dialog__header h2 { font-size: 1.25rem; }
.size-dialog__body { padding: 8px 24px 24px; }
/* Wide tables scroll sideways on narrow screens; the size column stays put. */
.size-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.size-table-wrap:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.size-table th, .size-table td { padding: 10px 12px 10px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--grey); }
.size-table th { font-weight: 600; vertical-align: bottom; }
.size-table thead th { white-space: normal; min-width: 4.5em; }
.size-table th:first-child { position: sticky; left: 0; background: var(--white); padding-right: 16px; }
.size-dialog__note { margin: 14px 0 0; color: var(--grey-text); font-size: .85rem; }
.size-dialog__note + .size-dialog__note { margin-top: 6px; }

/* ---------- Larger screens ---------- */

@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .hero { height: 52vh; max-height: 520px; }
  .campaign { padding-top: 28px; }
  .products { gap: 40px 16px; padding: 32px var(--gutter) 64px; }
  .tile__title { font-size: 1.1rem; }
  .tile__desc { font-size: .85rem; }
}

@media (min-width: 900px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Text pages (contact, voorwaarden, privacy) ---------- */

.page { max-width: 680px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.page h1 { font-size: 2rem; margin-bottom: 16px; }

/* Legal text (voorwaarden, privacy) */
.legal h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.legal h3 { font-size: 1rem; margin: 20px 0 4px; letter-spacing: 0; }
.legal p, .legal li { color: #1d1d1f; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal__meta { color: var(--grey-text); font-size: .875rem; }
.legal__summary { padding: 16px 20px; border-radius: var(--radius); background: var(--grey); }
.legal__summary ul { margin: 8px 0 0; }
.legal-form { margin-top: 12px; padding: 20px; border: 1px dashed #c7c7cc; border-radius: var(--radius); }
.legal-form p { margin: 8px 0; }
.legal-form__line { display: block; min-height: 1.5em; border-bottom: 1px solid #c7c7cc; }

/* ---------- Forms (contact) ---------- */

.form { display: grid; gap: 16px; margin: 24px 0 32px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field__optional { font-weight: 400; color: var(--grey-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--grey);
  color: var(--black);
  font: inherit;
  font-size: 1rem; /* ≥16px: no zoom on iOS */
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 0; }
.field [aria-invalid] { box-shadow: inset 0 0 0 2px #c0000c; }
.field__error, .form__error { margin: 0; color: #c0000c; font-size: .875rem; }
.form__privacy { margin: 0; color: var(--grey-text); font-size: .85rem; }
.form .button { justify-self: start; min-width: 160px; }
.form .button[disabled] { opacity: .5; cursor: progress; }
.form__turnstile { min-height: 65px; }

.form-done { margin: 24px 0 32px; padding: 24px; border-radius: var(--radius); background: var(--yellow); color: var(--black); }
.form-done:focus { outline: none; }
.form-done__title { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.form-done p { margin: 10px 0 0; }
.form-done__fake { font-size: .85rem; opacity: .75; }

/* ---------- Beheer (/beheer) ---------- */

.admin-topbar__title { margin-right: 6px; font-weight: 700; }
.admin { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 56px; }
.admin h2 { font-size: 1.1rem; }
.admin-muted { color: var(--grey-text); font-size: .85rem; }
.admin__loading { color: var(--grey-text); }
.admin__notice { margin: 0 0 16px; padding: 12px 16px; background: var(--yellow); color: var(--black); font-weight: 600; font-size: .9rem; }
.admin__error { margin: 0 0 16px; padding: 12px 16px; background: #fde8e8; color: #8a000a; font-weight: 600; }
.admin__user { margin-top: 32px; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 20px; }
.admin-stat__value { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.admin-stat__label { margin: 4px 0 0; color: var(--grey-text); font-size: .8rem; line-height: 1.3; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-actions .button { flex: 1 1 auto; }
.button--light { background: var(--grey); color: var(--black); }

.admin-counts { margin-bottom: 24px; padding: 4px 0 12px; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.admin-counts summary { display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 12px 0 0; cursor: pointer; list-style: none; }
.admin-counts summary::-webkit-details-marker { display: none; }
.admin-counts summary::before { content: "+"; width: 14px; font-weight: 700; }
.admin-counts[open] summary::before { content: "−"; }
.admin-counts__total { color: var(--grey-text); font-size: .9rem; }
.admin-counts .button { margin: 12px 8px 0 0; min-height: 40px; padding: 8px 18px; }

.count-table { overflow-x: auto; margin-top: 16px; }
.count-table table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.count-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.count-table caption span { font-weight: 400; color: var(--grey-text); margin-left: 6px; }
.count-table th, .count-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid #ececec; }
.count-table th:first-child { text-align: left; }
.count-table thead th { color: var(--grey-text); font-weight: 600; }
.count-table tbody th { font-weight: 600; }
.count-table .is-zero { color: #c4c4c8; }
.count-table__total { font-weight: 700; }

.admin-filters { display: grid; gap: 12px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .95rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 20px; background: var(--grey); font-size: .9rem; cursor: pointer; }
.chips input:checked + span { background: var(--black); color: var(--yellow); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }

.admin-count { margin: 16px 0 0; color: var(--grey-text); font-size: .9rem; }
.orders { list-style: none; margin: 0; padding: 0; }
.orders__empty { padding: 24px 0; color: var(--grey-text); }
.order { padding: 16px 0; border-bottom: 1px solid #e0e0e0; }
.order.is-unpaid { color: var(--grey-text); }
.order p { margin: 0; }
.order a { text-decoration: none; }
.order a:hover { text-decoration: underline; }
.order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.order__id { font-weight: 800; }
.order__date { color: var(--grey-text); font-size: .85rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--grey); color: var(--black); font-size: .75rem; font-weight: 600; }
.badge--paid { background: var(--yellow); color: var(--black); }
.order__grid { display: grid; gap: 10px; }
.order__name { font-weight: 600; }
.order__customer { font-size: .9rem; overflow-wrap: anywhere; }
.order__items { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.order__qty { display: inline-block; min-width: 24px; font-weight: 700; }
.order__total { margin-top: 4px; font-weight: 700; }
.order__method { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.order__address { margin-top: 2px !important; padding-left: 24px; font-size: .9rem; }
.order__done { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.order__delivered-at { color: var(--grey-text); font-size: .8rem; }
.order__save-error { flex-basis: 100%; color: #c0000c; font-size: .85rem; }

.tick { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 12px; border-radius: 24px; background: var(--grey); font-weight: 600; cursor: pointer; user-select: none; }
.tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--black); cursor: pointer; }
.order.is-delivered .tick { background: var(--black); color: var(--yellow); }
.order.is-delivered .tick input { accent-color: var(--yellow); }

@media (min-width: 800px) {
  .admin { padding-top: 32px; }
  .admin-stats { max-width: 720px; }
  .admin-stat__value { font-size: 2rem; }
  .admin-actions .button { flex: 0 0 auto; }
  [data-counts] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .admin-filters { grid-template-columns: minmax(240px, 1fr) auto auto; align-items: end; gap: 24px; }
  .order__grid { grid-template-columns: 1.1fr 1.6fr 1fr auto; gap: 24px; align-items: start; }
  .order__done { flex-direction: column; align-items: flex-end; }
}

/* ---------- Test mode bar (preview deployments only, see functions/_middleware.js) ---------- */

.testmode-bar {
  padding: 8px var(--gutter);
  background: var(--yellow);
  color: var(--black); /* on yellow always black */
  font-size: .875rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- Checkout (/afrekenen) and thank-you page (/bedankt) ---------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.checkout h1 { margin-top: 12px; }
.checkout h2 { font-size: 1.15rem; margin-bottom: 12px; }
.checkout__loading { color: var(--grey-text); }
.checkout__section { margin-top: 32px; }
.checkout__form { margin-top: 0; }
.checkout__form .checkout__section { margin-top: 16px; display: grid; gap: 16px; }
.checkout__form .checkout__section h2 { margin-bottom: 0; }
.checkout__lines { list-style: none; margin: 0; padding: 0; }
.checkout__edit { margin: 8px 0 0; font-size: .875rem; }
.checkout__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; align-items: start; }
.checkout__address { display: grid; gap: 16px; }
.checkout .campaign__notice { margin: 24px 0 0; }
.field__hint { margin: 0; color: var(--grey-text); font-size: .8rem; }

.choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice__option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px; background: var(--grey); cursor: pointer;
}
.choice__option input { width: 20px; height: 20px; margin: 0; accent-color: var(--black); }
.choice__option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--black); }

.checkout__totals { margin: 0; display: grid; gap: 6px; }
.checkout__totals div { display: flex; justify-content: space-between; }
.checkout__totals dt, .checkout__totals dd { margin: 0; }
.checkout__grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid #e0e0e0; font-size: 1.15rem; font-weight: 700; }

.checkout__info { margin: 0; font-size: .9rem; }
.checkout__guarantee { margin: 0; color: var(--grey-text); font-size: .85rem; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400 !important; cursor: pointer; }
.field .checkbox input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--black); }
.field .checkbox input[aria-invalid] { outline: 2px solid #c0000c; outline-offset: 2px; box-shadow: none; }

.checkout__form .button--block { justify-self: stretch; }
.checkout-fake { display: flex; flex-wrap: wrap; gap: 8px; }

/* Admin: test orders */
.badge--test { background: var(--black); color: var(--yellow); }
.admin__test-note { margin: -8px 0 16px; font-size: .85rem; }
