/* The order steps as one route in three phases (block order-route-birthdaybanner).
   Three panels side by side; their top bars together form one line
   blue → coral → yellow, broken by the approval stop between panel 2 and 3.
   Inside a panel the steps run down a short timeline. */
[data-sf-block="order-route-birthdaybanner"] {
  display: block;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(38% 46% at 12% 30%, rgba(79, 130, 195, .34), transparent 70%),
    radial-gradient(34% 44% at 52% 78%, rgba(241, 90, 85, .24), transparent 70%),
    radial-gradient(36% 46% at 90% 32%, rgba(252, 184, 48, .34), transparent 70%),
    var(--bb-surface-blue);
}
.bb-route-inner { max-width: 1240px; margin: 0 auto; padding: 0 64px; }

/* Head */
.bb-route-head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 52px; }
.bb-route-eyebrow { margin: 0; font-family: var(--bb-font-heading); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bb-blue); }
.bb-route-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-route-sub { margin: 0; max-width: 34em; color: var(--bb-body); line-height: 1.6; }

/* Map: panel · panel · stop · panel */
.bb-route-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px minmax(0, 1fr); column-gap: 20px; grid-template-rows: auto auto 1fr; align-items: stretch; }
.bb-route-phase { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; padding: 30px 28px 28px; border-radius: var(--bb-radius-card); overflow: hidden;
  /* Frosted glass: the coloured glows of the section show through, blurred. */
  background: linear-gradient(155deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .30));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px rgba(31, 63, 107, .10); }
.bb-route-gate + .bb-route-phase { grid-column: 4; }
.bb-route-phase.is-p2:not(.bb-route-gate ~ *) { grid-column: 2; }
/* Map columns when there is no stop (gate text empty) */
.bb-route-map:not(:has(.bb-route-gate)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Top bar: one segment of the route per panel */
.bb-route-phase::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--route-line); }
.bb-route-phase.is-p1 { --route-c: var(--bb-blue); --route-line: linear-gradient(90deg, #4F82C3, #8F6E9E); }
.bb-route-phase.is-p2 { --route-c: #A36782; --route-line: linear-gradient(90deg, #8F6E9E, #F15A55); }
.bb-route-phase.is-p3 { --route-c: var(--bb-coral); --route-line: linear-gradient(90deg, #F15A55, #FCB830); }

.bb-route-who { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 11px 4px 9px; border-radius: var(--bb-radius-pill); background: rgba(255, 255, 255, .7); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); font-family: var(--bb-font-heading); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-ink); }
.bb-route-who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--route-c); }
.bb-route-phase h3 { margin: 12px 0 24px; font-family: var(--bb-font-heading); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--bb-ink); text-wrap: balance; }

/* Steps: a short vertical timeline inside the panel */
.bb-route-steps { display: grid; align-content: start; gap: 22px; margin: 0; padding: 0; list-style: none; }
/* Connector from each icon down to the next one */
.bb-route-step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: -14px; width: 2px; border-radius: 2px; background: rgba(31, 63, 107, .14); }
.bb-route-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 3px; }
.bb-route-ico { grid-row: span 3; position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bb-step-icon-tile); color: var(--bb-ink); font-size: 20px; }
.bb-route-ico svg, .bb-route-lock svg { width: 22px; height: 22px; }
.bb-route-step.is-key .bb-route-ico { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 5px var(--bb-coral); }
.bb-route-n { font-family: var(--bb-font-heading); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bb-muted); line-height: 1.4; }
.bb-route-step h4 { margin: 0; font-family: var(--bb-font-heading); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--bb-ink); }
.bb-route-step p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--bb-body); }

/* The stop between the proof round and production */
.bb-route-gate { position: relative; grid-row: span 3; display: grid; place-items: center; }
/* Dashed line above and below the lock, with a gap for the label */
.bb-route-gate::before, .bb-route-gate::after { content: ""; position: absolute; left: 50%; border-left: 2px dashed rgba(241, 90, 85, .55); }
.bb-route-gate::before { top: 8px; bottom: calc(50% + 64px); }
.bb-route-gate::after { top: calc(50% + 64px); bottom: 8px; }
.bb-route-gate p { position: relative; display: grid; justify-items: center; gap: 10px; margin: 0; padding: 12px 0; font-family: var(--bb-font-heading); font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--bb-coral); }
/* Same grey tile as every icon; the coral ring marks the stop */
.bb-route-lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bb-step-icon-tile); color: var(--bb-ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 5px var(--bb-coral); }

@media (max-width: 1100px) {
  .bb-route-inner { padding: 0 40px; }
  .bb-route-map { column-gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px minmax(0, 1fr); }
  .bb-route-phase { padding: 28px 22px 24px; }
}

/* Phones and tablets: panels stack; the stop becomes a row between them. */
@media (max-width: 900px) {
  [data-sf-block="order-route-birthdaybanner"] { padding: 56px 0 64px; }
  .bb-route-inner { padding: 0 24px; }
  .bb-route-head { margin-bottom: 32px; }
  .bb-route-map, .bb-route-map:not(:has(.bb-route-gate)) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .bb-route-phase, .bb-route-gate + .bb-route-phase, .bb-route-phase.is-p2:not(.bb-route-gate ~ *) { grid-column: 1; }
  .bb-route-phase, .bb-route-gate { grid-row: auto; }
  .bb-route-phase { grid-template-rows: none; padding: 26px 20px 22px; }
  .bb-route-gate::before, .bb-route-gate::after { display: none; }
  .bb-route-gate p { grid-auto-flow: column; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--bb-radius-pill); background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(241, 90, 85, .14); font-size: 14px; text-align: left; }
  .bb-route-lock { width: 44px; height: 44px; }
}
@media (max-width: 620px) {
  .bb-route-inner { padding: 0 18px; }
}
