/* Buy now-test (inc/buy_now.php), alleen in de variant geladen (niet op de checkout, die heeft checkout.css).
   Merkgids: Ink #0B0B0C, Nova Purple #8511D9 (focus, links), Space Green #B9EFA3 (primaire knop), Moondust #F5F6F3;
   radii 12 en pill; één beweging: .25s cubic-bezier(.2,.7,.2,1); Lucide-lijniconen, 2px.
   De demo blijft de primaire actie in de header (Space Green); de winkelwagenknop is Ghost (Ink-rand, transparant,
   hover Ink met wit). Op de plankaarten is Buy now de primaire knop; de "Kies ..."-knop direct erna wordt een tekstlink. */

/* ---------- header, desktop: tasicoon + "Buy now" ---------- */
#site-nav .site-buynow,
.site-buynow {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px 0 16px;
  border: 1px solid #0B0B0C; border-radius: 99px; background: transparent; color: #0B0B0C;
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background .25s cubic-bezier(.2,.7,.2,1), color .25s cubic-bezier(.2,.7,.2,1), transform 80ms ease;
}
.site-buynow:hover { background: #0B0B0C; color: #fff; }
.site-buynow:active, .site-buynow-m:active { transform: scale(.96); }
.site-buynow-i { position: relative; display: inline-flex; }
.site-buynow svg, .site-buynow-m svg, .site-mmenu-buynow svg { flex: none; }
.site-buynow:focus-visible, .site-buynow-m:focus-visible, .site-mmenu-buynow:focus-visible, .bn-card-btn:focus-visible { outline: 2px solid #8511D9; outline-offset: 3px; }

/* Badge (1) als er een plan in de winkelwagen ligt. Space Green met Ink: leesbaar op wit én op de Ink-hover. */
.bn-badge {
  position: absolute; top: -10px; left: 10px; display: inline-grid; place-items: center; min-width: 16px; height: 16px;
  padding: 0 4px; border: 2px solid #fff; border-radius: 99px; background: #B9EFA3; color: #0B0B0C;
  font-size: 10px; font-weight: 800; line-height: 1; box-sizing: content-box;
}
#site-nav .site-buynow.has-item, .site-buynow.has-item { gap: 18px; }
.bn-badge[hidden] { display: none; }

/* Ruimte in de balk: de middelste kolom (het menu) geeft wat tussenruimte af, zodat het logo niet krimpt. Tussen
   768 en 1199px past er naast menu, demoknop en taalkeuze geen tekst meer bij: dan alleen het icoon, rond. */
@media (min-width: 768px) {
  header[data-site-header]:has(.site-buynow) > div { grid-template-columns: auto minmax(0, 1fr) auto; }
  header[data-site-header]:has(.site-buynow) .inspace-nav-menu { gap: clamp(18px, 2.3vw, 52px); }
}
@media (max-width: 1199px) {
  #site-nav .site-buynow, .site-buynow { width: 46px; padding: 0; }
  .site-buynow .site-buynow-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1365px) { #site-nav .site-buynow, .site-buynow { height: 42px; padding: 0 16px 0 13px; font-size: .95rem; } }

/* ---------- header, mobiele balk: alleen het icoon, naast de taal- en menuknop (zelfde maat en vorm) ---------- */
.site-buynow-m {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; margin: 0 -8px; border: 1px solid rgba(11,11,12,.12); border-radius: 14px;
  background: rgba(255,255,255,.72); color: #0B0B0C; text-decoration: none;
  transition: border-color .25s cubic-bezier(.2,.7,.2,1), transform 80ms ease;
}
.site-buynow-m .bn-badge { top: -7px; left: auto; right: -7px; }
@media (min-width: 768px) { .site-buynow-m { display: none; } }
/* Op 360px past logo, taalkeuze, winkelwagen en menu net naast elkaar: iets minder tussenruimte en een smallere taalpil. */
@media (max-width: 400px) {
  .site-buynow-m { margin: 0 -12px; }
  header[data-site-header]:has(.site-buynow-m) .site-langm-btn { padding: 0 8px; white-space: nowrap; }
}

/* ---------- header, mobiel menu (onder de demoknop) ---------- */
.site-mmenu-buynow {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 1 auto;
  height: 56px; padding: 0 20px; border: 1px solid #0B0B0C; border-radius: 18px; background: rgba(255,255,255,.6);
  color: #0B0B0C; font-size: 1.04rem; font-weight: 800; white-space: nowrap; text-decoration: none;
  transition: background .25s cubic-bezier(.2,.7,.2,1), color .25s cubic-bezier(.2,.7,.2,1);
}
.site-mmenu-buynow .bn-badge { position: static; border: 0; }
.site-mmenu-buynow:active { background: #0B0B0C; color: #fff; }
/* Naast elkaar past de demoknop in het Duits en Frans niet meer op 390px: onder elkaar, de demo (primair) bovenaan. */
.site-mmenu-foot:has(.site-mmenu-buynow) { flex-wrap: wrap; gap: 10px; }
.site-mmenu-foot:has(.site-mmenu-buynow) .site-mmenu-demo { flex: 1 1 100%; }
.site-mmenu-foot .site-mmenu-buynow { order: 2; flex: 1 1 100%; height: 50px; }

/* ---------- plankaarten: huidige kaarten (pricing-redesign) ---------- */
article.pricing-redesign-card a.bn-card-btn,
article.pricing-redesign-card.is-featured a.bn-card-btn {
  border-color: #B9EFA3; background: #B9EFA3; color: #0B0B0C; gap: 7px;
}
article.pricing-redesign-card a.bn-card-btn:hover { box-shadow: 0 10px 26px -10px rgba(46,158,80,.55); }
/* De bestaande planknop direct na Buy now: tekstlink (contact met de gekozen plan, looptijd en betaling). */
article.pricing-redesign-card a.bn-card-btn + a.pricing-redesign-card__button {
  min-height: 0; margin-top: .55rem; padding: .35rem .5rem; border: 0; background: none; color: #0B0B0C;
  font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; box-shadow: none;
}
article.pricing-redesign-card a.bn-card-btn + a.pricing-redesign-card__button:hover { transform: none; color: #8511D9; }
article.pricing-redesign-card a.bn-card-btn + a.pricing-redesign-card__button svg { width: 13px; height: 13px; }

/* ---------- plankaarten: nieuwe prijspagina (pricing-v2) ---------- */
.pv2 .pv2-c-cta a.bn-card-btn { gap: 8px; }
.pv2 .pv2-c-cta a.bn-card-btn + a.pv2-plan-cta {
  min-height: 0; height: auto; margin-top: .25rem; padding: .35rem .5rem; border: 0; background: none; box-shadow: none;
  color: #0B0B0C; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.pv2 .pv2-c-cta a.bn-card-btn + a.pv2-plan-cta:hover { color: #8511D9; transform: none; }
.pv2 .pv2-c-cta a.bn-card-btn + a.pv2-plan-cta svg { display: none; }

/* ---------- de lade (winkelwagen) ---------- */
html.bn-lock, html.bn-lock body { overflow: hidden; }
.bn-drawer {
  --ink: #0B0B0C; --ink58: rgba(11,11,12,.58); --ink10: rgba(11,11,12,.1); --purple: #8511D9; --space: #B9EFA3;
  --moondust: #F5F6F3; --ease: cubic-bezier(.2,.7,.2,1);
  position: fixed; inset: 0; z-index: 2147482000; color: var(--ink);
  font-family: 'Aeonik', 'Aeonik Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bn-drawer[hidden], .bn-drawer [hidden] { display: none !important; }
:where(.bn-drawer) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(.bn-drawer) :where(h2, p, dl, dd) { margin: 0; }
.bn-dr-overlay { position: absolute; inset: 0; background: rgba(11,11,12,.42); opacity: 0; transition: opacity .25s var(--ease); }
.bn-dr-panel {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%);
  background: #fff; box-shadow: -24px 0 60px rgba(11,11,12,.16); outline: none;
  transform: translateX(100%); transition: transform .25s var(--ease);
}
.bn-drawer.is-open .bn-dr-overlay { opacity: 1; }
.bn-drawer.is-open .bn-dr-panel { transform: none; }

.bn-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--ink10); }
.bn-dr-head h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.bn-dr-x { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s var(--ease); }
.bn-dr-x:hover { background: var(--moondust); }

.bn-dr-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px; }

/* de regel: tegel, naam en omschrijving, prijs */
.bn-li-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.bn-tile { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--ink10); border-radius: 12px; background: var(--moondust); overflow: hidden; }
.bn-tile img { display: block; width: 44px; height: 44px; object-fit: contain; }
.bn-li-name { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.bn-li-desc { margin-top: 4px; font-size: .86rem; line-height: 1.4; color: var(--ink58); }
.bn-li-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 1.05rem; font-weight: 800; line-height: 1.2; white-space: nowrap; text-align: right; }
.bn-li-was { font-size: .82rem; font-weight: 500; color: var(--ink58); }
.bn-per { margin-left: 2px; font-size: .82rem; font-weight: 600; color: var(--ink58); }
.bn-li-price .bn-per { margin: 0; }

.bn-li-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0 78px; }
.bn-sel label { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; color: var(--ink58); }
.bn-sel select {
  display: block; width: 100%; height: 40px; padding: 0 30px 0 12px; border: 1px solid rgba(11,11,12,.22); border-radius: 12px;
  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 10px center / 14px;
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; appearance: none; cursor: pointer;
}
.bn-sel select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-color: var(--ink); }
.bn-li-remove { margin: 12px 0 0 78px; padding: 4px 0; border: 0; background: none; color: var(--ink58); font: inherit; font-size: .86rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bn-li-remove:hover { color: var(--purple); }
@media (max-width: 400px) {
  .bn-li-opts, .bn-li-remove { margin-left: 0; }
  .bn-li-opts { grid-template-columns: 1fr; }
}

.bn-dr-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 8px; text-align: center; color: var(--ink58); }
.bn-dr-empty-i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--moondust); color: var(--ink); }
.bn-dr-empty p { font-size: 1rem; }

/* totalen en afrekenen */
.bn-dr-foot { padding: 18px 24px 22px; border-top: 1px solid var(--ink10); background: #fff; }
.bn-tot { display: grid; gap: 8px; }
.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: 4px; padding-top: 10px; border-top: 1px solid var(--ink10); }
.bn-tot .bn-tot-total dt { color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.bn-tot .bn-tot-total dd { font-size: 1.2rem; font-weight: 800; }
.bn-cur { margin-right: 6px; font-size: .78rem; font-weight: 600; color: var(--ink58); text-decoration: none; }
.bn-billed { margin-top: 6px; font-size: .85rem; line-height: 1.4; color: var(--ink58); text-align: right; }

.bn-drawer .bn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; 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-drawer .bn-btn:active { transform: scale(.96); }
.bn-drawer .bn-btn-primary { background: var(--space); color: var(--ink); }
.bn-drawer .bn-btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(46,158,80,.6); }
.bn-drawer .bn-btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.bn-drawer .bn-btn-ghost:hover { background: var(--ink); color: #fff; }
.bn-drawer .bn-btn-block { display: flex; width: 100%; margin-top: 16px; min-height: 54px; font-size: 1.05rem; }
.bn-dr-browse { display: block; margin: 12px auto 0; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bn-dr-browse:hover { color: var(--purple); }
.bn-drawer :is(a, button, select):focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .site-buynow, .site-buynow-m, .site-mmenu-buynow, .bn-dr-overlay, .bn-dr-panel, .bn-drawer .bn-btn { transition: none; }
}
