/* ============================================================
   Routes - Vehicle showcase (opens when a car is clicked)
   Two panes: a studio "hero" for the car on the left whose
   background is set per vehicle in the admin (Setup → Fleet →
   Showcase background), and the booking options on the right.
   On phones it becomes a full-height sheet: hero on top, options
   below, sticky footer. Class prefix: .sx-
   Money is plain "$12.34" text so routes-currency.js converts it.
   ============================================================ */

:root {
  --sx-ink: #0e1116;
  --sx-ink-soft: #3d4452;
  --sx-muted: #6b7280;
  --sx-faint: #8a91a0;
  --sx-line: rgba(16, 24, 40, 0.09);
  --sx-navy: #132a8e;
  --sx-navy-deep: #0f2170;
  --sx-orange: #ff7a1a;
  --sx-orange-deep: #e56a0f;
  --sx-save: #0e9f6e;
  --sx-save-ink: #067a54;
  --sx-display: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --sx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sx-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------ shell */
.sx-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sx-root--full {
  z-index: 1000; /* above the bottom nav, install banners and floating widgets */
  padding: 0;
  place-items: stretch;
}
.sx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
.sx-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  width: min(1120px, 100%);
  height: min(700px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--sx-ink);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
}
.sx-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  height: 100%;
}
/* The floating currency pill sits above everything; tuck it away while the showcase is open. */
body:has(.sx-root) .rcy-fab,
body:has(.nz-root) .rcy-fab {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* ------------------------------------------------------------ inline mode
   The panel is portalled into .sx-host, a full-width grid row inserted
   right after the row that holds the clicked card. The card gets an
   orange frame and a caret points from the panel up to it. */
.sx-host {
  grid-column: 1 / -1;
  min-width: 0;
}
.sx-inline {
  position: relative;
  /* clip (not hidden) so the phone footer can stick to the viewport */
  overflow: clip;
  padding: 16px 0 28px;
}
.sx-caret {
  position: absolute;
  top: 8px;
  left: var(--sx-caret-x, 50%);
  z-index: 3;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--sx-orange);
  border-left: 2px solid var(--sx-orange);
  border-radius: 4px 0 0 0;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  transition: left 0.35s var(--sx-ease);
}
.sx-panel--inline {
  width: 100%;
  /* --sx-panel-h is measured per viewport (sticky bars, peeks) by the script */
  height: var(--sx-panel-h, min(600px, calc(100dvh - 260px)));
  box-shadow:
    0 30px 60px -34px rgba(14, 17, 22, 0.45),
    0 0 0 1px var(--sx-line);
}
.sx-panel--inline .sx-loading {
  height: 320px;
}
article.rr-cat.is-showcased {
  outline: 2px solid var(--sx-orange);
  outline-offset: 0;
  box-shadow: 0 22px 44px -24px rgba(255, 122, 26, 0.6) !important;
  transform: none !important;
}

/* ------------------------------------------------------------ hero */
.sx-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 24px 28px 20px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.sx-hero--light {
  color: #101828;
}
.sx-hero-glow {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(38% 32% at 68% 26%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(30% 26% at 22% 80%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}
.sx-hero--light .sx-hero-glow {
  background:
    radial-gradient(38% 32% at 68% 26%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(30% 26% at 22% 80%, rgba(16, 24, 40, 0.05), transparent 70%);
}
.sx-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 72% at 50% 48%, #000 25%, transparent 100%);
  mask-image: radial-gradient(80% 72% at 50% 48%, #000 25%, transparent 100%);
  pointer-events: none;
}
.sx-hero--light .sx-hero-grid {
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.06) 1px, transparent 1px);
}
.sx-hero-top,
.sx-hero-stage,
.sx-hero-foot {
  position: relative;
  z-index: 2;
}
.sx-hero-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.sx-hero-title {
  margin: 8px 0 0;
  font-family: var(--sx-display);
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.sx-hero-title em {
  margin-left: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.52em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.68;
}
.sx-hero-sub {
  margin: 7px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.7;
}

.sx-hero-stage {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 120px;
  margin: 6px -14px;
}
.sx-hero-car {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.sx-hero-img {
  width: auto;
  height: auto;
  max-width: min(100%, 520px);
  max-height: min(100%, 280px);
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.5));
}
.sx-hero--light .sx-hero-img {
  /* multiply hides white photo backgrounds (JPEGs) on light studios */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 30px 30px rgba(20, 30, 60, 0.28));
}
.sx-hero-fallback {
  width: min(100%, 460px);
  height: 220px;
}
.sx-hero-floor {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 13%;
  z-index: 1;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}
.sx-hero--light .sx-hero-floor {
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 30, 60, 0.35), transparent 72%);
}

.sx-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.18s, transform 0.18s var(--sx-ease);
}
.sx-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
}
.sx-arrow--l { left: 6px; }
.sx-arrow--r { right: 6px; }
.sx-hero--light .sx-arrow {
  border-color: rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #101828;
}
.sx-dots {
  position: absolute;
  bottom: 2px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.sx-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.28s var(--sx-ease), background 0.2s;
}
.sx-dot.is-on {
  width: 22px;
  background: var(--sx-orange);
}
.sx-hero--light .sx-dot { background: rgba(16, 24, 40, 0.25); }
.sx-hero--light .sx-dot.is-on { background: var(--sx-orange); }

.sx-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.sx-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.92;
}
.sx-specs svg {
  opacity: 0.7;
}
.sx-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.88;
}
.sx-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}
.sx-chip--green { background: rgba(16, 185, 129, 0.18); border-color: rgba(110, 231, 183, 0.35); color: #6ee7b7; }
.sx-chip--amber { background: rgba(245, 158, 11, 0.2); border-color: rgba(252, 211, 77, 0.35); color: #fcd34d; }
.sx-chip--rose { background: rgba(244, 63, 94, 0.2); border-color: rgba(253, 164, 175, 0.35); color: #fda4af; }
.sx-chip--ev { background: rgba(255, 122, 26, 0.18); border-color: rgba(255, 178, 122, 0.35); color: #ffb27a; }
.sx-chip--premium { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.sx-hero--light .sx-chip--green { background: rgba(14, 159, 110, 0.12); border-color: rgba(14, 159, 110, 0.3); color: var(--sx-save-ink); }
.sx-hero--light .sx-chip--amber { background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.3); color: #b45309; }
.sx-hero--light .sx-chip--rose { background: rgba(225, 29, 72, 0.1); border-color: rgba(225, 29, 72, 0.3); color: #be123c; }
.sx-hero--light .sx-chip--ev { background: rgba(255, 122, 26, 0.12); border-color: rgba(255, 122, 26, 0.3); color: var(--sx-orange-deep); }
.sx-hero--light .sx-chip--premium { background: rgba(16, 24, 40, 0.07); border-color: rgba(16, 24, 40, 0.15); color: #101828; }

.sx-hero-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.sx-iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.18s var(--sx-ease), background 0.18s, color 0.18s;
}
.sx-iconbtn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}
.sx-iconbtn.is-saved { color: #fb7185; }
.sx-hero--light .sx-iconbtn {
  border-color: rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #101828;
}

/* ------------------------------------------------------------ side */
.sx-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}
.sx-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 4px;
}
.sx-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}
.sx-head-actions .sx-more {
  margin-top: 0;
  font-size: 0.76rem;
}
.sx-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sx-orange-deep);
}
.sx-side-title {
  margin: 0;
  font-family: var(--sx-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sx-ink);
}
.sx-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sx-ink);
  cursor: pointer;
  transition: background 0.18s, transform 0.3s var(--sx-ease);
}
.sx-close:hover {
  background: #f3f4f7;
  transform: rotate(90deg);
}
.sx-side-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0 24px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 24, 40, 0.18) transparent;
}

.sx-group {
  margin-top: 12px;
}
.sx-side-body > .sx-group:first-child {
  margin-top: 8px;
}
.sx-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.sx-group-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sx-ink);
}
.sx-group-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sx-muted);
}
.sx-group-body {
  display: flex;
  flex-direction: column;
}

/* Option rows stack like cards; the selected one gets a 2px ink frame
   that sits above its neighbours (Sixt-style), corners only on the ends. */
.sx-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: -1px;
  padding: 10px 14px;
  border: 1px solid var(--sx-line);
  background: #fff;
  color: var(--sx-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.22s var(--sx-ease), border-color 0.2s;
}
.sx-opt:first-child {
  margin-top: 0;
  border-radius: 14px 14px 0 0;
}
.sx-opt:last-child {
  border-radius: 0 0 14px 14px;
}
.sx-opt:only-child {
  border-radius: 14px;
}
.sx-opt:hover {
  background: #fafbfc;
}
.sx-opt.is-on {
  z-index: 1;
  border-color: var(--sx-ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sx-ink);
}
.sx-opt:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--sx-ink), 0 0 0 3px rgba(255, 122, 26, 0.35);
}
.sx-radio {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #c6cbd5;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s;
}
.sx-radio i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sx-ink);
  transform: scale(0);
  transition: transform 0.3s var(--sx-pop);
}
.sx-opt.is-on .sx-radio { border-color: var(--sx-ink); }
.sx-opt.is-on .sx-radio i { transform: scale(1); }

.sx-opt-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sx-opt-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sx-opt-sub {
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sx-muted);
}
.sx-opt-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-align: right;
}
.sx-opt-price {
  min-width: 5.4em;
  font-family: var(--sx-display);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sx-ink);
  font-variant-numeric: tabular-nums;
}
.sx-opt-price small {
  margin-left: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--sx-muted);
}
.sx-delta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sx-ink-soft);
  font-variant-numeric: tabular-nums;
}
.sx-crown { color: var(--sx-orange); }
.sx-blur {
  filter: blur(6px);
  user-select: none;
}

.sx-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f3f7;
  color: var(--sx-ink-soft);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}
.sx-tag--save { background: #e6f7ef; color: var(--sx-save-ink); }
.sx-tag--pop {
  background: var(--sx-orange);
  color: #fff;
  box-shadow: 0 5px 12px -5px rgba(255, 122, 26, 0.7);
}
.sx-tag--lock { background: #eef1fb; color: var(--sx-navy); }

.sx-static {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--sx-line);
  border-radius: 14px;
  background: #fff;
}
.sx-static-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f3f7;
  color: var(--sx-ink);
}

.sx-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sx-ink-soft);
}
.sx-perks li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sx-perks svg {
  flex: none;
  color: var(--sx-save);
}
.sx-perks .sx-star {
  color: #f59e0b;
  fill: #f59e0b;
}
.sx-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sx-navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sx-more svg { transition: transform 0.2s var(--sx-ease); }
.sx-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ footer */
.sx-side-foot {
  position: relative;
  flex: none;
  border-top: 1px solid var(--sx-line);
  background: #fff;
  box-shadow: 0 -16px 32px -26px rgba(14, 17, 22, 0.35);
}
.sx-breakdown {
  /* floats above the footer so the panel never changes height */
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid var(--sx-line);
  background: #fff;
  box-shadow: 0 -18px 36px -24px rgba(14, 17, 22, 0.35);
}
.sx-breakdown-in {
  padding: 12px 24px 10px;
}
.sx-bd-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.78rem;
  color: var(--sx-ink-soft);
  font-variant-numeric: tabular-nums;
}
.sx-bd-label small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--sx-faint);
}
.sx-bd-row.is-save .sx-bd-amt {
  font-weight: 700;
  color: var(--sx-save-ink);
}
.sx-bd-row.is-strong {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(16, 24, 40, 0.16);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--sx-ink);
}
.sx-bd-empty {
  margin: 0;
  font-size: 0.76rem;
  color: var(--sx-muted);
}
.sx-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 24px 12px;
}
.sx-total { min-width: 0; }
.sx-total-meta {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--sx-muted);
}
.sx-total-meta b { font-weight: 800; color: var(--sx-ink); }
.sx-total-meta b.is-member { color: var(--sx-navy); }
.sx-total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.sx-total-amt {
  display: inline-flex;
  min-width: 0;
  font-family: var(--sx-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sx-ink);
  font-variant-numeric: tabular-nums;
}
.sx-total-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sx-muted);
}
.sx-total-day {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sx-ink-soft);
  font-variant-numeric: tabular-nums;
}
.sx-details {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sx-ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sx-details svg { transition: transform 0.28s var(--sx-ease); }
.sx-details.is-open svg { transform: rotate(180deg); }

.sx-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--sx-orange);
  color: #fff;
  font: inherit;
  font-family: var(--sx-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(255, 122, 26, 0.8);
  transition: transform 0.18s var(--sx-ease), background 0.18s, box-shadow 0.18s;
}
.sx-cta:hover {
  background: var(--sx-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px rgba(255, 122, 26, 0.85);
}
.sx-cta:active { transform: translateY(0) scale(0.99); }
.sx-cta svg { transition: transform 0.2s var(--sx-ease); }
.sx-cta:hover svg { transform: translateX(3px); }
.sx-cta--navy {
  background: var(--sx-navy);
  box-shadow: 0 14px 28px -12px rgba(19, 42, 142, 0.7);
}
.sx-cta--navy:hover {
  background: var(--sx-navy-deep);
  box-shadow: 0 18px 32px -12px rgba(19, 42, 142, 0.75);
}
.sx-cta-col {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sx-cta-alt {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sx-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sx-cta-alt:hover { color: var(--sx-ink); }

/* ------------------------------------------------------------ phones / narrow: full-screen slider
   Slides in from the right above everything (bottom nav included).
   Everything must fit one screen: the hero flexes, the options don't. */
.sx-panel--full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}
.sx-panel--full .sx-hero {
  flex: 1 1 auto;
  min-height: 0;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
}
.sx-panel--full .sx-hero-top { padding: 0 44px; }
.sx-panel--full .sx-hero-cat { font-size: 0.6rem; }
.sx-panel--full .sx-hero-title { margin-top: 4px; font-size: 1.3rem; }
.sx-panel--full .sx-hero-sub { margin-top: 3px; font-size: 0.72rem; }
.sx-panel--full .sx-hero-stage {
  min-height: 0;
  margin: 2px -6px;
}
.sx-panel--full .sx-hero-img { max-height: 100%; }
.sx-panel--full .sx-hero-fallback { height: 100%; }
.sx-panel--full .sx-hero-floor { bottom: 6%; height: 22px; }
.sx-panel--full .sx-specs {
  gap: 3px 10px;
  font-size: 0.7rem;
}
.sx-panel--full .sx-hero-meta {
  margin-top: 6px;
  gap: 4px 10px;
  font-size: 0.66rem;
}
.sx-panel--full .sx-hero-actions {
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
}
.sx-panel--full .sx-iconbtn--close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.16);
}
.sx-panel--full .sx-side { flex: none; }
.sx-panel--full .sx-side-head { padding: 10px 16px 0; }
.sx-panel--full .sx-side-title { font-size: 1.05rem; }
.sx-panel--full .sx-side-body {
  padding: 0 16px 4px;
  overflow: visible;
}
.sx-panel--full .sx-group { margin-top: 8px; }
.sx-panel--full .sx-side-body > .sx-group:first-child { margin-top: 4px; }
.sx-panel--full .sx-group-head { margin-bottom: 4px; }
.sx-panel--full .sx-group-title { font-size: 0.8rem; }
.sx-panel--full .sx-opt {
  gap: 10px;
  padding: 8px 12px;
}
.sx-panel--full .sx-opt-title { font-size: 0.86rem; }
.sx-panel--full .sx-opt-sub { font-size: 0.66rem; line-height: 1.3; }
.sx-panel--full .sx-opt-right {
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.sx-panel--full .sx-opt-price { min-width: 0; font-size: 0.86rem; }
.sx-panel--full .sx-radio { width: 20px; height: 20px; }
.sx-panel--full .sx-breakdown-in { padding: 10px 16px 8px; }
.sx-panel--full .sx-foot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
}
.sx-panel--full .sx-total-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sx-panel--full .sx-total-amt { font-size: 1.3rem; }
.sx-panel--full .sx-details { flex: none; margin-left: 4px; }
/* one line, always: the footer must never change height (it would push the hero around) */
.sx-panel--full .sx-total-line { flex-wrap: nowrap; gap: 5px; }
.sx-panel--full .sx-total-day { display: none; }
.sx-panel--full .sx-total-lbl { flex: none; }
.sx-panel--full .sx-total-amt { flex: none; }
.sx-panel--full .sx-cta-alt,
.sx-panel--full .sx-cta-alt--ghost {
  display: block;
  height: 18px;
  line-height: 18px;
  padding: 0;
}
.sx-panel--full .sx-cta-alt--ghost { visibility: hidden; pointer-events: none; }
.sx-panel--full .sx-cta {
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.sx-panel--full .sx-cta-col {
  grid-column: 1 / -1;
  align-items: stretch;
  gap: 3px;
}
.sx-panel--full .sx-cta-col .sx-cta { width: 100%; }
/* Short phones (iPhone SE class): trade the option blurbs for the car,
   put badge + price on one line so every row is a single line. */
@media (max-width: 899px) and (max-height: 799px) {
  .sx-panel--full .sx-hero { padding-top: calc(10px + env(safe-area-inset-top)); }
  .sx-panel--full .sx-hero-title { font-size: 1.15rem; }
  .sx-panel--full .sx-hero-sub { display: none; }
  .sx-panel--full .sx-hero-meta { margin-top: 4px; }
  .sx-panel--full .sx-specs { font-size: 0.66rem; }
  .sx-panel--full .sx-side-head { padding-top: 8px; }
  .sx-panel--full .sx-side-title { font-size: 0.98rem; }
  .sx-panel--full .sx-group { margin-top: 6px; }
  .sx-panel--full .sx-group-head { margin-bottom: 3px; }
  .sx-panel--full .sx-opt { padding: 7px 12px; }
  .sx-panel--full .sx-opt-sub { display: none; }
  .sx-panel--full .sx-opt-right {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .sx-panel--full .sx-tag { padding: 2px 7px; font-size: 0.58rem; }
  .sx-panel--full .sx-opt-price { font-size: 0.84rem; }
  .sx-panel--full .sx-foot-row { padding-top: 6px; gap: 4px 12px; }
  .sx-panel--full .sx-total-amt { font-size: 1.2rem; }
  .sx-panel--full .sx-cta { height: 42px; }
}

@media (max-height: 640px) and (min-width: 900px) {
  .sx-hero-img { max-height: 190px; }
  .sx-hero-stage { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-opt, .sx-radio, .sx-radio i, .sx-cta, .sx-close, .sx-dot, .sx-iconbtn, .sx-arrow, .sx-details svg, .sx-more svg {
    transition: none !important;
  }
}

.sx-bd-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sx-save-ink);
}

/* ============================================================
   Savings nudge (.nz-) - shown before a "Pay later" choice is
   committed, from a fleet card or from the showcase panel.
   ============================================================ */
.nz-root {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above the phone showcase (1000) */
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--sx-ink);
  -webkit-font-smoothing: antialiased;
}
.nz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nz-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 50px 110px -34px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}
.nz-card::-webkit-scrollbar { display: none; }
.nz-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--sx-ease), transform 0.2s var(--sx-ease);
}
.nz-x:hover { background: rgba(255, 255, 255, 0.26); transform: rotate(90deg); }

/* header band */
.nz-head {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 24px;
  color: #fff;
  text-align: center;
  background: radial-gradient(130% 120% at 20% 0%, #2b3345 0%, #131722 52%, #090b10 100%);
}
.nz-glow {
  position: absolute;
  right: -20%;
  bottom: -70%;
  left: -20%;
  height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 122, 26, 0.6), transparent 72%);
  pointer-events: none;
}
.nz-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(80% 90% at 50% 20%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 90% at 50% 20%, #000 20%, transparent 100%);
  pointer-events: none;
}
.nz-title {
  position: relative;
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--sx-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.nz-sub {
  position: relative;
  max-width: 34ch;
  margin: 10px auto 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.nz-sub b { color: #fff; font-weight: 800; }

/* body */
.nz-body { padding: 18px 22px 4px; }
.nz-rate {
  padding: 14px 16px 12px;
  border: 1px solid var(--sx-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f6f7fa 100%);
}
.nz-rate-big {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nz-rate-num {
  display: inline-flex;
  align-items: center;
  min-width: 3.2ch;
  font-family: var(--sx-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--sx-save-ink);
  font-variant-numeric: tabular-nums;
}
.nz-rate-lbl {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sx-ink);
}
.nz-rate-lbl small {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sx-muted);
}
.nz-rows {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(16, 24, 40, 0.16);
  list-style: none;
}
.nz-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nz-row-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef1fb;
  color: var(--sx-navy);
}
.nz-row--muted .nz-row-ic { background: #eaf6f0; color: var(--sx-save-ink); }
.nz-row-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.nz-row-txt b { font-size: 0.8rem; font-weight: 800; }
.nz-row-txt small {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--sx-muted);
}
.nz-row-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
.nz-row-val b {
  font-family: var(--sx-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sx-save-ink);
  font-variant-numeric: tabular-nums;
}
.nz-row-val small {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--sx-muted);
  font-variant-numeric: tabular-nums;
}

/* later vs now */
.nz-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-top: 14px;
}
.nz-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
}
.nz-col--later {
  background: #f3f4f7;
  color: var(--sx-muted);
}
.nz-col--now {
  background: linear-gradient(135deg, #0f2b7a 0%, var(--sx-navy) 50%, #1d47c2 100%);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(19, 42, 142, 0.85);
}
.nz-col-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nz-col-amt {
  margin-top: 4px;
  font-family: var(--sx-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nz-col--later .nz-col-amt s {
  text-decoration-thickness: 2px;
  text-decoration-color: #e0483e;
}
.nz-col-note { font-size: 0.64rem; font-weight: 600; opacity: 0.8; }
.nz-vs {
  display: grid;
  place-items: center;
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--sx-ink);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--sx-line);
}
.nz-save {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #17c27f, var(--sx-save));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(14, 159, 110, 0.9);
}

/* actions */
.nz-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 22px 20px;
}
.nz-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff8f33 0%, var(--sx-orange) 55%, var(--sx-orange-deep) 100%);
  color: #fff;
  font-family: var(--sx-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 20px 36px -16px rgba(255, 122, 26, 0.85);
  transition: transform 0.22s var(--sx-ease), box-shadow 0.22s var(--sx-ease), filter 0.22s;
}
.nz-cta:hover { transform: translateY(-1px); box-shadow: 0 24px 40px -16px rgba(255, 122, 26, 0.95); filter: saturate(1.05); }
.nz-cta:active { transform: translateY(0) scale(0.99); }
.nz-alt {
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--sx-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.nz-alt:hover { color: var(--sx-ink); }

@media (max-width: 480px) {
  .nz-root { padding: 12px; }
  .nz-head { padding: 30px 20px 20px; }
  .nz-title { font-size: 1.32rem; }
  .nz-body { padding: 16px 16px 2px; }
  .nz-rate-num { font-size: 2.2rem; }
  .nz-col { padding: 11px 12px; }
  .nz-col-amt { font-size: 1.22rem; }
  .nz-foot { padding: 14px 16px 18px; }
  .nz-cta { font-size: 0.92rem; }
}
@media (max-height: 700px) {
  .nz-head { padding-top: 26px; padding-bottom: 18px; }
  .nz-sub { margin-top: 6px; }
}
