/* Abrakadoo Checkout Wizard · Shell-CSS
   Per-Sub-Step Styles leben in steps/{slug}/style.css und werden vom Loader injiziert. */

:root {
  --wiz-dark: #0A394E;
  --wiz-dark-strong: #072D3E;
  --wiz-accent: #5C7A7A;
  --wiz-muted: #7D9DA8;
  --wiz-surface: #FCFCFC;
  --wiz-surface-alt: #F0F4F5;
  --wiz-border: #D3DDE1;
  --wiz-cta: #ea580c;
  --wiz-cta-end: #c2410c;
  --wiz-cta-shadow: 0 4px 8px rgba(234,88,12,0.4);
  --wiz-highlight: #EE9232;
  --wiz-text-secondary: #5A6F78;
  --wiz-radius-sm: 5px;
  --wiz-radius-md: 8px;
  --wiz-radius-lg: 12px;
  --wiz-shadow-1: 0 1px 3px rgba(10,57,78,0.07), 0 1px 2px rgba(10,57,78,0.05);
  --wiz-shadow-2: 0 4px 12px rgba(10,57,78,0.10), 0 2px 4px rgba(10,57,78,0.07);
  --wiz-bar-h: 64px;
  --wiz-header-h: 64px;
  --wiz-anim-fast: 250ms;
  --wiz-anim-burst: 1200ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wiz-dark);
  background: var(--wiz-surface);
}

.wiz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--wiz-header-h);
  padding: 0 16px;
  background: var(--wiz-surface);
  border-bottom: 1px solid var(--wiz-border);
  transition: height 200ms ease-out, box-shadow 200ms ease-out;
}
.wiz-header.is-compact {
  height: 48px;
  box-shadow: 0 2px 14px rgba(10, 57, 78, 0.10);
}

.wiz-logo { flex-shrink: 0; }
.wiz-logo img { display: block; height: 32px; width: auto; transition: height 200ms ease-out; }
.wiz-header.is-compact .wiz-logo img { height: 26px; }
.wiz-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.wiz-sound-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--wiz-border);
  border-radius: 50%;
  background: var(--wiz-surface);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.wiz-sound-toggle:hover { background: var(--wiz-surface-alt); }
.wiz-sound-toggle[aria-pressed="false"] .wiz-sound-icon::after { content: ""; }
.wiz-sound-toggle[aria-pressed="false"] .wiz-sound-icon { opacity: 0.4; }

.wiz-lang-switch {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wiz-border);
  border-radius: var(--wiz-radius-md);
  background: var(--wiz-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--wiz-dark);
  cursor: pointer;
}

/* === Major-numbers row (lives inline inside the header) === */
.wiz-major-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wiz-major-item {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}
.wiz-major-item + .wiz-major-item::before {
  content: '·';
  font-size: 14px;
  color: var(--wiz-border);
  margin: 0 2px;
  user-select: none;
  transition: color 200ms;
}
.wiz-major-item.is-passed::before { color: var(--wiz-highlight); }

/* The clickable major-button. 34x34 default. Hit-area is the button
   rect itself (no padding-trick needed at this size). Click jumps to
   the first sub-step of the major (1 -> 1A, 3 -> 3A, etc.). */
.wiz-major-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wiz-surface-alt);
  border: 2px solid var(--wiz-border);
  color: var(--wiz-text-secondary);
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease-out;
}
/* "You were here" pin on the major-dot when state.deepestReached
   sits in a different (later) major than current. Same gold pulse
   as the substrip-pill pin so the language is consistent. */
.wiz-major-dot.is-deepest::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wiz-highlight, #EE9232), #c47a1a);
  box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(196, 122, 26, 0.55);
  animation: wiz-subpill-deepest-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.wiz-major-dot:hover:not(:disabled) {
  background: #fff;
  border-color: var(--wiz-highlight);
  transform: scale(1.06);
}
.wiz-major-dot:active:not(:disabled) { transform: scale(0.96); }
.wiz-major-dot:focus-visible {
  outline: 2px solid var(--wiz-cta, #ea580c);
  outline-offset: 3px;
}
.wiz-major-item[data-state="active"] .wiz-major-dot {
  background: var(--wiz-cta, #ea580c);
  border-color: var(--wiz-cta, #ea580c);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
  transform: scale(1.04);
}
.wiz-major-item[data-state="done"] .wiz-major-dot {
  background: var(--wiz-dark, #0A394E);
  border-color: var(--wiz-dark, #0A394E);
  color: #fff;
}
.wiz-major-item[data-state="skipped"] .wiz-major-dot,
.wiz-major-dot.is-skipped {
  background: transparent;
  border-color: rgba(10, 57, 78, 0.18);
  color: rgba(10, 57, 78, 0.35);
  cursor: not-allowed;
  opacity: 0.6;
  position: relative;
}
.wiz-major-dot.is-skipped::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1.5px;
  background: rgba(10, 57, 78, 0.35);
  transform: translateY(-50%) rotate(-18deg);
  pointer-events: none;
}
.wiz-major-dot.is-skipped:hover {
  transform: none;
  border-color: rgba(10, 57, 78, 0.18);
}
.wiz-header.is-compact .wiz-major-dot {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-width: 1.5px;
}

/* Old major-label kept as utility class but visually hidden (no longer
   rendered by sub-step-bar.js, but legacy steps may still reference). */
.wiz-major-label { display: none; }

/* === Sub-step strip (separate row above the active panel) === */
.wiz-substrip {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.wiz-substrip-inner {
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  border: 1px solid var(--wiz-border);
  box-shadow: 0 2px 10px rgba(10, 57, 78, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  /* Reserve substrip height before sub-step-bar.js populates the pills.
     Without this, the empty card paints at ~28px (just padding) and
     then jumps to ~58px on desktop / ~125px on mobile when the pills
     mount, pushing <main> down the same amount. PSI Mobile wizard
     CLS was 0.13 driven entirely by this single shift. */
  min-height: 60px;
}
.wiz-substrip[hidden] { display: none; }
.wiz-substrip-meta {
  font-size: 0.8rem;
  color: var(--wiz-text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.wiz-substrip-meta strong {
  /* #c2410c (orange-700) instead of --wiz-cta #ea580c: 5.18:1 on white
     passes WCAG AA 4.5:1, where the brand CTA-orange is 3.47:1 and fails
     at this 15.2px bold size (Phase 2.G.1 W2 fix). */
  color: #c2410c;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}
.wiz-substrip-pills {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.wiz-subpill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 50px;
  background: var(--wiz-surface-alt);
  border: 1.5px solid var(--wiz-border);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wiz-text-secondary);
  transition: all 160ms ease-out;
}
.wiz-subpill:hover:not(.is-active):not(:disabled) {
  background: #fff;
  border-color: var(--wiz-highlight);
  transform: translateY(-1px);
}
.wiz-subpill:focus-visible {
  outline: 2px solid var(--wiz-cta, #ea580c);
  outline-offset: 3px;
}
.wiz-subpill .letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--wiz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--wiz-text-secondary);
  transition: all 160ms ease-out;
  flex-shrink: 0;
}
.wiz-subpill.is-active {
  /* #c2410c (orange-700) instead of --wiz-cta #ea580c: white-on-#c2410c =
     4.83:1 passes WCAG AA 4.5:1 at the 13.6px / 600-weight label size.
     White-on-#ea580c was only 3.47:1 (Phase 2.G.1 W2 fix). */
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.22);
}
.wiz-subpill.is-active .letter {
  background: #fff;
  color: var(--wiz-cta, #ea580c);
  border-color: #fff;
}
.wiz-subpill.is-done {
  background: rgba(10, 57, 78, 0.06);
  border-color: rgba(10, 57, 78, 0.18);
  color: var(--wiz-dark, #0A394E);
}
.wiz-subpill.is-done .letter {
  background: var(--wiz-dark, #0A394E);
  color: #fff;
  border-color: var(--wiz-dark, #0A394E);
}
.wiz-subpill:disabled { cursor: not-allowed; opacity: 0.55; }

/* "You were here" pin: marks the deepest sub-step the user has
   reached when they navigated back to inspect an earlier panel. Tiny
   gold dot in the top-right corner of the pill, with a subtle pulse
   so the eye catches it without being noisy. Hidden when current ==
   deepestReached or current is past deepestReached. */
.wiz-subpill.is-deepest::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wiz-highlight, #EE9232), #c47a1a);
  box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(196, 122, 26, 0.55);
  animation: wiz-subpill-deepest-pulse 1.6s ease-in-out infinite;
}
.wiz-subpill { position: relative; }
@keyframes wiz-subpill-deepest-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(196, 122, 26, 0.55); }
  50%      { transform: scale(1.18); box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(196, 122, 26, 0.85); }
}

/* Floating jump-back banner: appears just below the substrip when
   state.current sits before state.deepestReached. The user can click
   to jump straight back to where they were. Inside .wiz-main
   container width on desktop, fixed-position above the panel CTA on
   narrow viewports so it stays in reach without consuming layout. */
.wiz-jumpback {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 0 24px;
}
.wiz-jumpback[hidden] { display: none; }
.wiz-jumpback__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(238, 146, 50, 0.10), rgba(234, 88, 12, 0.06));
  border: 1.5px solid rgba(234, 88, 12, 0.30);
}
.wiz-jumpback__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wiz-text-secondary);
  flex: 1;
}
.wiz-jumpback__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wiz-cta, #ea580c), #c2410c);
  color: #fff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.30);
  transition: filter 160ms, transform 160ms, box-shadow 160ms;
  white-space: nowrap;
}
.wiz-jumpback__btn:hover,
.wiz-jumpback__btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.42);
}
@media (max-width: 540px) {
  .wiz-jumpback { padding: 0 12px; margin-top: 10px; }
  .wiz-jumpback__inner { padding: 8px 12px; gap: 8px; }
  .wiz-jumpback__label { font-size: 12px; }
  .wiz-jumpback__btn { padding: 7px 12px; font-size: 12.5px; }
}

/* === Step-transition loader (full-screen overlay with stars + headline) === */
.wiz-step-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease-out;
}
.wiz-step-loader.is-on { opacity: 1; pointer-events: auto; }
.wiz-step-loader-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 57, 78, 0.55) 0%, rgba(10, 57, 78, 0.70) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.wiz-step-star {
  position: absolute;
  color: #fbbf24;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(238, 146, 50, 0.7));
  animation: wiz-step-twinkle 1.4s ease-in-out infinite;
  user-select: none;
}
.wiz-step-star.s1 { top: 14%; left: 10%; font-size: 64px; animation-delay: 0s; }
.wiz-step-star.s2 { top: 28%; left: 80%; font-size: 42px; animation-delay: 0.2s; color: var(--wiz-cta, #ea580c); }
.wiz-step-star.s3 { top: 54%; left: 18%; font-size: 54px; animation-delay: 0.4s; }
.wiz-step-star.s4 { top: 70%; left: 68%; font-size: 46px; animation-delay: 0.6s; color: var(--wiz-cta, #ea580c); }
.wiz-step-star.s5 { top: 18%; left: 50%; font-size: 36px; animation-delay: 0.3s; }
.wiz-step-star.s6 { top: 78%; left: 35%; font-size: 50px; animation-delay: 0.7s; color: var(--wiz-cta, #ea580c); }
.wiz-step-star.s7 { top: 42%; left: 6%; font-size: 32px; animation-delay: 0.5s; }
.wiz-step-star.s8 { top: 22%; left: 38%; font-size: 38px; animation-delay: 0.8s; color: var(--wiz-cta, #ea580c); }
@keyframes wiz-step-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  45% { opacity: 1; transform: scale(1.1) rotate(0deg); }
  65% { opacity: 0.85; transform: scale(0.95) rotate(8deg); }
}
.wiz-step-headline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(10, 57, 78, 0.85),
    0 2px 4px rgba(10, 57, 78, 0.55),
    0 0 1px rgba(10, 57, 78, 0.9);
  padding: 0 24px;
  max-width: 90vw;
  line-height: 1.2;
  pointer-events: none;
  z-index: 5;
}
.wiz-step-loader.is-on .wiz-step-headline {
  animation: wiz-step-headline-pop 280ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.wiz-step-headline::before {
  content: '';
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(238, 146, 50, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
@keyframes wiz-step-headline-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 720px) {
  .wiz-header { gap: 8px; padding: 0 10px; }
  .wiz-major-list { gap: 5px; }
  .wiz-major-dot { width: 28px; height: 28px; font-size: 11px; border-width: 1.5px; }
  .wiz-major-item + .wiz-major-item::before { display: none; }
  .wiz-logo img { height: 26px; }
  .wiz-sound-toggle { width: 34px; height: 34px; }
  .wiz-lang-switch { height: 34px; padding: 0 8px; font-size: 13px; }
}
@media (max-width: 540px) {
  .wiz-substrip { padding: 0 12px; margin-top: 14px; }
  /* Mobile pills wrap to two rows on the busier majors (1A-1D = 4 pills),
     so the reserved height needs to match the larger case to keep CLS at
     zero. Slight overshoot on smaller groups (3A-3C) is preferable to a
     97px paint-shift downward when sub-step-bar.js mounts. */
  .wiz-substrip-inner { padding: 10px 14px; gap: 8px; min-height: 110px; }
  .wiz-substrip-meta { font-size: 0.7rem; width: 100%; }
  .wiz-subpill { font-size: 0.78rem; padding: 5px 12px 5px 5px; }
  .wiz-subpill .letter { width: 20px; height: 20px; font-size: 10px; }
}

.wiz-main {
  /* The major-row now lives inline in the header, so wiz-main only
     subtracts the header height. The substrip is part of the content
     scroll, not sticky. */
  min-height: calc(100vh - var(--wiz-header-h));
  padding: 12px 16px 96px;
}

.wiz-container {
  max-width: 960px;
  margin: 0 auto;
}

.wiz-stage {
  position: relative;
  min-height: 320px;
}

.wiz-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--wiz-anim-fast) ease-out, transform var(--wiz-anim-fast) ease-out;
}

.wiz-panel[data-anim="leave"] {
  opacity: 0;
  transform: translateY(8px);
}

.wiz-panel[data-anim="enter"] {
  opacity: 0;
  transform: translateY(-8px);
}

/* X65: stage-loader uses the same magic-wand pattern as upload + edit
   + preview pages so the visual language stays consistent across the
   journey. Background veil is fully opaque white so the previous panel
   doesnt bleed through. */
/* Plan-C Welle 0.7 W1: stage-loader covers the whole viewport with a
   dark brand veil + backdrop-blur so the step transition feels magical
   and the previous panel doesn't bleed through. z-index sits below
   wiz-step-loader (z-index 100) so the step-headline overlay still wins
   when both fire briefly. */
.wiz-stage-loader {
  position: fixed;
  inset: 0;
  /* z-index 95 sits between .wiz-cart mobile sheet (90) and
     .wiz-step-loader headline overlay (100) so the loader never
     gets sandwiched under an open mobile cart but the step-headline
     still wins when both fire at the same instant. */
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(10, 57, 78, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Fallback for browsers without backdrop-filter: bump BG opacity so the
   previous panel still doesn't bleed through. */
@supports not (backdrop-filter: blur(6px)) {
  .wiz-stage-loader { background: rgba(10, 57, 78, 0.99); }
}

/* `display: grid` above otherwise wins over the implicit display:none
   from the [hidden] attribute, leaving the loader permanently on top
   of every panel after the first mount. */
.wiz-stage-loader[hidden] {
  display: none;
}

/* Magic-loader: single spot animation shared with upload/edit/preview.
   Responsive square that scales with the viewport so the wand + sparkles
   read magical on small phones and large desktops alike. CTA orange so
   it reads "personalised gift magic" not "loading bar". */
.wiz-stage-loader .magic-loader {
  position: relative;
  width: min(40vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.wiz-stage-loader .magic-wand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  animation: wiz-wand-wave 2s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(238, 146, 50, 0.55));
}

/* W1 reduced-motion branch: keep the wand visible but skip the wave
   keyframes; keep the sparkles static. Respects the OS-level a11y
   preference without removing the loader entirely. */
@media (prefers-reduced-motion: reduce) {
  .wiz-stage-loader .magic-wand { animation: none; }
  .wiz-stage-loader .sparkle { animation: none; opacity: 0.6; }
}
@keyframes wiz-wand-wave {
  0%, 100% { transform: translate(-50%, -50%) rotate(-15deg); }
  50%      { transform: translate(-50%, -50%) rotate(15deg); }
}
.wiz-stage-loader .sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wiz-cta, #ea580c);
  opacity: 0;
}
.wiz-stage-loader .sparkle:nth-child(2) { top: 15%; left: 20%; animation: wiz-sparkle-pop 1.8s 0s   infinite; }
.wiz-stage-loader .sparkle:nth-child(3) { top: 10%; right: 15%; animation: wiz-sparkle-pop 1.8s 0.4s infinite; background: #EE9232; }
.wiz-stage-loader .sparkle:nth-child(4) { bottom: 20%; left: 15%; animation: wiz-sparkle-pop 1.8s 0.8s infinite; }
.wiz-stage-loader .sparkle:nth-child(5) { bottom: 15%; right: 20%; animation: wiz-sparkle-pop 1.8s 1.2s infinite; background: #EE9232; }
.wiz-stage-loader .sparkle:nth-child(6) { top: 40%; left: 5%;  animation: wiz-sparkle-pop 1.8s 0.6s infinite; width: 6px; height: 6px; }
.wiz-stage-loader .sparkle:nth-child(7) { top: 30%; right: 8%; animation: wiz-sparkle-pop 1.8s 1.0s infinite; width: 6px; height: 6px; background: #EE9232; }
@keyframes wiz-sparkle-pop {
  0%, 100% { opacity: 0;   transform: scale(0); }
  30%      { opacity: 1;   transform: scale(1.4); }
  60%      { opacity: 0.6; transform: scale(0.8); }
}

/* Boot skeleton: renders before any JS so the user never faces a blank
   stage. main.js calls dismissBootLoader() once the first sub-step is
   mounted, which sets [hidden] and removes it from layout. */
.wiz-boot-skeleton {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: var(--wiz-surface);
  animation: wiz-fade-in 220ms ease-out;
}

.wiz-boot-skeleton[hidden] { display: none; }

/* Cancel-from-Stripe banner (sits between the step-bar and the stage,
   slides down from above, fades out after 12s or close-click). Soft
   warm tone, not alarmist. */
.wiz-cancel-banner {
  margin: 12px auto 0;
  max-width: 880px;
  padding: 0 16px;
  animation: wiz-cancel-slide 380ms ease-out;
}
.wiz-cancel-banner[hidden] { display: none; }
.wiz-cancel-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #FFF6E8 0%, #FFEFD3 100%);
  border: 1px solid rgba(238, 146, 50, 0.35);
  border-radius: var(--wiz-radius-md);
  box-shadow: var(--wiz-shadow-1);
  color: var(--wiz-dark);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
}
.wiz-cancel-banner__icon {
  font-size: 20px;
  line-height: 1;
  color: var(--wiz-cta);
  flex: 0 0 auto;
}
.wiz-cancel-banner__text { flex: 1 1 auto; }
.wiz-cancel-banner__close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--wiz-text-secondary);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: var(--wiz-radius-sm);
  flex: 0 0 auto;
}
.wiz-cancel-banner__close:hover { background: rgba(10, 57, 78, 0.08); color: var(--wiz-dark); }
@keyframes wiz-cancel-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wizard back-button: shared visual treatment for every [data-back]
   in any sub-step. Replaces the previous text-link look (transparent
   bg + grey text) that test users reported as "doesn't look like a
   button". Solid teal pill in brand-dark so it reads as a real
   secondary action without competing visually with the orange CTA.
   Specificity (0,1,1) beats per-step .wiz-X__back classes (0,1,0)
   so this rule wins regardless of load order. */
button[data-back] {
  appearance: none;
  background: linear-gradient(135deg, #0E4560 0%, var(--wiz-dark, #0A394E) 100%);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(10, 57, 78, 0.22);
  transition: background 160ms, transform 160ms, box-shadow 160ms;
}
button[data-back]::before {
  content: '\2190'; /* leftward arrow ← */
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  margin-right: 2px;
  transform: translateY(-1px);
}
button[data-back]:hover,
button[data-back]:focus-visible {
  background: linear-gradient(135deg, #124E6C 0%, #0C4862 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 57, 78, 0.32);
  outline: none;
  color: #fff;
}
button[data-back]:focus-visible {
  outline: 2px solid var(--wiz-cta, #ea580c);
  outline-offset: 3px;
}
button[data-back]:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(10, 57, 78, 0.28);
}

.wiz-skeleton-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.wiz-skeleton-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wiz-skeleton, #ECE3DA);
  animation: wiz-pulse 1400ms ease-in-out infinite;
}

.wiz-skeleton-title {
  width: 70%;
  height: 22px;
  border-radius: 8px;
  background: var(--wiz-skeleton, #ECE3DA);
  animation: wiz-pulse 1400ms ease-in-out infinite;
}

.wiz-skeleton-lead {
  width: 90%;
  height: 14px;
  border-radius: 6px;
  background: var(--wiz-skeleton, #ECE3DA);
  opacity: 0.7;
  animation: wiz-pulse 1400ms ease-in-out infinite;
}

.wiz-skeleton-grid {
  /* X64: layout mirrors Step 1A pricing grid (5 packages). auto-fit
     gracefully degrades to fewer columns on narrower viewports without
     a media-query split. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 960px;
}

.wiz-skeleton-card {
  height: 188px;
  border-radius: var(--wiz-radius-md, 14px);
  background: var(--wiz-skeleton, #ECE3DA);
  animation: wiz-pulse 1400ms ease-in-out infinite;
}

.wiz-skeleton-card:nth-child(2) { animation-delay: 120ms; }
.wiz-skeleton-card:nth-child(3) { animation-delay: 240ms; }
.wiz-skeleton-card:nth-child(4) { animation-delay: 360ms; }
.wiz-skeleton-card:nth-child(5) { animation-delay: 480ms; }

@keyframes wiz-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9; }
}

@keyframes wiz-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 720px) {
  .wiz-skeleton-grid { grid-template-columns: 1fr; max-width: 380px; }
  .wiz-skeleton-card { height: 100px; }
}

.wiz-magic-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.wiz-magic-burst {
  position: absolute;
  inset: 0;
  display: none;
}

.wiz-magic-layer[data-state="burst"] .wiz-magic-burst { display: block; }

.wiz-stripe-mount[hidden] { display: none; }

.wiz-noscript {
  padding: 24px;
  text-align: center;
  background: var(--wiz-surface-alt);
  border: 1px solid var(--wiz-border);
  border-radius: var(--wiz-radius-md);
  margin: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .wiz-panel { transition: none; }
  .wiz-magic-burst { display: none !important; }
  .wiz-stage-loader .magic-wand { animation: none; }
  .wiz-stage-loader .sparkle   { animation: none; opacity: 0.6; }
  .wiz-skeleton-badge,
  .wiz-skeleton-title,
  .wiz-skeleton-lead,
  .wiz-skeleton-card { animation: none; opacity: 0.7; }
  .wiz-boot-skeleton { animation: none; }
}

/* flatpickr brand-tinted overrides. Keep specificity low so flatpickr's
   default styles still win for layout, only colors + radii change. */
.flatpickr-calendar.open {
  box-shadow: 0 8px 24px rgba(10, 57, 78, 0.18);
  border-radius: var(--wiz-radius-md, 12px);
  font-family: 'Outfit', system-ui, sans-serif;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.startRange.endRange {
  background: var(--wiz-cta, #ea580c);
  border-color: var(--wiz-cta, #ea580c);
  color: #fff;
}
.flatpickr-day.today {
  border-color: var(--wiz-highlight, #ee9232);
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(238, 146, 50, 0.15);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 700;
  color: var(--wiz-dark, #0A394E);
}
.flatpickr-time input.flatpickr-hour,
.flatpickr-time input.flatpickr-minute {
  color: var(--wiz-dark, #0A394E);
  font-weight: 700;
}

@media (max-width: 640px) {
  .wiz-main { padding: 8px 12px 80px; }
}

/* ============================================
 * Sub-Step 3D · Magic Upsells (Song / Video / Bundle)
 * ============================================ */
.wiz-3d__panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.wiz-3d__head {
  text-align: center;
  margin-bottom: 24px;
}
.wiz-3d__badge {
  display: inline-block;
  background: var(--wiz-surface-alt);
  color: var(--wiz-text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.wiz-3d__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--wiz-dark);
  line-height: 1.2;
}
.wiz-3d__lead {
  margin: 0;
  color: var(--wiz-text-secondary);
  font-size: 16px;
}
.wiz-3d__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wiz-3d__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--wiz-text-secondary);
}

/* Cards · base */
.wiz-3d__card {
  position: relative;
  background: var(--wiz-surface);
  border: 2px solid var(--wiz-border);
  border-radius: var(--wiz-radius-lg);
  padding: 20px 20px 16px;
  cursor: pointer;
  transition: border-color var(--wiz-anim-fast) ease,
              box-shadow var(--wiz-anim-fast) ease,
              transform var(--wiz-anim-fast) ease;
  text-align: left;
  font-family: inherit;
}
.wiz-3d__card:hover {
  border-color: var(--wiz-accent);
  box-shadow: var(--wiz-shadow-2);
}
.wiz-3d__card.is-selected {
  border-color: var(--wiz-cta);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12), var(--wiz-shadow-2);
}

.wiz-3d__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.wiz-3d__card-headline {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--wiz-dark);
  line-height: 1.3;
  flex: 1 1 auto;
}
.wiz-3d__card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--wiz-cta);
  white-space: nowrap;
  flex-shrink: 0;
}
.wiz-3d__card-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.wiz-3d__card-price-old {
  font-size: 14px;
  color: var(--wiz-muted);
  text-decoration: line-through;
}
.wiz-3d__card-sub {
  margin: 0 0 16px;
  color: var(--wiz-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.wiz-3d__card-note {
  margin: 12px 0 0;
  color: var(--wiz-muted);
  font-size: 13px;
  font-style: italic;
}
.wiz-3d__toggle-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.wiz-3d__toggle {
  background: var(--wiz-dark);
  color: #fff;
  border: none;
  border-radius: var(--wiz-radius-md);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--wiz-anim-fast) ease;
  font-family: inherit;
}
.wiz-3d__toggle:hover {
  background: #0C4862;
}
.wiz-3d__toggle[aria-pressed="true"] {
  background: var(--wiz-cta);
}
.wiz-3d__toggle[aria-pressed="true"]:hover {
  background: var(--wiz-cta-end);
}
.wiz-3d__toggle--bundle {
  padding: 12px 28px;
  font-size: 15px;
}

/* Song-Card · Audio Player */
.wiz-3d__audio {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--wiz-surface-alt);
  border-radius: var(--wiz-radius-md);
  padding: 14px 16px;
  margin: 8px 0 4px;
}
.wiz-3d__audio-play {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--wiz-cta), var(--wiz-cta-end));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wiz-cta-shadow);
  transition: transform var(--wiz-anim-fast) ease;
}
.wiz-3d__audio-play:hover {
  transform: scale(1.05);
}
.wiz-3d__audio-play:active {
  transform: scale(0.96);
}
.wiz-3d__audio-play-icon {
  font-size: 16px;
  line-height: 1;
  margin-left: 1px;
}
.wiz-3d__audio-play.is-playing .wiz-3d__audio-play-icon {
  margin-left: 0;
  font-size: 14px;
  letter-spacing: -2px;
}
.wiz-3d__audio-info {
  flex: 1 1 auto;
  min-width: 0;
}
.wiz-3d__audio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wiz-dark);
  margin-bottom: 6px;
}
.wiz-3d__audio-progress {
  width: 100%;
  height: 6px;
  background: rgba(125, 157, 168, 0.25);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
.wiz-3d__audio-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--wiz-cta), var(--wiz-highlight));
  border-radius: 999px;
  transition: width 100ms linear;
}
.wiz-3d__audio-time {
  font-size: 12px;
  color: var(--wiz-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Video-Card · Thumbnail with play overlay */
.wiz-3d__video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--wiz-radius-md);
  background: #000;
  cursor: pointer;
  overflow: hidden;
  margin: 8px 0 4px;
  aspect-ratio: 16 / 9;
}
.wiz-3d__video-thumb-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.wiz-3d__video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--wiz-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--wiz-anim-fast) ease,
              background var(--wiz-anim-fast) ease;
}
.wiz-3d__video-thumb:hover .wiz-3d__video-thumb-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

/* Bundle-Card · Distinct visual */
.wiz-3d__card--bundle {
  background: linear-gradient(168deg, #FFF6E8 0%, #FFFFFF 100%);
  border-color: var(--wiz-highlight);
}
.wiz-3d__card--bundle:hover {
  border-color: var(--wiz-cta);
}
.wiz-3d__card--bundle.is-selected {
  background: linear-gradient(168deg, #FFE9CC 0%, #FFF6E8 100%);
}
.wiz-3d__bundle-badge {
  display: inline-block;
  background: var(--wiz-highlight);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* Bundle-Hint (sticky inline notice when single picked) */
.wiz-3d__bundle-hint {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(to right, rgba(238, 146, 50, 0.08), rgba(234, 88, 12, 0.05));
  border: 1px dashed var(--wiz-highlight);
  border-radius: var(--wiz-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wiz-3d__bundle-hint[hidden] { display: none; }

.wiz-3d__bundle-toast {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(10, 57, 78, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 240ms ease;
}
.wiz-3d__bundle-toast[hidden] { display: none; }
.wiz-3d__bundle-toast.is-on { opacity: 1; }
.wiz-3d__bundle-toast-card {
  position: relative;
  background: linear-gradient(155deg, #fff 0%, #fffaf2 60%, #fff3e0 100%);
  border: 1px solid rgba(238, 146, 50, 0.35);
  border-radius: var(--wiz-radius-lg, 12px);
  padding: 28px 36px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(10, 57, 78, 0.25), 0 6px 16px rgba(234, 88, 12, 0.18);
  transform: translateY(8px) scale(0.96);
  transition: transform 280ms cubic-bezier(0.18, 0.9, 0.3, 1.2);
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: auto;
}
.wiz-3d__bundle-toast.is-on .wiz-3d__bundle-toast-card {
  transform: translateY(0) scale(1);
}
.wiz-3d__bundle-toast-spark {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(238, 146, 50, 0.4));
}
.wiz-3d__bundle-toast-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--wiz-dark, #0A394E);
  letter-spacing: -0.01em;
}
.wiz-3d__bundle-toast-savings {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--wiz-highlight, #ea580c);
}
.wiz-3d__bundle-toast-hint {
  margin: 0;
  font-size: 14px;
  color: rgba(10, 57, 78, 0.7);
  line-height: 1.45;
}
.wiz-3d__bundle-hint-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 200px;
}
.wiz-3d__bundle-hint-text strong {
  color: var(--wiz-dark);
  font-size: 15px;
}
.wiz-3d__bundle-hint-text span {
  color: var(--wiz-text-secondary);
  font-size: 13px;
}
.wiz-3d__bundle-hint-btn {
  background: var(--wiz-highlight);
  color: #fff;
  border: none;
  border-radius: var(--wiz-radius-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--wiz-anim-fast) ease;
  white-space: nowrap;
}
.wiz-3d__bundle-hint-btn:hover {
  background: var(--wiz-cta);
}

/* Continue / Back row */
.wiz-3d__continue-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wiz-3d__back {
  background: transparent;
  border: 1px solid var(--wiz-border);
  color: var(--wiz-text-secondary);
  padding: 10px 16px;
  border-radius: var(--wiz-radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--wiz-anim-fast) ease,
              border-color var(--wiz-anim-fast) ease;
}
.wiz-3d__back:hover {
  background: var(--wiz-surface-alt);
  border-color: var(--wiz-accent);
}
.wiz-3d__continue {
  background: linear-gradient(to bottom right, var(--wiz-cta), var(--wiz-cta-end));
  color: #fff;
  border: none;
  border-radius: var(--wiz-radius-md);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--wiz-cta-shadow);
  transition: transform var(--wiz-anim-fast) ease;
}
.wiz-3d__continue:hover {
  transform: translateY(-1px);
}
.wiz-3d__continue:active {
  transform: translateY(0);
}

/* Video Modal */
.wiz-3d__video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-3d__video-modal[hidden] { display: none; }
.wiz-3d__video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 45, 62, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.wiz-3d__video-modal-frame {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--wiz-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.wiz-3d__video-modal-video {
  width: 100%;
  height: 100%;
  display: block;
}
.wiz-3d__video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--wiz-anim-fast) ease;
}
.wiz-3d__video-modal-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .wiz-3d__panel { padding: 16px 12px 32px; }
  .wiz-3d__title { font-size: 22px; }
  .wiz-3d__card { padding: 16px; }
  .wiz-3d__card-headline { font-size: 17px; }
  .wiz-3d__card-price { font-size: 16px; }
  .wiz-3d__continue-row { flex-direction: row; gap: 8px; }
  .wiz-3d__continue { padding: 12px 16px; font-size: 14px; flex: 1 1 auto; }
  .wiz-3d__back { padding: 12px 14px; flex-shrink: 0; }
}

/* ============================================
 * Sticky Cart
 * Desktop (>= 1280px): fixed right rail, always expanded.
 * Mobile (< 1280px): bottom-sheet, collapsed handle, expand on tap.
 * ============================================ */

/* Reset default <button> styling on the toggle handle. */
.wiz-cart__handle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  width: 100%;
}

/* Backdrop for mobile sheet. */
.wiz-cart__backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(7, 45, 62, 0.5);
  backdrop-filter: blur(2px);
}
.wiz-cart__backdrop[hidden] { display: none; }

/* Mobile-first base: bottom-sheet pattern. */
.wiz-cart {
  position: fixed;
  z-index: 90;
  background: var(--wiz-surface);
  border-top: 1px solid var(--wiz-border);
  box-shadow: 0 -8px 24px rgba(10, 57, 78, 0.10), 0 -2px 6px rgba(10, 57, 78, 0.07);
  font-family: inherit;
  /* Mobile: pinned to bottom, slides up. */
  left: 0;
  right: 0;
  bottom: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  /* Cap height to viewport so long carts can scroll. */
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.wiz-cart[hidden] { display: none; }

/* Mobile handle bar. */
.wiz-cart__handle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--wiz-border);
}
.wiz-cart__handle-grip {
  width: 32px;
  height: 4px;
  background: var(--wiz-border);
  border-radius: 999px;
  flex-shrink: 0;
  margin-right: 4px;
}
.wiz-cart__handle-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.wiz-cart__handle-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--wiz-dark);
}
.wiz-cart__handle-label {
  font-size: 12px;
  color: var(--wiz-text-secondary);
}
.wiz-cart__handle-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--wiz-cta);
  flex-shrink: 0;
}
.wiz-cart__handle-chevron {
  font-size: 12px;
  color: var(--wiz-text-secondary);
  transition: transform var(--wiz-anim-fast) ease;
  flex-shrink: 0;
}
.wiz-cart.is-open .wiz-cart__handle-chevron {
  transform: rotate(180deg);
}

/* Mobile body: collapsed by default, slides into view when is-open. */
.wiz-cart__body {
  overflow-y: auto;
  flex: 1 1 auto;
  display: none;
  padding: 0 16px 16px;
}
.wiz-cart.is-open .wiz-cart__body {
  display: flex;
  flex-direction: column;
}

.wiz-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--wiz-border);
}
.wiz-cart__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--wiz-dark);
}
.wiz-cart__close {
  background: var(--wiz-surface-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--wiz-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-cart__close:hover {
  background: var(--wiz-border);
  color: var(--wiz-dark);
}

.wiz-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.wiz-cart__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--wiz-border);
  font-size: 14px;
}
.wiz-cart__row:last-child {
  border-bottom: none;
}

.wiz-cart__row--package {
  padding: 12px 0;
}
.wiz-cart__row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.wiz-cart__row-main:hover .wiz-cart__row-name {
  color: var(--wiz-cta);
}

.wiz-cart__row-label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--wiz-dark);
}
.wiz-cart__row-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--wiz-dark);
  transition: color var(--wiz-anim-fast) ease;
}
.wiz-cart__row-sub {
  font-size: 11px;
  color: var(--wiz-muted);
  font-style: italic;
}

.wiz-cart__row-price {
  font-weight: 600;
  color: var(--wiz-cta);
  white-space: nowrap;
  flex-shrink: 0;
}
.wiz-cart__row-price-old {
  font-weight: 400;
  font-size: 0.9em;
  color: var(--wiz-muted);
  text-decoration: line-through;
}

.wiz-cart__row-remove {
  background: var(--wiz-surface-alt);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--wiz-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--wiz-anim-fast) ease, color var(--wiz-anim-fast) ease;
}
.wiz-cart__row-remove:hover {
  background: #FDF0F0;
  color: #B83B3B;
}

/* Confirm-strip when X clicked. */
.wiz-cart__row.is-confirming {
  padding: 12px;
  background: rgba(238, 146, 50, 0.08);
  border: 1px solid var(--wiz-highlight);
  border-radius: var(--wiz-radius-md);
  margin: 4px 0;
  display: block;
}
.wiz-cart__confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wiz-cart__confirm-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wiz-cart__confirm-text strong {
  color: var(--wiz-dark);
  font-size: 14px;
}
.wiz-cart__confirm-warn {
  color: #B83B3B;
  font-size: 12px;
  line-height: 1.4;
}
.wiz-cart__confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.wiz-cart__confirm-no,
.wiz-cart__confirm-yes {
  padding: 6px 14px;
  border-radius: var(--wiz-radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.wiz-cart__confirm-no {
  background: var(--wiz-surface-alt);
  color: var(--wiz-dark);
}
.wiz-cart__confirm-no:hover {
  background: var(--wiz-border);
}
.wiz-cart__confirm-yes {
  background: #B83B3B;
  color: #fff;
}
.wiz-cart__confirm-yes:hover {
  background: #9A2929;
}

.wiz-cart__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0 6px;
  border-top: 2px solid var(--wiz-dark);
  margin-top: 6px;
}
.wiz-cart__total-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--wiz-dark);
}
.wiz-cart__total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--wiz-dark);
}
.wiz-cart__total-note {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--wiz-text-secondary);
  text-align: right;
  font-style: italic;
}

/* Desktop: fixed right rail, always expanded, no handle. */
@media (min-width: 1280px) {
  .wiz-cart {
    top: 96px;
    bottom: auto;
    left: auto;
    right: 24px;
    width: 320px;
    max-height: calc(100vh - 120px);
    border-radius: var(--wiz-radius-lg);
    border: 1px solid var(--wiz-border);
    box-shadow: var(--wiz-shadow-2);
  }
  .wiz-cart__handle {
    display: none;
  }
  .wiz-cart__body {
    display: flex !important;
    flex-direction: column;
    padding: 0 20px 20px;
  }
  .wiz-cart__close {
    display: none;
  }
  /* Don't shift the wizard content. Content stays centered (its max-width
   * already reserves some right gutter). On 1280-1500px viewports the cart
   * may visually clip the right gutter; on >=1500 the wiz-container shifts
   * left to avoid overlap (see media block below). */
  .wiz-cart__backdrop {
    display: none !important;
  }
}
/* wiz-container stays `margin: 0 auto` (centered) at every viewport.
 * The desktop cart floats over the right gutter; on viewports < 1650px
 * it may visually clip into the gutter but never blocks the actual panel
 * (panel max-width is smaller than wiz-container width, so the overlap
 * lands in the empty gutter). On mobile the cart switches to a
 * bottom-sheet, no shift. */

/* ============================================
 * Upgrade Modal
 * ============================================ */
.wiz-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wiz-upgrade-modal[hidden] { display: none; }
.wiz-upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 45, 62, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.wiz-upgrade-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--wiz-surface);
  border-radius: var(--wiz-radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 28px 24px;
}
.wiz-upgrade-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wiz-surface-alt);
  color: var(--wiz-text-secondary);
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}
.wiz-upgrade-modal__close:hover {
  background: var(--wiz-border);
  color: var(--wiz-dark);
}
.wiz-upgrade-modal__head {
  text-align: center;
  margin-bottom: 24px;
}
.wiz-upgrade-modal__eyebrow {
  display: inline-block;
  background: var(--wiz-cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.wiz-upgrade-modal__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--wiz-dark);
  line-height: 1.2;
}
.wiz-upgrade-modal__lead {
  margin: 0;
  color: var(--wiz-text-secondary);
  font-size: 14px;
}
.wiz-upgrade-modal__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 2-up on small tablets (>=640) and 3-up on desktop (>=900) so a current
 * pkg + 1-2 upgrade options sit comfortably side by side. */
@media (min-width: 640px) and (max-width: 899px) {
  .wiz-upgrade-modal__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .wiz-upgrade-modal__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wiz-upgrade-modal__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--wiz-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.wiz-upgrade-modal__switch-btn {
  background: transparent;
  border: 1px solid var(--wiz-border);
  color: var(--wiz-text-secondary);
  padding: 8px 16px;
  border-radius: var(--wiz-radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--wiz-anim-fast) ease, border-color var(--wiz-anim-fast) ease, color var(--wiz-anim-fast) ease;
}
.wiz-upgrade-modal__switch-btn:hover {
  background: var(--wiz-surface-alt);
  border-color: var(--wiz-accent);
  color: var(--wiz-dark);
}
.wiz-upgrade-modal__footer-hint {
  font-size: 12px;
  color: var(--wiz-muted);
}
.wiz-upgrade-modal__no-upgrade-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--wiz-text-secondary);
  padding: 24px 16px;
  font-style: italic;
}

/* Card-internal feature lists. Two distinct stacks: full feature list
 * (always rendered, neutral tone) + "what's new" highlight (orange dots,
 * only on upgrade cards). */
.wiz-upgrade-card__newhead {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wiz-cta);
  margin-top: 8px;
}
.wiz-upgrade-card__newlist {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wiz-upgrade-card__newlist li {
  position: relative;
  padding-left: 18px;
  color: var(--wiz-dark);
  font-weight: 500;
  line-height: 1.4;
}
.wiz-upgrade-card__newlist li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wiz-cta);
  font-size: 12px;
}

.wiz-upgrade-card {
  border: 2px solid var(--wiz-border);
  border-radius: var(--wiz-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--wiz-surface);
}
.wiz-upgrade-card.is-current {
  background: var(--wiz-surface-alt);
  border-style: dashed;
  opacity: 0.85;
}
.wiz-upgrade-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wiz-upgrade-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--wiz-text-secondary);
  color: #fff;
}
.wiz-upgrade-card__tag--upgrade {
  background: var(--wiz-cta);
}
.wiz-upgrade-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--wiz-dark);
}
.wiz-upgrade-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wiz-upgrade-card__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--wiz-dark);
}
.wiz-upgrade-card__price-diff {
  font-size: 13px;
  color: var(--wiz-cta);
  font-weight: 700;
}
.wiz-upgrade-card__breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.wiz-upgrade-card__breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--wiz-border);
  color: var(--wiz-text-secondary);
}
.wiz-upgrade-card__breakdown li:last-child {
  border-bottom: none;
}
.wiz-upgrade-card__breakdown li span:last-child {
  color: var(--wiz-dark);
  font-weight: 600;
}
.wiz-upgrade-card__features-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wiz-text-secondary);
  margin-top: 4px;
}
.wiz-upgrade-card__features {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wiz-upgrade-card__features li {
  position: relative;
  padding-left: 20px;
  color: var(--wiz-dark);
  line-height: 1.4;
}
.wiz-upgrade-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wiz-highlight);
  font-weight: 700;
}
.wiz-upgrade-card__cta {
  margin-top: auto;
  background: linear-gradient(to bottom right, var(--wiz-cta), var(--wiz-cta-end));
  color: #fff;
  border: none;
  border-radius: var(--wiz-radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--wiz-cta-shadow);
}
.wiz-upgrade-card__cta:hover {
  transform: translateY(-1px);
}
.wiz-upgrade-card__cta:active {
  transform: translateY(0);
}

/* --- Variant B: Value-First upgrade card --- */
.wiz-upgrade-card__hero {
  background: linear-gradient(135deg, rgba(234,88,12,0.10), rgba(238,146,50,0.18));
  border: 1.5px solid rgba(234,88,12,0.35);
  border-radius: var(--wiz-radius-md);
  padding: 14px 16px;
  text-align: center;
}
.wiz-upgrade-card__hero-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--wiz-cta);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.wiz-upgrade-card__hero-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wiz-dark);
  margin-top: 2px;
}
.wiz-upgrade-card__hero-helper {
  font-size: 12px;
  color: var(--wiz-text-secondary);
  margin-top: 4px;
}

.wiz-upgrade-card__media {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px dashed var(--wiz-border);
}
.wiz-upgrade-card__media:first-of-type { border-top: none; padding-top: 4px; }
.wiz-upgrade-card__media-icon {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 24px;
  margin-top: 2px;
}
.wiz-upgrade-card__media-body { flex: 1 1 auto; min-width: 0; }
.wiz-upgrade-card__media-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--wiz-dark);
  margin-bottom: 6px;
}
.wiz-upgrade-card__media-thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--wiz-surface-alt);
}
.wiz-upgrade-card__media-audio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiz-upgrade-card__media-play {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--wiz-cta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}
.wiz-upgrade-card__media-play:hover { transform: scale(1.06); }
.wiz-upgrade-card__media-hint {
  font-size: 11px;
  color: var(--wiz-text-secondary);
}

.wiz-upgrade-card__price-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--wiz-border);
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 8px;
}
.wiz-upgrade-card__price-footer-label {
  font-size: 12px;
  color: var(--wiz-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wiz-upgrade-card__price-footer-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--wiz-dark);
  justify-self: end;
}
.wiz-upgrade-card__price-footer-helper {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--wiz-text-secondary);
  margin-top: 2px;
}

/* ============================================
 * Promo Opt-In Modal (T9 · Step 2C)
 * ============================================ */
.wiz-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wiz-promo-modal[hidden] { display: none; }
.wiz-promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 45, 62, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: wiz-promo-fade 320ms ease-out both;
}
.wiz-promo-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--wiz-surface);
  border-radius: var(--wiz-radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: wiz-promo-rise 360ms cubic-bezier(0.18, 1.0, 0.22, 1.0) both;
  overflow: hidden;
}
.wiz-promo-modal__sparkle {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: var(--wiz-cta);
  opacity: 0;
  pointer-events: none;
  animation: wiz-promo-spark 1.4s ease-out 220ms both;
}
.wiz-promo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wiz-surface-alt);
  color: var(--wiz-text-secondary);
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}
.wiz-promo-modal__close:hover {
  background: var(--wiz-border);
  color: var(--wiz-dark);
}
.wiz-promo-modal__head { margin: 28px 0 18px; }
.wiz-promo-modal__eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.wiz-promo-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--wiz-dark);
  line-height: 1.25;
}
.wiz-promo-modal__lead {
  margin: 0;
  color: var(--wiz-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.wiz-promo-modal__form {
  margin: 18px 0 22px;
  text-align: left;
}
.wiz-promo-modal__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wiz-text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wiz-promo-modal__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--wiz-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--wiz-dark);
  background: var(--wiz-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.wiz-promo-modal__input:focus {
  outline: none;
  border-color: var(--wiz-cta);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}
.wiz-promo-modal__hint {
  margin: 12px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wiz-text-secondary);
  text-align: left;
  opacity: 0.85;
}
.wiz-promo-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wiz-promo-modal__primary {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.wiz-promo-modal__primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.45);
}
.wiz-promo-modal__primary:active { transform: translateY(0); }
.wiz-promo-modal__secondary {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--wiz-text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wiz-promo-modal__secondary:hover { color: var(--wiz-dark); }

.wiz-promo-modal--shake .wiz-promo-modal__panel {
  animation: wiz-promo-shake 360ms ease-in-out both;
}

@keyframes wiz-promo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wiz-promo-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wiz-promo-spark {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.4) rotate(-20deg); }
  40%  { opacity: 1; transform: translateX(-50%) scale(1.25) rotate(8deg); }
  70%  { opacity: 0.85; transform: translateX(-50%) scale(1.0) rotate(0deg); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.6) rotate(0deg); }
}
@keyframes wiz-promo-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-promo-modal__backdrop,
  .wiz-promo-modal__panel,
  .wiz-promo-modal__sparkle,
  .wiz-promo-modal--shake .wiz-promo-modal__panel { animation: none; }
}

/* ── Legal-Modal (iframe overlay for AGB / Datenschutz / Impressum / Partner) ──
   Opens the standalone page in an iframe so checkout state is preserved.
   Pattern mirrors wiz-3d__video-modal: backdrop + framed content + close
   button + ESC handler in initLegalModal IIFE in index.html. */
.wiz-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-legal-modal[hidden] { display: none; }
.wiz-legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 57, 78, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.wiz-legal-modal-frame {
  position: relative;
  z-index: 1;
  width: min(94vw, 920px);
  height: min(90vh, 860px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10, 57, 78, 0.45);
  display: flex;
}
.wiz-legal-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.wiz-legal-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #0A394E;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 57, 78, 0.35);
  transition: background 150ms ease, transform 150ms ease;
}
.wiz-legal-modal-close:hover { background: #f7f7f7; transform: scale(1.05); }
.wiz-legal-modal-close:focus-visible { outline: 3px solid #EE9232; outline-offset: 3px; }

@media (max-width: 640px) {
  .wiz-legal-modal-frame { width: 100vw; height: 100vh; border-radius: 0; }
  .wiz-legal-modal-close { top: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-legal-modal-close { transition: none; }
  .wiz-legal-modal-close:hover { transform: none; }
}

/* Wiz-Footer (Phase 2.G.1 W4 fix: target-size >= 44x44 px per WCAG 2.5.5).
   The previous inline-style version used margin:0 10px which produced
   ~24px tap-targets and failed Lighthouse target-size. Padding +
   min-height make the hit-area accessible without changing the visual
   line-height. */
.wiz-footer {
  text-align: center;
  padding: 20px 16px 28px;
  font-size: 0.85rem;
  color: #7a5a62;
  border-top: 1px solid #f0e0d0;
  margin-top: 32px;
}
.wiz-footer-link {
  color: inherit;
  display: inline-block;
  padding: 12px 8px;
  margin: 0 2px;
  min-height: 44px;
  min-width: 44px;
  line-height: 1.2;
  text-decoration: none;
}
.wiz-footer-link:hover,
.wiz-footer-link:focus-visible {
  text-decoration: underline;
}
