/* So Many Details — guided booking intake (glass panels, Phase 1 cart) */
/* Tokens match CLAUDE_DESIGN_HANDOFF/design_system/smd_design_tokens.md — no third palette */

:root {
  --charcoal-900: #1b1311;
  --charcoal-800: #151010;
  --charcoal-700: #1a1411;
  --text-primary: #f4f6f8;
  --text-body: #e8eaed;
  --text-muted: #b8c4d4;
  --text-muted-alt: #c4cad4;
  --text-label: #a8b4c4;
  --accent-selection: #22c55e;
  --accent-selection-hover: #4ade80;
  --accent-selection-bg: rgba(34, 197, 94, 0.08);
  --accent-commercial: #a855f7;
  --accent-commercial-hover: #c084fc;
  --accent-commercial-bg: rgba(168, 85, 247, 0.1);
  --accent-same-day: #ef4444;
  --accent-same-day-hover: #f87171;
  --accent-same-day-bg: rgba(239, 68, 68, 0.1);
  --accent-progress-start: #22c55e;
  --accent-progress-end: #31d27c;
  --accent-option-hover: rgba(120, 200, 255, 0.45);
  --accent-option-selected: rgba(120, 200, 255, 0.55);
  --accent-live: #31d27c;
  --accent-error: #ffb4b4;
  --glass-panel-bg: rgba(18, 22, 32, 0.45);
  --glass-panel-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(14px);
  --option-bg: rgba(255, 255, 255, 0.06);
  --option-border: rgba(255, 255, 255, 0.14);
  --summary-block-bg: rgba(0, 0, 0, 0.2);
  --progress-track: rgba(255, 255, 255, 0.12);
  --radius-pill: 96px;
  --radius-panel: 16px;
  --radius-card: 12px;
  --font-sans: 'Manrope', sans-serif;
  --touch-target-min: 44px;
  --transition-fast: 0.15s ease;
  --transition-progress: 0.35s ease;
}

.smd-bi-root {
  /* Desktop: a bit wider than the old 900px so the service grid breathes;
     mobile keeps side padding via the 1rem horizontal inset below.
     Natural page scroll — root grows with content (no fixed viewport shell). */
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 1.25rem;
  color: var(--text-body);
  font-family: var(--font-sans);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: auto;
  overflow: visible;
}

@media (min-width: 992px) {
  .smd-bi-root {
    max-width: 1100px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .smd-bi-root {
    max-width: 1180px;
  }
}

.smd-bi-root .display-3,
.smd-bi-root .smd-bi-hero-title {
  color: var(--text-primary) !important;
}

.smd-bi-root .smd-bi-hero-sub {
  color: var(--text-muted) !important;
  opacity: 1;
}

.smd-bi-hero-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.smd-bi-hero-sub {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* ---- Progress ---- */
.smd-bi-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-body);
}

.smd-bi-progress-label {
  color: var(--text-muted);
}

.smd-bi-progress-track-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 10px;
  display: flex;
  align-items: center;
}

.smd-bi-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--progress-track);
  overflow: hidden;
  position: relative;
}

.smd-bi-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-progress-start), var(--accent-progress-end));
  transition: width var(--transition-progress);
}

.smd-bi-progress-knob {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.65);
  transform: translateY(-50%);
  transition: left var(--transition-progress);
  pointer-events: none;
}

.smd-bi-progress-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.smd-bi-progress-tick {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
  border-radius: 1px;
}

/* ---- Glass panel ---- */
.smd-bi-glass {
  background: var(--glass-panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-panel-border);
  border-radius: var(--radius-panel);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}

@media (min-width: 768px) {
  .smd-bi-glass {
    padding: 2rem;
  }
}

.smd-bi-glass.smd-bi-cart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 0 1 auto;
  overflow: visible;
}

.smd-bi-step-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary) !important;
}

.smd-bi-edit-hint {
  margin: 0 0 0.65rem;
  color: var(--accent-selection-hover);
  font-size: 0.85rem;
  font-weight: 600;
}

.smd-bi-step-help {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted-alt) !important;
  opacity: 1;
}

.smd-bi-cart .smd-bi-step-help {
  margin-bottom: 0;
}

/* Mid-step option cards: column count from JS (simple math)
   1→1 | 2→2 | 3→3 | 4→2 (2×2) | 5+→3 (e.g. 3+2).
   Cards hug content — never stretch into tall empty towers. */
.smd-bi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
  width: 100%;
  grid-auto-rows: auto;
}

.smd-bi-grid:not(.smd-bi-grid--services) > .smd-bi-option,
.smd-bi-grid:not(.smd-bi-grid--services) > label.smd-bi-option {
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 1rem 1.15rem;
  min-height: 4.75rem;
  height: auto;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
}

@media (min-width: 560px) {
  .smd-bi-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }

  /* Tablet: 3-packs stay 2+1 until desktop width */
  .smd-bi-grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
  }
}

@media (min-width: 768px) {
  .smd-bi-grid {
    gap: 1rem 1.15rem;
  }

  .smd-bi-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
  }

  /* Desktop: true 3-across — compact professional cards */
  .smd-bi-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }

  .smd-bi-grid--cols-3 .smd-bi-option-title-line {
    white-space: normal;
  }

  .smd-bi-grid:not(.smd-bi-grid--services) > .smd-bi-option,
  .smd-bi-grid:not(.smd-bi-grid--services) > label.smd-bi-option {
    padding: 1.1rem 1.2rem;
    min-height: 5.25rem;
  }
}

/* Service picker: even 3×2 on desktop — content-sized, full width of glass */
.smd-bi-grid--services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  grid-auto-rows: auto;
}

@media (min-width: 768px) {
  .smd-bi-grid--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }

  .smd-bi-grid--services .smd-bi-option--hero {
    grid-column: auto;
  }
}

@media (min-width: 560px) and (max-width: 767px) {
  .smd-bi-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.smd-bi-grid--services .smd-bi-option {
  min-height: 5.25rem;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  height: auto;
  padding: 1rem 1.1rem;
  gap: 0.3rem;
}

@media (min-width: 768px) {
  .smd-bi-grid--services .smd-bi-option {
    min-height: 6.25rem;
    padding: 1.15rem 1.2rem;
  }

  .smd-bi-grid--services .smd-bi-option strong {
    font-size: 1.05rem;
  }

  .smd-bi-grid--services .smd-bi-option .meta {
    font-size: 0.88rem;
    margin-top: 0.15rem;
    line-height: 1.4;
  }
}

/* Featured TV Mounting — green accent bar + recommended tag */
.smd-bi-option--tv-mounting {
  position: relative;
  border: 1px solid var(--accent-selection) !important;
  background: var(--accent-selection-bg) !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 0 16px rgba(34, 197, 94, 0.18);
  overflow: hidden;
  padding-top: 1.15rem;
}

.smd-bi-option--tv-mounting::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-selection);
}

.smd-bi-option--tv-mounting:hover {
  border-color: var(--accent-selection-hover) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  transform: translateY(-2px);
}

/* Commercial picker — purple outline + glow (distinct from TV green) */
.smd-bi-option--commercial {
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.6) !important;
  background: var(--accent-commercial-bg) !important;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2), 0 0 18px rgba(168, 85, 247, 0.32);
  overflow: hidden;
}

.smd-bi-option--commercial:hover {
  border-color: var(--accent-commercial-hover) !important;
  background: rgba(168, 85, 247, 0.14) !important;
  transform: translateY(-2px);
}

.smd-bi-option-tag--business {
  color: var(--accent-commercial-hover);
}

.smd-bi-option-tag--business .smd-bi-live-dot {
  background: var(--accent-commercial);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55);
  animation: smd-bi-pulse-commercial 1.6s ease-out infinite;
}

@keyframes smd-bi-pulse-commercial {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Same-day / urgency mid-flow — red glow (distinct from TV green) */
.smd-bi-option--same-day,
.smd-bi-option--glow {
  border-color: rgba(239, 68, 68, 0.6) !important;
  background: var(--accent-same-day-bg) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22), 0 0 20px rgba(239, 68, 68, 0.38);
}

.smd-bi-option--same-day.smd-bi-option--selected,
.smd-bi-option--glow.smd-bi-option--selected {
  border-color: var(--accent-option-selected) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 0 22px rgba(239, 68, 68, 0.45);
}

.smd-bi-option-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-selection-hover);
  margin-bottom: 0.35rem;
}

.smd-bi-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 0 0 rgba(49, 210, 124, 0.55);
  animation: smd-bi-pulse 1.6s ease-out infinite;
}

@keyframes smd-bi-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 210, 124, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(49, 210, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 210, 124, 0); }
}

.smd-bi-option {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  min-height: var(--touch-target-min);
  border-radius: var(--radius-card);
  border: 1px solid var(--option-border);
  background: var(--option-bg);
  color: var(--text-body) !important;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.smd-bi-option:hover {
  border-color: var(--accent-option-hover);
  background: rgba(255, 255, 255, 0.08);
}

.smd-bi-option--selected {
  border-color: var(--accent-option-selected);
  background: rgba(120, 200, 255, 0.12);
}

.smd-bi-option--disabled,
.smd-bi-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.smd-bi-option--disabled:hover,
.smd-bi-option:disabled:hover {
  border-color: var(--option-border);
  background: var(--option-bg);
}

.smd-bi-option--selected::after {
  content: '';
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-option-selected);
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.2 3.4 8.4l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.smd-bi-option:active {
  transform: scale(0.99);
}

.smd-bi-option:focus-visible,
.smd-bi-btn-back:focus-visible,
.smd-bi-input:focus-visible,
.smd-bi-textarea:focus-visible,
.smd-bi-cart-edit:focus-visible,
.smd-bi-pay-pill:focus-visible,
.smd-bi-btn-book:focus-visible,
.smd-bi-sticky-cta:focus-visible {
  outline: 2px solid var(--accent-option-selected);
  outline-offset: 2px;
}

/* Option titles: max 2 lines, balanced wrap — no orphan single-word rows */
.smd-bi-option strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  min-height: calc(1.35em * 1);
  color: var(--text-primary) !important;
  padding-right: 1.4rem;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

.smd-bi-option strong.smd-bi-option-title--lines {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.smd-bi-option-title-line {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .smd-bi-option-title-line {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* Tablet only: when a 3-pack is still 2-col, center the leftover card */
@media (min-width: 560px) and (max-width: 767px) {
  .smd-bi-grid--cols-3 > .smd-bi-option:last-child:nth-child(odd),
  .smd-bi-grid--cols-3 > label.smd-bi-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
    width: 100%;
  }
}

.smd-bi-option span.meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  line-height: 1.35;
  color: var(--text-muted) !important;
  opacity: 1;
  text-wrap: balance;
  hyphens: none;
}

.smd-bi-option span.meta.smd-bi-option-meta--lines {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.smd-bi-option-meta-line {
  display: block;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .smd-bi-grid--cols-3 > .smd-bi-option strong,
  .smd-bi-grid--cols-3 > label.smd-bi-option strong {
    font-size: 0.92rem;
  }

  .smd-bi-grid--cols-3 > .smd-bi-option span.meta,
  .smd-bi-grid--cols-3 > label.smd-bi-option span.meta {
    font-size: 0.8rem;
  }
}

.smd-bi-grid--services .smd-bi-option span.meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-wrap: balance;
}

.smd-bi-option input[type='checkbox'] {
  margin-right: 0.5rem;
}

.smd-bi-input,
.smd-bi-textarea {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  font: inherit;
  box-sizing: border-box;
}

.smd-bi-textarea {
  resize: vertical;
  min-height: 110px;
}

.smd-bi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  align-items: center;
}

.smd-bi-btn-back,
.smd-bi-btn-skip,
.smd-bi-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none !important;
  padding: 0.55rem 1.2rem;
  min-height: var(--touch-target-min);
  line-height: 1.2;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  align-self: flex-start;
  margin-bottom: 0.85rem;
}

.smd-bi-btn-back,
.smd-bi-btn-skip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-panel-border);
  color: var(--text-muted) !important;
  opacity: 1;
}

.smd-bi-btn-primary {
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: var(--charcoal-900) !important;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
}

.smd-bi-btn-back:hover,
.smd-bi-btn-skip:hover {
  color: var(--text-primary) !important;
  border-color: var(--accent-option-hover);
  background: rgba(255, 255, 255, 0.1);
}

.smd-bi-btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--charcoal-800) !important;
}

.smd-bi-btn-back:active,
.smd-bi-btn-skip:active,
.smd-bi-btn-primary:active {
  transform: scale(0.98);
}

.smd-bi-actions .smd-bi-btn-back,
.smd-bi-actions .smd-bi-btn-skip,
.smd-bi-actions .smd-bi-btn-primary {
  margin-bottom: 0;
  align-self: center;
}

/* ---- Phase 1 cart ---- */
.smd-bi-cart-section {
  padding: 1rem;
  border-radius: var(--radius-card);
  background: var(--summary-block-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.smd-bi-cart-section--selections {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0, rgba(34, 197, 94, 0.12) 3px, var(--summary-block-bg) 3px);
}

.smd-bi-cart-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-label) !important;
}

.smd-bi-cart-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Checkout two-column layout (desktop) */
.smd-bi-checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.smd-bi-checkout-selections,
.smd-bi-checkout-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.smd-bi-checkout-rail {
  gap: 1rem;
}

@media (min-width: 900px) {
  .smd-bi-checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 380px);
    gap: 1.35rem 1.5rem;
    align-items: start;
  }

  .smd-bi-checkout-rail {
    position: sticky;
    top: 1rem;
    gap: 0.85rem;
  }

  .smd-bi-checkout-rail .smd-bi-cart-hint {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .smd-bi-checkout-rail .smd-bi-cart-section,
  .smd-bi-checkout-rail .smd-bi-cart-total,
  .smd-bi-checkout-rail .smd-bi-book-section {
    padding: 0.85rem 0.95rem;
  }

  .smd-bi-cart-section--selections .smd-bi-sel-list {
    max-height: none;
    overflow: visible;
  }

  .smd-bi-mobile-checkout-actions {
    display: none !important;
  }

  .smd-bi-sel-toggle {
    display: none;
  }
}

.smd-bi-sel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.smd-bi-sel-head .smd-bi-cart-label {
  margin-bottom: 0;
}

.smd-bi-sel-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  min-height: 36px;
}

.smd-bi-sel-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 899px) {
  .smd-bi-cart-section--selections.is-collapsed .smd-bi-sel-list {
    display: none;
  }

  .smd-bi-mobile-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.14) 0, rgba(34, 197, 94, 0.14) 3px, var(--summary-block-bg) 3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .smd-bi-mobile-total {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }

  .smd-bi-mobile-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .smd-bi-mobile-cta-row .smd-bi-pay-pill,
  .smd-bi-mobile-cta-row .smd-bi-btn-book {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

.smd-bi-sel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.smd-bi-sel-row:last-child {
  border-bottom: none;
}

.smd-bi-sel-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.smd-bi-sel-key {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-label);
}

.smd-bi-sel-val {
  color: var(--text-body);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-wrap: balance;
}

.smd-bi-cart-edit {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem 0;
  min-height: var(--touch-target-min);
}

.smd-bi-cart-edit:hover {
  color: var(--text-primary);
}

.smd-bi-btn-edit-experience {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 200, 255, 0.45);
  background: rgba(120, 200, 255, 0.12);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.smd-bi-btn-edit-experience:hover {
  background: rgba(120, 200, 255, 0.2);
  border-color: rgba(120, 200, 255, 0.65);
}

.smd-bi-edit-chooser {
  margin: 0.35rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: var(--summary-block-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.smd-bi-edit-chooser[hidden] {
  display: none !important;
}

.smd-bi-edit-chooser .smd-bi-step-help {
  margin-bottom: 0.85rem;
}

.smd-bi-edit-chooser-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.smd-bi-edit-chooser-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--option-border);
  background: var(--option-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--touch-target-min);
}

.smd-bi-edit-chooser-item:hover {
  border-color: var(--accent-option-hover);
  background: rgba(120, 200, 255, 0.1);
}

.smd-bi-edit-chooser-item--start {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.smd-bi-checkout-layout[hidden] {
  display: none !important;
}

.smd-bi-pay-group,
.smd-bi-onsite-group,
.smd-bi-status-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.smd-bi-cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  transition: background var(--transition-fast);
}

.smd-bi-cart-line:hover {
  background: rgba(255, 255, 255, 0.04);
}

.smd-bi-cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.smd-bi-cart-line--compact .smd-bi-cart-line-main {
  flex-direction: row;
  align-items: center;
}

.smd-bi-cart-line-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-wrap: balance;
}

.smd-bi-cart-line-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.smd-bi-cart-line-aside {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  max-width: min(100%, 16rem);
}

.smd-bi-cart-line--pay-full {
  flex-wrap: wrap;
  align-items: flex-start;
}

.smd-bi-cart-line--pay-full .smd-bi-cart-line-aside {
  max-width: 100%;
}

.smd-bi-cart-line--pay-full .smd-bi-pay-pill {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.smd-bi-deposit-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.85rem 0.65rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.smd-bi-deposit-block-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.smd-bi-deposit-block-detail {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.smd-bi-pay-pill--deposit-block {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  margin-top: 0.25rem;
}

.smd-bi-cart-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.smd-bi-pay-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--charcoal-700) !important;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.smd-bi-pay-pill:hover {
  transform: scale(0.98);
  color: var(--charcoal-700) !important;
}

.smd-bi-pay-pill .smd-bi-pay-short {
  display: none;
}

@media (max-width: 479px) {
  .smd-bi-pay-pill .smd-bi-pay-full {
    display: none;
  }
  .smd-bi-pay-pill .smd-bi-pay-short {
    display: inline;
  }
  .smd-bi-cart-line {
    flex-wrap: wrap;
  }
  .smd-bi-cart-line-aside {
    width: 100%;
    justify-content: space-between;
  }
}

.smd-bi-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.smd-bi-cart-total {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14) 0, rgba(34, 197, 94, 0.14) 3px, var(--summary-block-bg) 3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.smd-bi-total-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.55rem 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smd-bi-total-breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.smd-bi-total-breakdown-label {
  color: var(--text-muted);
  min-width: 0;
  flex: 1;
}

.smd-bi-total-breakdown-amt {
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.smd-bi-cart-total-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-label);
}

.smd-bi-estimate-total {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary) !important;
  line-height: 1.15;
}

.smd-bi-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
}

.smd-bi-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.smd-bi-trust-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.smd-bi-trust-link:hover {
  color: var(--text-primary);
}

.smd-bi-disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.smd-bi-book-section {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0, rgba(34, 197, 94, 0.12) 3px, var(--summary-block-bg) 3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.smd-bi-cart .smd-bi-actions {
  margin: 0 0 0.35rem;
  gap: 0.65rem;
}

.smd-bi-cart .smd-bi-step-help {
  margin-bottom: 0.75rem;
}

.smd-bi-btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--charcoal-700) !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none !important;
}

.smd-bi-btn-book:hover {
  color: var(--charcoal-700) !important;
  transform: scale(0.98);
}

.smd-bi-book-more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.smd-bi-book-more:hover {
  color: var(--text-primary);
}

.smd-bi-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .smd-bi-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Mobile sticky summary bar */
.smd-bi-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(27, 19, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.smd-bi-sticky-total {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.smd-bi-sticky-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-label);
}

.smd-bi-sticky-amount {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.smd-bi-sticky-ctas {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.smd-bi-sticky-cta {
  flex-shrink: 0;
  min-height: var(--touch-target-min);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: none;
  background: #fff;
  color: var(--charcoal-700);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smd-bi-sticky-cta--pay {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
}

.smd-bi-sticky-cta--book {
  background: #fff;
  color: var(--charcoal-700) !important;
}

@media (max-width: 767px) {
  .smd-bi-root.has-sticky-cart {
    padding-bottom: 6.5rem;
  }
  .smd-bi-root.has-sticky-cart .smd-bi-sticky {
    display: flex;
  }
}

.smd-bi-error {
  color: var(--accent-error);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.smd-bi-voice-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.smd-bi-voice-btn {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  min-height: var(--touch-target-min);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-body);
  cursor: pointer;
}

.smd-bi-voice-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.smd-bi-voice-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.section.smd-bi-section {
  /* Override Webflow pd-80px / pd-bottom-120px */
  padding-top: 1rem !important;
  padding-bottom: 1.5rem !important;
  box-sizing: border-box;
}

.section.smd-bi-section .smd-bi-container.w-container,
.section.smd-bi-section .smd-bi-container.container-default {
  max-width: 1180px;
  width: 100%;
}

/* Kill white void: charcoal under the whole onboarding shell */
html:has(body.smd-bi-page),
body.smd-bi-page {
  background: var(--charcoal-900, #1b1311);
}

/* Onboarding: charcoal fills first viewport; blog footer below fold; page scrolls to it */
body.smd-bi-page:not(.smd-bi-summary-open) {
  overflow: auto;
}

body.smd-bi-page:not(.smd-bi-summary-open) .page-wrapper.smd-bi-page-wrapper {
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: var(--charcoal-900, #1b1311);
}

body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-header-wrap {
  flex: 0 0 auto;
}

body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  /* Full viewport of charcoal so footer starts below the fold on all sizes */
  min-height: 100dvh;
  background-color: var(--charcoal-900, #1b1311);
}

body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-section .smd-bi-container.w-container,
body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-section .smd-bi-container.container-default {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: auto;
  overflow: visible;
}

body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100%;
  overflow: visible;
}

/* Glass grows with content; page (not nested trap) scrolls to footer */
body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-glass {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* Blog SSOT footer always in DOM during mid-wizard — below the charcoal fold */
body.smd-bi-page:not(.smd-bi-summary-open) .footer-wrapper {
  display: block !important;
  flex: 0 0 auto;
}

/* SUMMARY / cart — natural page scroll + sticky cart padding */
body.smd-bi-page.smd-bi-summary-open {
  overflow: auto;
}

body.smd-bi-page.smd-bi-summary-open .smd-bi-section {
  min-height: auto;
  padding-bottom: 3rem !important;
}

body.smd-bi-page.smd-bi-summary-open .smd-bi-root {
  height: auto;
  padding-bottom: 5.5rem;
}

body.smd-bi-page.smd-bi-summary-open .smd-bi-glass {
  flex: 0 0 auto;
  overflow: visible;
}

.smd-bi-hero-title {
  flex: 0 0 auto;
}

.smd-bi-hero-sub {
  flex: 0 0 auto;
}

.smd-bi-progress {
  flex: 0 0 auto;
}

/* ---- Blog-parity footer polish (book-intake must not rely on stale site CSS alone) ---- */
body.smd-bi-page img.footer-logo.smd-footer-logo {
  max-width: 88px;
  width: 88px;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.9;
}

body.smd-bi-page .footer-logo-wrapper:has(.smd-footer-logo) {
  max-width: 120px;
}

body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__main {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding: 28px 0 !important;
}

body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__brand {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  flex: 1 1 280px;
  min-width: 0;
}

body.smd-bi-page .footer-wrapper.smd-site-footer .footer-logo-wrapper {
  max-width: 72px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__tagline {
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 280px;
  margin: 0;
  color: var(--neutral--600, #a6a7a8);
}

body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__contact {
  display: flex !important;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 28px;
  flex: 0 1 auto;
}

body.smd-bi-page .footer-wrapper.smd-site-footer .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

@media (max-width: 767px) {
  .section.smd-bi-section {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
  }

  .section.smd-bi-section .smd-bi-container.w-container,
  .section.smd-bi-section .smd-bi-container.container-default {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .smd-bi-root {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.smd-bi-page:not(.smd-bi-summary-open) .smd-bi-hero-sub {
    margin-bottom: 1.25rem;
  }

  /* Mobile footer compact (shell/scroll rules are sitewide above) */
  body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__main {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 12px !important;
    gap: 12px !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px !important;
    flex: 0 0 auto !important;
    width: 100%;
    min-height: 0 !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .footer-logo-wrapper {
    max-width: 56px !important;
    margin-bottom: 0 !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .footer-logo.smd-footer-logo {
    max-width: 56px !important;
    width: 56px !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__tagline {
    font-size: 0.82rem;
    max-width: none;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__contact {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px !important;
    width: 100%;
    margin: 0 !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .smd-site-footer__contact .card-link-icon {
    margin: 0 !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .footer-bottom {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
    grid-row-gap: 10px !important;
  }

  body.smd-bi-page .footer-wrapper.smd-site-footer .footer-bottom p {
    font-size: 0.72rem;
    line-height: 1.4;
    margin: 0 !important;
  }
}

/* Cash-path: locked Book + deposit CTA */
.smd-bi-btn-book--locked,
.smd-bi-sticky-cta--book.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
/* Secondary CTA: must stay readable on dark glass (was invisible charcoal-on-transparent) */
.smd-bi-pay-pill--deposit {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.smd-bi-pay-pill--deposit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}
.smd-bi-schedule-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.smd-bi-book-recovery {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.smd-bi-book-recovery:hover {
  color: rgba(255, 255, 255, 0.85);
}
.smd-cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.smd-cart-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}
@media (max-width: 767px) {
  .smd-cart-chip {
    margin-right: 0.4rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }
}

