/* How it works as a stepper (block steps-stepper-birthdaybanner): steps as
   tabs on the left, a preview of the chosen step on the right. */
[data-sf-block="steps-stepper-birthdaybanner"] { display: block; padding: 80px 0 88px; background: var(--bb-surface-blue); }
.bb-ss-inner { max-width: 1240px; margin: 0 auto; padding: 0 64px; }

/* Head */
.bb-ss-head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 48px; }
.bb-ss-eyebrow { margin: 0; font-family: var(--bb-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bb-blue); }
.bb-ss-head h2 { margin: 0; font-family: var(--bb-font-heading); font-size: var(--bb-h2); font-weight: 600; line-height: var(--bb-h2-lh); letter-spacing: -.01em; color: var(--bb-ink); text-wrap: balance; }
.bb-ss-sub { margin: 0; max-width: 620px; color: var(--bb-body); line-height: 1.6; }

/* Shell: tabs left, preview right */
.bb-ss-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.bb-ss-side { display: grid; gap: 10px; }
.bb-ss-tabs { display: grid; gap: 8px; }
.bb-ss-tab { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; width: 100%; padding: 16px 20px; text-align: left; font: inherit; color: inherit; background: transparent; border: 1.5px solid transparent; border-radius: var(--bb-radius-card); cursor: pointer; transition: background .3s var(--bb-ease), border-color .3s var(--bb-ease), box-shadow .3s var(--bb-ease); }
.bb-ss-tab:hover { background: rgba(255, 255, 255, .6); }
.bb-ss-n { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bb-white); border: 1.5px solid var(--bb-border); color: var(--bb-muted); font-family: var(--bb-font-heading); font-size: 14px; font-weight: 600; transition: background .3s var(--bb-ease), color .3s var(--bb-ease), border-color .3s var(--bb-ease); }
.bb-ss-tab h3 { margin: 0; font-family: var(--bb-font-heading); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--bb-muted); transition: color .3s; }
.bb-ss-tab p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bb-body); }
/* With JS only the chosen step shows its text; without JS all texts stay. */
.bb-ss.is-ready .bb-ss-tab p { display: none; }
.bb-ss.is-ready .bb-ss-tab[aria-selected="true"] p { display: block; animation: bb-ss-rise .4s var(--bb-ease); }
.bb-ss-tab[aria-selected="true"] { background: var(--bb-white); border-color: var(--bb-blue-33); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.bb-ss-tab[aria-selected="true"] .bb-ss-n { background: var(--bb-blue); border-color: var(--bb-blue); color: var(--bb-white); }
.bb-ss-tab[aria-selected="true"] h3 { color: var(--bb-ink); }
.bb-ss-tab:focus-visible { outline: 3px solid var(--bb-blue); outline-offset: 2px; }
.bb-ss-bar { height: 4px; margin: 6px 20px 0; border-radius: 4px; background: var(--bb-border); overflow: hidden; }
.bb-ss-bar i { display: block; width: calc(100% / var(--ss-n, 4)); height: 100%; border-radius: inherit; background: var(--bb-gradient); transition: width .5s var(--bb-ease); }
.bb-ss-link { justify-self: start; margin: 10px 20px 0; font-size: 14px; }

/* Preview card */
.bb-ss-view { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 28px; border-radius: 24px; background: var(--bb-white); box-shadow: 0 20px 46px rgba(0, 0, 0, .14); overflow: hidden; }
.bb-ss-view::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 0%, rgba(79, 130, 195, .10), transparent 50%), radial-gradient(circle at 100% 100%, rgba(252, 184, 48, .14), transparent 50%); pointer-events: none; }
.bb-ss-panel { position: relative; width: 100%; max-width: 400px; animation: bb-ss-rise .5s var(--bb-ease); }
.bb-ss-panel[hidden] { display: none; }
@keyframes bb-ss-rise { from { transform: translateY(10px); opacity: .3; } to { transform: none; opacity: 1; } }
.bb-ss-view svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bb-scope .bb-ss-view img { display: block; max-width: none; width: 100%; height: 100%; object-fit: cover; }

/* 1 · Pick a design and fill in */
.bb-ss-pick { display: grid; gap: 18px; }
.bb-ss-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.bb-ss-thumbs > img, .bb-ss-thumbs > span { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .10); }
.bb-ss-thumbs > img { opacity: .55; transform: scale(.92); }
.bb-ss-thumbs > span { position: relative; outline: 3px solid var(--bb-coral); outline-offset: 3px; animation: bb-ss-pop .6s var(--bb-ease-bounce) .15s both; }
.bb-ss-thumbs > span i { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bb-coral); color: var(--bb-white); }
@keyframes bb-ss-pop { from { transform: scale(.9); } to { transform: scale(1.04); } }
.bb-ss-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bb-ss-form label { display: grid; gap: 4px; font-family: var(--bb-font-heading); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); }
.bb-ss-form label.is-wide { grid-column: 1 / -1; }
.bb-ss-form span { padding: 8px 12px; border: 1px solid var(--bb-border); border-radius: 10px; font-family: var(--bb-font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bb-ink); background: var(--bb-white); }
.bb-ss-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--bb-coral); animation: bb-ss-blink 1s steps(1) infinite; }
@keyframes bb-ss-blink { 50% { opacity: 0; } }

/* 2 · We check */
.bb-ss-check { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 22px; align-items: center; }
.bb-ss-art { position: relative; aspect-ratio: 9 / 16; max-height: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.bb-ss-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(79, 130, 195, .45)); border-bottom: 2px solid var(--bb-blue); animation: bb-ss-scan 2.4s var(--bb-ease) infinite; }
@keyframes bb-ss-scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.bb-ss-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bb-ss-check li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bb-surface-blue); font-family: var(--bb-font-heading); font-size: 13.5px; font-weight: 500; color: var(--bb-ink); animation: bb-ss-in .45s var(--bb-ease) both; }
.bb-ss-check li:nth-child(2) { animation-delay: .35s; }
.bb-ss-check li:nth-child(3) { animation-delay: .7s; }
.bb-ss-check li:nth-child(4) { animation-delay: 1.05s; }
.bb-ss-check li i, .bb-ss-track li i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bb-blue); color: var(--bb-white); }
@keyframes bb-ss-in { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 3 · The proof */
.bb-ss-proof { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px 22px; align-items: center; }
.bb-ss-mail { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--bb-surface-blue); font-family: var(--bb-font-heading); font-size: 14px; font-weight: 600; color: var(--bb-ink); }
.bb-ss-mail small { flex: none; padding: 2px 10px; border-radius: var(--bb-radius-pill); background: var(--bb-yellow); font-size: 11px; font-weight: 600; color: var(--bb-ink); }
.bb-ss-proof .bb-ss-art { max-height: 240px; }
.bb-ss-acts { display: grid; gap: 10px; }
.bb-ss-acts span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: var(--bb-radius-pill); border: 1.5px solid var(--bb-border); font-family: var(--bb-font-heading); font-size: 14px; font-weight: 600; color: var(--bb-ink); }
.bb-ss-acts span small { font-size: 11px; font-weight: 500; color: var(--bb-muted); }
.bb-ss-acts .is-ok { border-color: var(--bb-coral); background: var(--bb-coral); color: var(--bb-white); box-shadow: 0 12px 26px rgba(241, 90, 85, .3); animation: bb-ss-pulse 1.8s var(--bb-ease) .4s infinite; }
@keyframes bb-ss-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.04); } }

/* 4 · Print and ship */
.bb-ss-track { display: grid; gap: 16px; }
.bb-ss-track ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 16px; }
.bb-ss-track ol::before { content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 2px; background: var(--bb-border); }
.bb-ss-track li { position: relative; display: flex; align-items: center; gap: 14px; font-family: var(--bb-font-heading); font-size: 14px; color: var(--bb-muted); animation: bb-ss-in .45s var(--bb-ease) both; }
.bb-ss-track li:nth-child(2) { animation-delay: .25s; }
.bb-ss-track li:nth-child(3) { animation-delay: .5s; }
.bb-ss-track li:nth-child(4) { animation-delay: .75s; }
.bb-ss-track li p { display: grid; gap: 1px; margin: 0; }
.bb-ss-track li b { font-weight: 500; }
.bb-ss-track li small { font-family: var(--bb-font-body); font-size: 12.5px; color: var(--bb-muted); }
.bb-ss-track li.is-done b, .bb-ss-track li.is-now b { color: var(--bb-ink); }
.bb-ss-track li.is-now small { color: var(--bb-coral); font-weight: 600; }
/* The order the steps belong to: the same design, name and size as step 1. */
.bb-ss-parcel { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--bb-surface-blue); }
.bb-ss-parcel-art { flex: none; width: 40px; height: 56px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.bb-ss-parcel p { display: grid; gap: 1px; margin: 0; min-width: 0; }
.bb-ss-parcel b { font-family: var(--bb-font-heading); font-size: 14px; font-weight: 600; color: var(--bb-ink); }
.bb-ss-parcel small { font-size: 12.5px; color: var(--bb-muted); }
.bb-ss-note { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--bb-border); font-size: 13.5px; line-height: 1.45; color: var(--bb-body); }
.bb-ss-nowrap { white-space: nowrap; }
.bb-ss-view .bb-ss-note svg { flex: none; width: 18px; height: 18px; stroke-width: 2; color: var(--bb-blue); }
.bb-ss-track li:not(.is-done) i { background: var(--bb-white); border: 2px solid var(--bb-border); }
.bb-ss-track li.is-now i { border-color: var(--bb-coral); box-shadow: 0 0 0 0 rgba(241, 90, 85, .5); animation: bb-ss-ring 1.6s ease-out infinite; }
.bb-ss-track li.is-now i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bb-coral); }
@keyframes bb-ss-ring { to { box-shadow: 0 0 0 10px rgba(241, 90, 85, 0); } }

@media (max-width: 1100px) { .bb-ss-inner { padding: 0 40px; } .bb-ss-shell { gap: 32px; } }
@media (max-width: 900px) {
  [data-sf-block="steps-stepper-birthdaybanner"] { padding: 56px 0 64px; }
  .bb-ss-inner { padding: 0 24px; }
  .bb-ss-head { margin-bottom: 32px; }
  .bb-ss-shell { grid-template-columns: minmax(0, 1fr); }
  .bb-ss-view { order: -1; aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 620px) {
  .bb-ss-inner { padding: 0 16px; }
  .bb-ss-view { padding: 20px 16px; min-height: 320px; }
  .bb-ss-tab { padding: 14px 14px; gap: 2px 12px; }
  .bb-ss-tab h3 { font-size: 16px; }
  .bb-ss-art { max-height: 220px; }
  .bb-ss-proof .bb-ss-art { max-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-ss *, .bb-ss *::before, .bb-ss *::after { animation: none !important; transition: none !important; }
  .bb-ss-scan { display: none; }
}
