/*
 * Blije Boeddha: extra blokken (kettingkeuze A2, mand-tip M1, winkelkaart B1, winkelband B2, winkelstatus).
 * Alles onder het voorvoegsel .bbx-, los van de mockup. Kleuren via de GeneratePress-variabelen met terugval.
 * Plaatsen als Fluent Snippet (CSS, "Load as file").
 *
 * Responsief via container queries: deze blokken staan in een kolom (rechterkolom productpagina, winkelmand),
 * en die kolom is op desktop bijna even smal als een telefoon. Ze reageren dus op hun eigen breedte, niet op
 * het venster. Browsers zonder container queries krijgen de smalle opmaak, die overal werkt.
 */

.bbx-chain,
.bbx-mc,
.bbx-store,
.bbx-band,
.bbx-status,
.bbx-usp-rating,
.bbx-stock-extra,
.bbx-paylogos {
  --bbx-ink: var(--contrast-2, #123243);
  --bbx-brand: var(--contrast, #226081);
  --bbx-tint: var(--contrast-4, #eef2f6);
  --bbx-soft: #f4f7f9;
  --bbx-thumb: #edf1f4;
  --bbx-muted: #5b6b78;          /* 5,1:1 op --bbx-soft */
  --bbx-ctl: #7d8f9c;            /* rand van een bedienbaar element: 3,1:1 op --bbx-soft */
  --bbx-green: var(--groen, #228143);
  --bbx-green-text: #1e6e3a;     /* groene tekst op lichte vlakken: 5,6:1 */
  --bbx-head: "Work Sans", sans-serif;
  --bbx-radius: 12px;
}

/* ---------- gedeeld: lengteknop ---------- */
.bbx-len {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  background: #fff;
  color: var(--bbx-ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 50, 67, .10);
  transition: background-color .15s ease, color .15s ease;
}
.bbx-len__price { color: var(--bbx-muted); font-size: 13px; }
.bbx-len:hover { background: #fff; color: var(--bbx-ink); box-shadow: 0 1px 3px rgba(18, 50, 67, .18); }
.bbx-len[aria-pressed="true"],
.bbx-len[aria-pressed="true"]:hover { background: var(--bbx-ink); color: #fff; box-shadow: none; font-weight: 600; }
.bbx-len[aria-pressed="true"] .bbx-len__price { color: #c3cdd5; font-weight: 400; }
.bbx-len:focus-visible { outline: 2px solid var(--bbx-brand); outline-offset: 2px; }

/* ---------- A2: ketting kiezen in het formulier ---------- */
.bbx-chain {
  container-type: inline-size;
  border: 0;
  margin: 4px 0 22px;
  padding: 0;
  min-width: 0;
}
/* form.cart is in de Kadence-sjabloon een flexrij (aantal + knop); de keuze krijgt een eigen volle regel */
form.cart:has(> .bbx-chain) { flex-wrap: wrap; }
form.cart > .bbx-chain { flex: 0 0 100%; width: 100%; }
.bbx-chain .bbx-chain__title {
  font: 600 17px/1.3 var(--bbx-head);
  letter-spacing: -.2px;
  color: var(--bbx-ink);
  padding: 0;
  margin: 0 0 4px;
}
.bbx-chain__hint { font-size: 14px; line-height: 1.5; color: var(--bbx-muted); margin: 0 0 12px; }
.bbx-chain__options { display: grid; gap: 2px; margin: 0 -12px; }
.bbx-chain__item { border-radius: var(--bbx-radius); transition: background-color .15s ease; }
.bbx-chain__item.is-selected { background: var(--bbx-soft); }
.bbx-chain__option {
  display: grid;
  grid-template-columns: 20px 48px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 10px 12px;
  border-radius: var(--bbx-radius);
  cursor: pointer;
  margin: 0;
}
.bbx-chain__item:not(.is-selected) .bbx-chain__option:hover { background: var(--bbx-soft); }
.bbx-chain__radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--bbx-ctl);
  border-radius: 50%;
  background: #fff;
  transition: border-width .12s ease, border-color .12s ease;
}
.bbx-chain__radio:checked { border: 6px solid var(--bbx-ink); }
.bbx-chain__radio:focus-visible { outline: 2px solid var(--bbx-brand); outline-offset: 3px; }
.bbx-chain__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bbx-thumb);
  overflow: hidden;
  display: block;
}
.bbx-chain__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.bbx-chain__text { min-width: 0; }
.bbx-chain__name { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--bbx-ink); }
.bbx-chain__meta { display: block; font-size: 13px; line-height: 1.4; color: var(--bbx-muted); margin-top: 2px; }
.bbx-chain__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f2eb;
  color: var(--bbx-green-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
  white-space: nowrap;
}
.bbx-chain__price { font-size: 14px; font-weight: 600; color: var(--bbx-ink); white-space: nowrap; text-align: right; }
.bbx-chain__price small { display: block; font-size: 12px; font-weight: 400; color: var(--bbx-muted); }
.bbx-chain__lengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 14px 108px; /* lijnt uit met de naam: 12 + 20 + 14 + 48 + 14 */
}
.bbx-chain__lengths[hidden] { display: none; }
.bbx-chain__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--bbx-ink);
}
.bbx-chain__total[hidden] { display: none; }
.bbx-chain__sum { font-size: 18px; font-weight: 700; }
.bbx-chain__detail { color: var(--bbx-muted); font-size: 13px; }

@container (max-width: 400px) {
  .bbx-chain__option { grid-template-columns: 20px 44px minmax(0, 1fr) auto; column-gap: 12px; }
  .bbx-chain__thumb { width: 44px; height: 44px; }
  .bbx-chain__lengths { padding-left: 44px; }
}

/* ---------- M1: tip in de winkelmand (Modern Cart) ---------- */
.bbx-mc {
  display: block;
  margin: 12px 0 2px;
  padding: 12px 14px 14px;
  border-radius: var(--bbx-radius);
  background: var(--bbx-soft);
  color: var(--bbx-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}
.bbx-mc__title { display: block; font-weight: 700; font-size: 13px; color: var(--bbx-ink); }
.bbx-mc__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bbx-mc__thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--bbx-thumb); overflow: hidden; display: block; }
.bbx-mc__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.bbx-mc a.bbx-mc__name,
.bbx-mc .bbx-mc__name { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--bbx-ink); text-decoration: none; }
.bbx-mc a.bbx-mc__name:hover { text-decoration: underline; }
.bbx-mc__meta { display: block; font-size: 12px; color: var(--bbx-muted); }
.bbx-mc__lengths { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bbx-mc .bbx-len { min-height: 32px; padding: 0 12px; font-size: 13px; }
.bbx-mc .bbx-len__price { font-size: 12px; }
.bbx-mc__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.bbx-mc__add {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  background: #fff;
  color: var(--bbx-green-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(18, 50, 67, .12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.bbx-mc__add:hover { box-shadow: 0 1px 4px rgba(18, 50, 67, .2); background: #fff; color: var(--bbx-green-text); }
.bbx-mc__add:focus-visible { outline: 2px solid var(--bbx-brand); outline-offset: 2px; }
.bbx-mc__add svg { width: 15px; height: 15px; }
.bbx-mc__add.is-busy { opacity: .6; pointer-events: none; }
.bbx-mc a.bbx-mc__more { font-size: 12px; font-weight: 600; color: var(--bbx-brand); text-decoration: none; }
.bbx-mc a.bbx-mc__more:hover { text-decoration: underline; }

/* ---------- winkelstatus ---------- */
.bbx-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bbx-ink);
}
.bbx-status__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--bbx-ctl); }
.bbx-status.is-open { color: var(--bbx-green-text); }
.bbx-status.is-open .bbx-status__dot { background: var(--bbx-green); box-shadow: 0 0 0 3px rgba(34, 129, 67, .18); }

/* ---------- B1: winkelkaart op de productpagina ---------- */
.bbx-store {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--bbx-radius);
  background: var(--bbx-soft);
}
.bbx-store__photo { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bbx-tint); display: block; }
.bbx-store__body { min-width: 0; }
.bbx-store .bbx-store__title { margin: 0; font: 600 16px/1.3 var(--bbx-head); letter-spacing: -.2px; color: var(--bbx-ink); }
.bbx-store__text { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--bbx-ink); }
.bbx-store__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.bbx-store a.bbx-store__link { font-size: 13px; font-weight: 600; color: var(--bbx-brand); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.bbx-store a.bbx-store__link:hover { text-decoration: underline; }
.bbx-store__link svg { width: 14px; height: 14px; }

/* ---------- B2: winkelband op de homepage ---------- */
.bbx-band {
  container-type: inline-size;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bbx-tint);
  color: var(--bbx-ink);
  margin: 0 0 8px;
}
.bbx-band__media { position: relative; height: 240px; overflow: hidden; }
.bbx-band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.bbx-band__people { position: absolute; right: 12px; bottom: 0; width: 150px; height: auto; display: block; }
.bbx-band__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 20px 28px; }
.bbx-band__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bbx-ink); }
.bbx-band .bbx-band__title { margin: 8px 0 12px; font: 600 26px/1.15 var(--bbx-head); letter-spacing: -.5px; color: var(--bbx-brand); }
.bbx-band__text { margin: 0; font-size: 15px; line-height: 1.6; }
.bbx-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.bbx-band a.bbx-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bbx-brand);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.bbx-band a.bbx-band__btn:hover { background: var(--bbx-ink); color: #fff; }
.bbx-band__btn svg { width: 16px; height: 16px; }
.bbx-band a.bbx-band__link { font-size: 14px; font-weight: 600; color: var(--bbx-brand); text-decoration: none; }
.bbx-band a.bbx-band__link:hover { text-decoration: underline; }
.bbx-band__hours { margin: 0; display: grid; gap: 2px; }
.bbx-band__day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-size: 14px;
}
.bbx-band__day dt, .bbx-band__day dd { margin: 0; }
.bbx-band__day dd { color: var(--bbx-muted); }
.bbx-band__day.is-today { background: #fff; font-weight: 600; }
.bbx-band__day.is-today dd { color: inherit; }
.bbx-band__address { display: flex; gap: 10px; margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: var(--bbx-ink); }
.bbx-band__address svg { width: 18px; height: 18px; flex: none; color: var(--bbx-brand); margin-top: 1px; }
.bbx-band__intro { display: contents; }
.bbx-band__actions { order: 3; }
.bbx-band__info { order: 2; margin-top: 22px; }
.bbx-band__status { margin: 0 0 10px; }

@container (min-width: 760px) {
  .bbx-band__media { height: 280px; }
  .bbx-band__people { right: 56px; width: 230px; }
  .bbx-band__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; padding: 40px 48px 44px; }
  .bbx-band__intro { display: block; }
  .bbx-band .bbx-band__title { font-size: 31px; }
  .bbx-band__actions, .bbx-band__info { order: 0; }
  .bbx-band__info { margin-top: 0; }
}

/* ---------- C: rechterkolom ---------- */
/* reviewscore als laatste regel in ul.usp-list */
.usp-list li.bbx-usp-rating,
.bbx-usp-rating { display: flex; align-items: center; gap: 8px; }
/* de ster staat op de plek van het vinkje: zelfde breedte (1em) */
.bbx-stars { color: var(--accent-2, #e6b412); font-size: 15px; line-height: 1; width: 14px; flex: none; text-align: center; margin-right: 0; }
.bbx-usp-rating b { color: var(--bbx-ink); }
.bbx-usp-rating a { color: var(--bbx-brand); text-decoration: underline; text-underline-offset: 2px; }
.bbx-usp-rating a:hover { text-decoration-thickness: 2px; }
/* levertijd achter "Op voorraad" */
.bbx-stock-extra { margin-left: .3em; font-weight: 400; color: #333; }
/* hangend inspringen: breekt de regel af, dan lijnt de rest uit onder de tekst en niet onder het vinkje */
p.stock:has(.bbx-stock-extra) { padding-left: 23px; text-indent: -23px; }
p.stock:has(.bbx-stock-extra) .stock-text::after { content: "."; }
/* betaallogo's klein onder "Afrekenen" in de winkelmand */
.bbx-paylogos { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; }
.bbx-paylogos img { height: 28px; width: auto; display: block; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .bbx-len, .bbx-chain__item, .bbx-chain__radio { transition: none; }
}

/* ---------- Eindreview 13-11 (B-1 t/m B-5) ---------- */
/* B-1: de band staat in een full-width .entry-content; zelfde binnenmaat als de andere secties */
.entry-content > .bbx-band { width: min(1284px, calc(100% - 60px)); margin: 0 auto 8px; }
@media (max-width: 767px) { .entry-content > .bbx-band { width: calc(100% - 40px); } }
/* B-2: tip in de mand met eigen marges; de algemene aanbevelingen wijken zolang de tip er staat */
.moderncart-slide-out-cart-inner > .bbx-mc { margin: 4px var(--moderncart-cart-item-padding, 20px) 16px; }
.moderncart-slide-out-cart:has(.bbx-mc) [role="region"]:has(> .moderncart-slide-out-recommendations-header) { display: none; }
/* B-3: WhatsApp-knop opzij zolang het koopgebied of de knoppen van de band in beeld zijn */
.sticky-whatsapp { transition: opacity .2s ease, transform .2s ease; }
.sticky-whatsapp.is-tucked { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-whatsapp { transition: none; } }
/* B-5: koopknop op een regel in de smalle kolom tussen 769 en 1199px */
@media (min-width: 769px) and (max-width: 1199px) {
  .single_add_to_cart_button.button.alt { white-space: nowrap; font-size: 15px; padding-left: 12px; padding-right: 12px; }
}
