/* Template preview (block "template-preview-birthdaybanner") */

.bb-tpv { background: var(--bb-surface); }

.bb-tpv-breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 64px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bb-font-body);
  font-size: 12px;
  color: var(--bb-body);
}
.bb-tpv-breadcrumb a { color: var(--bb-muted) !important; }
.bb-tpv-breadcrumb .is-current { color: var(--bb-quiet); }
.bb-tpv-breadcrumb-spacer { flex: 1; }
.bb-tpv-close {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(0, 0, 0, .16);
  background: var(--bb-white);
  border-radius: var(--bb-radius-pill);
  padding: 7px 15px 7px 12px;
  font-family: var(--bb-font-heading);
  font-size: 12.5px;
  font-weight: 600;
  /* .bb-scope a (birthdaybanner.css) outranks a single class here and its
     bundle stylesheet loads after this block's — same fix birthdaybanner.css
     itself uses for the sf-process-steps/sf-faq overrides. Applies to every
     .bb-tpv-* anchor below that carries its own text color. */
  color: var(--bb-ink) !important;
  text-decoration: none !important;
}
.bb-tpv-close span { font-size: 16px; line-height: 1; }
.bb-tpv-close:hover { color: var(--bb-ink) !important; text-decoration: none !important; border-color: var(--bb-blue); }

.bb-tpv-split {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 64px 64px;
  display: flex;
  gap: 44px;
  align-items: flex-start;
}

.bb-tpv-left { flex: 1; min-width: 320px; }

.bb-tpv-canvas-shell {
  border-radius: var(--bb-radius-card);
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .1);
  padding: 28px;
  box-shadow: var(--sh-card);
}

.bb-tpv-canvas {
  position: relative;
  border-radius: var(--bb-radius-card);
  background: var(--bb-gradient-135);
  max-height: min(62vh, 560px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 5%, 44px) clamp(18px, 5%, 34px) clamp(32px, 7%, 48px);
  text-align: center;
  box-shadow: var(--sh-photo);
  transition: aspect-ratio .3s var(--bb-ease);
}
/* Photo templates: the photo replaces the gradient and speaks for itself,
   so the headline/icon/wish overlay and decorative circles are left off. */
.bb-tpv-canvas.has-photo,
.bb-tpv-related-preview.has-photo {
  background-size: cover;
  background-position: center;
}
.bb-tpv-canvas.has-photo .bb-tpv-canvas-deco,
.bb-tpv-canvas.has-photo .bb-tpv-canvas-icon,
.bb-tpv-canvas.has-photo .bb-tpv-canvas-headline,
.bb-tpv-canvas.has-photo .bb-tpv-canvas-wish,
.bb-tpv-related-preview.has-photo .bb-tpv-related-icon,
.bb-tpv-related-preview.has-photo .bb-tpv-related-headline { display: none; }
.bb-tpv-canvas.has-photo .bb-tpv-canvas-watermark { color: rgba(255, 255, 255, .75); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* Roll-up: the design hangs on the drawn stand, same parts and seating as the
   home hero (DESIGN.md "Heroes"). The stage is as wide as the print fits in the
   height cap, so rail and cassette size off it; cqw = the print's width. */
.bb-tpv-stand-rail,
.bb-tpv-stand-cassette { display: none; }
.bb-tpv-stage.is-rollup {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, calc(min(56vh, 500px) * var(--bb-tpv-r)));
  margin: 4px auto 18px;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .22));
}
/* Keep the watermark on one line. */
.bb-tpv-stage.is-rollup .bb-tpv-canvas-watermark { white-space: nowrap; }
.bb-tpv-stage.is-rollup .bb-tpv-canvas {
  width: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 1; /* over the back half of the base's top face, into the slot */
}
.bb-tpv-stage.is-rollup .bb-tpv-stand-rail,
.bb-tpv-stage.is-rollup .bb-tpv-stand-cassette {
  position: relative;
  z-index: 2;
  display: block;
  max-width: none;
  height: auto;
}
/* Rail 535x16 at 104%: overlaps the print's top edge by 55% of its height. */
.bb-tpv-stage.is-rollup .bb-tpv-stand-rail { width: 104%; margin-bottom: -1.71%; }
/* Straight-on cassette 600x64 at 107.14% (print spans x=20..580), behind the
   print: its slot (y=13.8) sits on the print's bottom edge. */
.bb-tpv-stage.is-rollup .bb-tpv-stand-cassette { z-index: 0; width: 107.14%; margin-top: -2.46%; }


.bb-tpv-canvas-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.bb-tpv-canvas-deco-1 { top: -40px; right: -40px; width: 180px; height: 180px; background: rgba(255, 255, 255, .09); }
.bb-tpv-canvas-deco-2 { bottom: -30px; left: -30px; width: 140px; height: 140px; background: rgba(255, 255, 255, .5); }
.bb-tpv-canvas-icon { font-size: clamp(18px, 3vw, 30px); line-height: 1; }
.bb-tpv-canvas-headline {
  margin: 0;
  font-family: var(--bb-font-heading);
  font-size: clamp(19px, 2.7vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  text-wrap: balance;
}
.bb-tpv-canvas-wish {
  margin: 0;
  max-width: 84%;
  font-family: var(--bb-font-body);
  font-style: italic;
  font-size: clamp(11px, 1.2vw, 16px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}
.bb-tpv-canvas-watermark {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--bb-font-heading);
  font-size: 9px;
  font-weight: 700;
  color: var(--bb-ink);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bb-tpv-ratio-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.bb-tpv-ratio-label {
  font-family: var(--bb-font-heading);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--bb-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-right: 2px;
}
.bb-tpv-ratio-chip {
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .14);
  border-radius: var(--bb-radius-pill);
  padding: 7px 14px;
  font-family: var(--bb-font-heading);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bb-quiet);
  cursor: pointer;
}
.bb-tpv-ratio-chip.is-active { background: rgba(0, 0, 0, .08); border-color: var(--bb-ink); color: var(--bb-ink); }

/* Real product photos of the banner type chosen under "Bekijk als". */
.bb-tpv-product { margin-top: 18px; padding: 14px; border-radius: 18px; background: var(--bb-white); border: 1.5px solid rgba(0, 0, 0, .1); display: grid; gap: 12px; }
.bb-tpv-product[hidden] { display: none; }
.bb-tpv-product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bb-tpv-product-title { margin: 0; font-family: var(--bb-font-heading); font-size: 15px; font-weight: 600; color: var(--bb-ink); }
.bb-tpv-product-place { font-family: var(--bb-font-body); font-size: 12.5px; font-weight: 600; color: var(--bb-muted); }
.bb-tpv-product-main { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-radius: 12px; }
.bb-tpv-product-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 14px; background: #F6F7FA; border: 1px solid rgba(0, 0, 0, .08); }
.bb-tpv-product-thumbs button { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.bb-tpv-product-thumbs button[aria-pressed="true"] { border-color: var(--bb-ink); }
.bb-tpv-product-thumbs button:focus-visible { outline: 3px solid var(--bb-blue); outline-offset: 2px; }
.bb-tpv-product-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bb-tpv-product-cap { margin: 0; font-family: var(--bb-font-body); font-size: 13px; color: var(--bb-muted); }

.bb-tpv-panel {
  margin-top: 22px;
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: var(--bb-radius-card);
  padding: 22px 24px;
}
.bb-tpv-panel-title { margin: 0 0 4px; font-family: var(--bb-font-heading); font-size: 13px; font-weight: 600; color: var(--bb-ink); }
.bb-tpv-panel-text { margin: 0 0 14px; font-family: var(--bb-font-body); font-size: 12px; color: var(--bb-quiet); line-height: 1.55; }

.bb-tpv-colourways { display: flex; gap: 10px; flex-wrap: wrap; }
.bb-tpv-colourway {
  width: 60px; height: 44px;
  border-radius: var(--bb-radius-inner);
  background: var(--bb-gradient-135);
  border: 2.5px solid rgba(0, 0, 0, .12);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .1);
}
.bb-tpv-colourway:nth-child(2) { filter: brightness(.82) saturate(1.1); }
.bb-tpv-colourway:nth-child(3) { filter: hue-rotate(20deg); }
.bb-tpv-colourway:nth-child(4) { filter: grayscale(.35) brightness(.9); }
.bb-tpv-colourway.is-active { border-color: var(--bb-ink); }

.bb-tpv-includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.bb-tpv-include { display: flex; gap: 10px; align-items: flex-start; }
.bb-tpv-include-check {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--bb-ink); font-weight: 600; flex-shrink: 0;
}
.bb-tpv-include-title { margin: 0 0 2px; font-family: var(--bb-font-heading); font-size: 12.5px; font-weight: 600; color: var(--bb-ink); }
.bb-tpv-include-sub { margin: 0; font-family: var(--bb-font-body); font-size: 11.5px; color: var(--bb-quiet); line-height: 1.5; }

.bb-tpv-side { width: 372px; flex-shrink: 0; position: sticky; top: 88px; }

.bb-tpv-buy {
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .12);
  border-radius: var(--bb-radius-card);
  padding: 26px;
  box-shadow: var(--sh-card);
}
.bb-tpv-buy-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.bb-tpv-buy-tag {
  background: rgba(0, 0, 0, .08);
  color: var(--bb-ink);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--bb-font-heading);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bb-tpv-buy-uses { font-family: var(--bb-font-body); font-size: 11.5px; color: var(--bb-body); }
.bb-tpv-buy h1 { margin: 0 0 6px; font-size: 29px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--bb-ink); }
.bb-tpv-buy-desc { margin: 0 0 18px; font-family: var(--bb-font-body); font-size: 13.5px; color: var(--bb-quiet); line-height: 1.65; }

.bb-tpv-price-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.bb-tpv-price { font-size: 34px; font-weight: 600; color: var(--bb-ink); letter-spacing: -.03em; }
.bb-tpv-price-was { font-family: var(--bb-font-body); font-size: 13px; color: var(--bb-muted); text-decoration: line-through; }
.bb-tpv-price-note { margin: 0 0 20px; font-family: var(--bb-font-body); font-size: 11.5px; color: var(--bb-quiet); }

.bb-tpv-cta-primary, .bb-tpv-cta-secondary { margin-bottom: 10px; }
.bb-tpv-cta-secondary { justify-content: center; }
.bb-tpv-save {
  width: 100%;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--bb-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--bb-body);
  cursor: pointer;
}
.bb-tpv-save.is-active { color: var(--bb-blue); }

.bb-tpv-divider { height: 1px; background: rgba(0, 0, 0, .1); margin: 18px 0; }

.bb-tpv-specs { display: flex; flex-direction: column; gap: 11px; }
.bb-tpv-spec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.bb-tpv-spec-row span:first-child { font-family: var(--bb-font-body); font-size: 12px; color: var(--bb-quiet); }
.bb-tpv-spec-row span:last-child { font-size: 12px; font-weight: 600; color: var(--bb-ink); text-align: right; }

.bb-tpv-scratch-link { display: flex; justify-content: center; margin-top: 14px; padding: 10px; font-size: 13px; text-align: center; white-space: normal; }

.bb-tpv-related {
  background: var(--bb-white);
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 56px 64px 64px;
}
.bb-tpv-related-inner { max-width: 1240px; margin: 0 auto; }
.bb-tpv-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.bb-tpv-related-head h2 { margin: 0 0 4px; font-size: var(--bb-h2); font-weight: 600; letter-spacing: -.02em; color: var(--bb-ink); }
.bb-tpv-related-head p { margin: 0; font-family: var(--bb-font-body); font-size: 13px; color: var(--bb-quiet); }
.bb-tpv-related-back { font-family: var(--bb-font-heading); font-size: 12.5px; font-weight: 600; color: var(--bb-ink) !important; text-decoration: none !important; }

.bb-tpv-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.bb-tpv-related-card {
  display: block;
  border-radius: var(--bb-radius-card);
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .09);
  overflow: hidden;
  box-shadow: var(--sh-card);
  color: inherit;
  transition: transform .22s var(--bb-ease), box-shadow .22s var(--bb-ease);
}
.bb-tpv-related-card:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hi); text-decoration: none !important; color: inherit; }
.bb-tpv-related-preview {
  min-height: 158px;
  background: var(--bb-gradient-135);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px 16px;
  text-align: center;
}
.bb-tpv-related-icon { font-size: 18px; line-height: 1; }
.bb-tpv-related-headline { margin: 0; font-family: var(--bb-font-heading); font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; text-wrap: balance; }
.bb-tpv-related-body { padding: 14px 16px 16px; }
.bb-tpv-related-name { margin: 0 0 2px; font-family: var(--bb-font-heading); font-size: 13px; font-weight: 600; color: var(--bb-ink); }
.bb-tpv-related-sub { margin: 0 0 10px; font-family: var(--bb-font-body); font-size: 11.5px; color: var(--bb-body); }
.bb-tpv-related-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bb-tpv-related-price { font-size: 13px; font-weight: 600; color: var(--bb-ink); }
.bb-tpv-related-cta { font-family: var(--bb-font-heading); font-size: 11.5px; font-weight: 600; color: var(--bb-blue); }

@media (max-width: 1240px) {
  .bb-tpv-breadcrumb { padding-left: 40px; padding-right: 40px; }
  .bb-tpv-split { padding-left: 40px; padding-right: 40px; }
  .bb-tpv-related { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 900px) {
  .bb-tpv-split { flex-direction: column; }
  .bb-tpv-side { width: 100%; position: static; }
}

@media (max-width: 620px) {
  .bb-tpv-breadcrumb { padding-left: 18px; padding-right: 18px; }
  .bb-tpv-split { padding-left: 18px; padding-right: 18px; }
  .bb-tpv-related { padding-left: 18px; padding-right: 18px; }
}
