/* 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: 700;
  /* .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);
}
.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: 700;
  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: 700;
  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); }

.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: 800; 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: 800; flex-shrink: 0;
}
.bb-tpv-include-title { margin: 0 0 2px; font-family: var(--bb-font-heading); font-size: 12.5px; font-weight: 700; 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: 800;
  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: 900; 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: 900; 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 {
  display: block;
  text-align: center;
  background: var(--bb-gradient-135);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 14px;
  padding: 16px;
  font-family: var(--bb-font-heading);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  margin-bottom: 10px;
}
.bb-tpv-cta-primary:hover { color: #fff !important; text-decoration: none !important; filter: brightness(1.05); }
.bb-tpv-cta-secondary {
  display: block;
  text-align: center;
  background: var(--bb-white);
  border: 1.5px solid rgba(0, 0, 0, .2);
  color: var(--bb-ink) !important;
  text-decoration: none !important;
  border-radius: 14px;
  padding: 15px;
  font-family: var(--bb-font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.bb-tpv-cta-secondary:hover { color: var(--bb-ink) !important; text-decoration: none !important; border-color: var(--bb-blue); }
.bb-tpv-save {
  width: 100%;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--bb-font-heading);
  font-size: 12px;
  font-weight: 700;
  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: 700; color: var(--bb-ink); text-align: right; }

.bb-tpv-scratch-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-family: var(--bb-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-ink) !important;
  text-decoration: none !important;
  padding: 10px;
}

.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: 22px; font-weight: 900; 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: 700; 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: 900; 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: 800; 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: 800; color: var(--bb-ink); }
.bb-tpv-related-cta { font-family: var(--bb-font-heading); font-size: 11.5px; font-weight: 700; 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; }
}
