/* Checkout van de Buy now-test (templates/checkout.php), standalone (geen sitebundel, dus een eigen reset in :where(),
   STANDAARDEN 44). Indeling zoals een webshop-checkout: links het formulier op wit, rechts het besteloverzicht op
   Moondust over de volle hoogte; op een telefoon het overzicht ingeklapt achter een balk bovenaan.
   Merkgids: Ink #0B0B0C, Nova Purple #8511D9 (focus, links, fouten), Space Green #B9EFA3 (primaire knop),
   Moondust #F5F6F3; radii 12 en pill; één beweging .25s cubic-bezier(.2,.7,.2,1). */
.bn-co-body { margin: 0; background: #fff; }
.bn-co {
  --ink: #0B0B0C; --ink58: rgba(11,11,12,.58); --ink22: rgba(11,11,12,.22); --ink10: rgba(11,11,12,.1);
  --purple: #8511D9; --space: #B9EFA3; --houston: #2E9E50; --moondust: #F5F6F3;
  --ease: cubic-bezier(.2,.7,.2,1);
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "bar" "sum" "main"; grid-template-rows: auto auto auto 1fr;
  min-height: 100vh; min-height: 100dvh; background: #fff; color: var(--ink);
  font-family: 'Aeonik', 'Aeonik Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
:where(.bn-co) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(.bn-co) :where(h1, h2, p, dl, dd, ol, fieldset) { margin: 0; }
:where(.bn-co) :where(ol) { padding: 0; list-style: none; }
:where(.bn-co) :where(img, svg) { display: block; }
:where(.bn-co) :where(a) { color: inherit; }
.bn-co [hidden] { display: none !important; }
.bn-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- kop: alleen het logo ---------- */
.bn-top { grid-area: top; padding: 18px 16px; border-bottom: 1px solid var(--ink10); }
.bn-logo { display: inline-flex; border-radius: 4px; }
.bn-logo img { width: auto; height: 22px; }

/* ---------- mobiel: balk met het totaal, klapt het overzicht open ---------- */
.bn-sumbar {
  grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 56px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ink10); background: var(--moondust);
  color: var(--ink); font: inherit; font-size: .95rem; text-align: left; cursor: pointer;
}
.bn-sumbar-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); }
.bn-sumbar-l > svg:first-child { color: var(--ink); }
.bn-sumbar-chev { transition: transform .25s var(--ease); }
.bn-sumbar[aria-expanded="true"] .bn-sumbar-chev { transform: rotate(180deg); }
.bn-sumbar-p { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }

/* ---------- besteloverzicht ---------- */
.bn-sum { grid-area: sum; background: var(--moondust); border-bottom: 1px solid var(--ink10); }
.bn-sum:not(.is-open) { display: none; }
.bn-sum-in { padding: 20px 16px 24px; }
.bn-sum-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bn-sum-li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.bn-tile { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--ink10); border-radius: 12px; background: #fff; }
.bn-tile img { width: 44px; height: 44px; object-fit: contain; }
.bn-qty { position: absolute; top: -8px; right: -8px; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.bn-sum-name { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.bn-sum-meta { margin-top: 3px; font-size: .86rem; color: var(--ink58); }
.bn-sum-lp { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; white-space: nowrap; text-align: right; }
.bn-sum-lp s { font-size: .82rem; font-weight: 500; color: var(--ink58); }
.bn-per { margin-left: 2px; font-size: .82rem; font-weight: 600; color: var(--ink58); }
.bn-tot { display: grid; gap: 8px; margin-top: 20px; }
.bn-tot > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .95rem; }
.bn-tot dt { color: var(--ink58); }
.bn-tot dd { font-weight: 600; white-space: nowrap; }
.bn-tot .bn-tot-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ink10); }
.bn-tot .bn-tot-total dt { color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.bn-tot .bn-tot-total dd { font-size: 1.35rem; font-weight: 800; }
.bn-cur { margin-right: 7px; font-size: .78rem; font-weight: 600; color: var(--ink58); text-decoration: none; }
.bn-billed { margin-top: 6px; font-size: .86rem; line-height: 1.4; color: var(--ink58); text-align: right; }

/* ---------- linkerkolom ---------- */
.bn-main { grid-area: main; padding: 20px 16px 56px; min-width: 0; }
.bn-crumbs { margin-bottom: 26px; }
.bn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .86rem; color: var(--ink58); }
.bn-crumbs li { display: inline-flex; align-items: center; }
.bn-crumbs li + li::before { content: "\203A"; content: "\203A" / ""; margin: 0 10px; color: var(--ink58); }
.bn-crumbs li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.bn-crumbs a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.bn-crumbs a:hover { color: var(--ink); }
/* De winkelwagen is alleen een link als je hem achter je hebt gelaten (de gegevensstap). */
.bn-co:not([data-view="info"]) [data-bn-crumb="cart"] a, .bn-co[data-view="info"] [data-bn-crumb="cart"] > span { display: none; }

.bn-block + .bn-block { margin-top: 28px; }
.bn-sec-h { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; outline: none; }
.bn-co fieldset { padding: 0; border: 0; min-width: 0; }
.bn-co legend { margin: 0 0 9px; padding: 0; font-size: .95rem; font-weight: 700; }

/* velden: vast label boven het veld (STANDAARDEN 72) */
.bn-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .bn-row { grid-template-columns: 1fr 1fr; } }
.bn-field { margin-bottom: 14px; }
.bn-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.bn-req { color: var(--purple); }
.bn-opt { font-weight: 500; color: var(--ink58); }
.bn-input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--ink22); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
select.bn-input { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; cursor: pointer; }
.bn-input::placeholder { color: rgba(11,11,12,.42); }
.bn-input:focus { outline: 2px solid var(--purple); outline-offset: 2px; border-color: var(--ink); }
.bn-input[aria-invalid="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(133,17,217,.15); }
.bn-hint { margin-top: 6px; font-size: .84rem; line-height: 1.4; color: var(--ink58); }
.bn-err { margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--purple); }
.bn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bn-co .bn-captcha { margin: 4px 0 14px; }
.bn-co iframe[src*="google.com/recaptcha"] { position: static !important; width: 304px; height: 78px; object-fit: initial; z-index: auto; }
/* samenvatting van de fouten: live region, altijd in de DOM, leeg buiten beeld (STANDAARDEN 72) */
.bn-status { font-size: .92rem; font-weight: 600; color: var(--purple); }
.bn-status:not(.is-on) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bn-status.is-on { margin: 6px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(133,17,217,.08); }
.bn-privacy { margin-top: 6px; font-size: .84rem; line-height: 1.45; color: var(--ink58); }
.bn-privacy a { color: var(--purple); }

/* plankeuze (alleen zonder keuze) */
.bn-plans { display: grid; gap: 10px; margin-bottom: 20px; }
@media (min-width: 560px) { .bn-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bn-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--ink10); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.bn-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bn-plan:hover { border-color: rgba(11,11,12,.3); }
.bn-plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: linear-gradient(135deg, rgba(185,239,163,.22), #fff 70%); }
.bn-plan:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 3px; }
.bn-plan-nm { font-size: 1.02rem; font-weight: 800; }
.bn-plan-pr { font-size: 1.2rem; font-weight: 900; white-space: nowrap; }
.bn-segs { display: grid; gap: 14px; }
.bn-opts { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--ink10); border-radius: 99px; background: var(--moondust); }
.bn-opts label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.bn-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bn-opts em { font-style: normal; font-size: .78rem; font-weight: 800; color: var(--houston); }
.bn-opts label:has(input:checked) { background: var(--ink); color: #fff; }
.bn-opts label:has(input:checked) em { color: var(--space); }
.bn-opts label:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (max-width: 440px) { .bn-opts { display: flex; border-radius: 12px; } .bn-opts label { flex: 1 1 auto; justify-content: center; border-radius: 9px; } }

/* knoppen */
.bn-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-top: 22px; }
.bn-view[data-bn-view="pick"] .bn-actions { justify-content: flex-end; }
.bn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 99px; font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform 80ms ease; }
.bn-btn:active { transform: scale(.96); }
.bn-btn-primary { background: var(--space); color: var(--ink); }
.bn-btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(46,158,80,.6); }
.bn-btn-primary[disabled] { opacity: .65; cursor: progress; }
.bn-btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.bn-btn-ghost:hover { background: var(--ink); color: #fff; }
.bn-back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; color: var(--purple); font-size: .95rem; font-weight: 600; text-decoration: none; border-radius: 4px; }
.bn-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-link { padding: 6px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bn-link:hover { color: var(--purple); }
.bn-co :is(a, button, .bn-sumbar):focus-visible, .bn-pay h2:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.bn-sumbar:focus-visible { outline-offset: -3px; }
@media (max-width: 559px) {
  .bn-actions { flex-direction: column-reverse; align-items: stretch; }
  .bn-actions .bn-btn { width: 100%; }
  .bn-actions .bn-back { align-self: center; }
}
.bn-noscript { margin-top: 16px; }

/* ---------- betaalstap ---------- */
.bn-g-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 12px; background: var(--moondust); color: var(--ink); }
.bn-eyebrow { margin-bottom: 10px; font-family: 'TTCommons', ui-monospace, monospace; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.bn-pay h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; outline: none; }
.bn-g-text { margin-top: 12px; font-size: 1.05rem; line-height: 1.55; }
.bn-recap { margin-top: 22px; border: 1px solid var(--ink10); border-radius: 12px; }
.bn-recap > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 16px; font-size: .92rem; }
.bn-recap > div + div { border-top: 1px solid var(--ink10); }
.bn-recap dt { color: var(--ink58); }
.bn-recap dd { overflow-wrap: anywhere; }
.bn-g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }

/* ---------- desktop: twee kolommen, overzicht rechts over de volle hoogte ---------- */
@media (min-width: 1000px) {
  .bn-co {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "top sum" "main sum";
    background: linear-gradient(90deg, #fff 50%, var(--moondust) 50%);
  }
  .bn-top, .bn-main { justify-self: end; width: min(100%, 640px); padding-left: 40px; padding-right: 56px; }
  .bn-top { padding-top: 44px; padding-bottom: 8px; border-bottom: 0; }
  .bn-logo img { height: 26px; }
  .bn-main { padding-top: 20px; padding-bottom: 72px; }
  .bn-sumbar { display: none; }
  .bn-sum, .bn-sum:not(.is-open) { display: block; grid-row: 1 / span 2; border-bottom: 0; border-left: 1px solid var(--ink10); }
  .bn-sum-in { position: sticky; top: 0; width: min(100%, 500px); padding: 56px 40px 40px 48px; }
}

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