/*
 * CRY-EX Customer. Tokens come from /shared/cryex-theme.css; base, focus,
 * buttons (.cx-button), the sign-in gate, dialogs and the footer come from
 * /shared/cryex-shell.css. This sheet holds only the customer layout and
 * its own components. Mobile layout: max-width 920px.
 */

body[data-cryex-app="customer"] {
  --cx-mobile-nav: 76px;
  --line: var(--cx-border);
  --muted: var(--cx-ink-muted);
  --faint: var(--cx-ink-faint);
  --accent-ink: var(--cx-app-accent-ink);
  --selected: var(--cx-app-accent-soft);
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--cx-ink);
  font-size: 15px;
}

body[data-auth-state="pending"] .app-shell { visibility: hidden; }

svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; }
button { color: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ---- Buttons: app modifiers on the shared .cx-button ---- */
body .cx-button.is-block { width: 100%; }
body .cx-button.is-danger { border-color: color-mix(in srgb, var(--cx-danger) 35%, transparent); background: var(--cx-danger-soft); color: var(--cx-danger); }
body .cx-button.is-danger:hover:not(:disabled) { border-color: var(--cx-danger); }

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 750;
}

.text-button svg { width: 16px; height: 16px; }

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  color: var(--cx-ink);
}

.icon-button svg { width: 18px; height: 18px; }
.icon-button.is-dark { border-color: var(--cx-brand-ink); background: var(--cx-brand-ink); color: var(--cx-accent); }
.icon-button:disabled { opacity: 0.4; }
.icon-button i { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border: 2px solid var(--cx-surface); border-radius: 50%; background: var(--cx-accent-strong); }

.tile-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: var(--cx-radius);
  background: var(--selected);
  color: var(--accent-ink);
}

.stop-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; }
.stop-dot.is-pickup { background: var(--cx-success); }
.stop-dot.is-dropoff { background: var(--cx-accent-strong); box-shadow: 0 0 0 1px var(--cx-brand-ink); }

/* ---- Shell: dark top bar on desktop, header + tab bar on mobile ---- */
.app-shell { min-height: 100dvh; }

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--cx-text);
  text-decoration: none;
}

.brand-mark { display: block; width: 32px; height: 32px; border-radius: 7px; }
.brand-copy { display: grid; gap: 4px; line-height: 1; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { color: var(--cx-accent); font-weight: 850; letter-spacing: 0.2em; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  height: var(--cx-header);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 2.4vw, 34px);
  border-bottom: 1px solid var(--cx-line);
  background: var(--cx-bg);
  color: var(--cx-text);
}

.side-nav { display: flex; flex: 1; align-items: center; gap: 2px; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--cx-radius-sm);
  background: transparent;
  color: var(--cx-muted);
  font-size: 13px;
  font-weight: 680;
}

.nav-item svg { width: 16px; height: 16px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.is-active { background: var(--cx-accent-soft); color: var(--cx-accent); box-shadow: inset 0 -2px var(--cx-accent-strong); }

.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-accent); }

.topbar-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--cx-line-strong);
  border-radius: var(--cx-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cx-text);
}

.topbar-icon svg { width: 18px; height: 18px; }
.topbar-icon:hover { border-color: rgba(197, 242, 58, 0.45); }
.topbar-icon .nav-dot { position: absolute; top: 8px; right: 8px; }

.main-content { padding: calc(var(--cx-header) + 30px) clamp(24px, 3.2vw, 48px) 72px; }
.mobile-header, .bottom-nav { display: none; }

/* ---- Views ---- */
/* Fade only: a transform animation would trap the fixed mobile Book button. */
.view { width: 100%; max-width: 1240px; margin: 0 auto; animation: page-in 200ms ease; }

@keyframes page-in {
  from { opacity: 0; }
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0;
  font-size: var(--cx-text-3xl);
  font-weight: var(--cx-weight-bold);
  letter-spacing: var(--cx-tracking-tight);
  line-height: var(--cx-leading-tight);
}

.page-head p { margin: 6px 0 0; color: var(--muted); }

.section-block { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head .section-title { margin: 0; }
.section-title { margin: 0 0 12px; font-size: var(--cx-text-xl); font-weight: var(--cx-weight-bold); }

.panel-card,
.form-card,
.checkout-card,
.map-card,
.empty-strip,
.home-booking-card,
.recent-item,
.history-item {
  border: 1px solid var(--line);
  border-radius: var(--cx-radius-lg);
  background: var(--cx-surface);
}

.empty-panel {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--cx-radius-lg);
  text-align: center;
}

.empty-panel h2 { margin: 8px 0 0; font-size: var(--cx-text-xl); }
.empty-panel p { margin: 0 0 12px; color: var(--muted); }

/* ---- Home ---- */
.empty-strip,
.home-booking-card,
.recent-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.home-booking-card {
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(150px, 0.8fr) auto;
  border-left: 4px solid var(--cx-accent-strong);
}

:is(.empty-strip, .home-booking-card, .recent-item) :is(strong, small) { display: block; }
:is(.empty-strip, .home-booking-card, .recent-item) small { color: var(--muted); font-size: 13px; }
.route-label { min-width: 0; }
.route-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list { display: grid; gap: 10px; }
.booking-source-offer, .history-source-offer { color: var(--accent-ink) !important; font-weight: 700; }

.promo-banner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--campaign-accent, var(--cx-info));
  border-radius: var(--cx-radius-lg);
  background: var(--cx-surface);
}

.promo-art {
  display: grid;
  width: 96px;
  height: 80px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--cx-radius);
  background: color-mix(in srgb, var(--campaign-accent, var(--cx-info)) 14%, var(--cx-surface));
  color: var(--cx-ink);
}

.promo-art img { width: 100%; height: 100%; object-fit: cover; }
.promo-copy { min-width: 0; }
.promo-copy > strong { display: block; margin-top: 6px; font-size: 16px; }
.promo-copy p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.promo-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.promo-label {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius-pill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

/* ---- Book ---- */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 24px;
}

.booking-main { display: grid; gap: 16px; }
.form-card { min-width: 0; margin: 0; padding: 22px 24px 24px; }

.form-card > legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--cx-font-display);
  font-size: var(--cx-text-lg);
  font-weight: var(--cx-weight-bold);
}

.form-card > legend + * { clear: both; }

.segmented-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-option { position: relative; }

.service-option input,
.payment-option input,
.star-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.service-option > span {
  display: grid;
  min-height: 76px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--cx-radius);
}

.service-option svg { grid-row: span 2; width: 26px; height: 26px; color: var(--accent-ink); }
.service-option strong, .service-option small { display: block; }
.service-option small { color: var(--muted); font-size: 13px; }

.service-option input:checked + span,
.payment-option.is-selected,
.menu-choice:has(input[type="checkbox"]:checked) {
  border-color: var(--accent-ink);
  background: var(--selected);
}

.service-option input:focus-visible + span,
.payment-option:has(input:focus-visible),
.star-picker input:focus-visible + svg { outline: 3px solid var(--cx-ink); outline-offset: 3px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full-field { grid-column: 1 / -1; }
.field-group { display: grid; gap: 6px; }
.notes-field { margin-top: 14px; }

.field-group > span,
.field-label,
.promo-field label { color: var(--cx-ink); font-size: 14px; font-weight: 700; }

.field-group > span small { color: var(--faint); font-size: max(12px, 0.8em); font-weight: 500; }

.field-group > :is(input, select, textarea),
.field-group > .cx-secret > input,
.input-with-unit > input,
.input-shell,
.promo-field input,
.history-search,
.message-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  color: var(--cx-ink);
  font-size: 16px;
}

.field-group textarea { min-height: 84px; padding-top: 11px; resize: vertical; }

.field-group > :is(input, select, textarea):focus,
.field-group > .cx-secret > input:focus,
.input-with-unit > input:focus,
.input-shell:focus-within,
.promo-field input:focus,
.history-search:focus-within,
.message-form input:focus { border-color: var(--cx-ink-muted); outline: 0; }

.field-hint, .address-selection { color: var(--muted); font-size: 13px; }
.field-hint.is-error, .field-error { color: var(--cx-danger); font-size: 13px; }
.field-error { display: block; }
.field-help { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 44px; }
.input-with-unit em { position: absolute; top: 50%; right: 12px; color: var(--faint); font-size: 13px; font-style: normal; transform: translateY(-50%); }

/* Pickup / drop-off pickers */
.route-inputs { display: grid; gap: 12px; }
.address-picker { display: grid; gap: 6px; }
.field-label { display: inline-flex; align-items: center; gap: 8px; }
.address-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.input-shell { display: flex; align-items: center; gap: 10px; }
.input-shell svg { width: 17px; height: 17px; color: var(--faint); }
.input-shell input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: inherit; }
.address-selection.is-selected { color: var(--cx-success); font-weight: 700; }
.address-picker.is-map-target .input-shell { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--selected); }

.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.swap-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius-pill);
  background: var(--cx-surface);
  color: var(--cx-ink);
  font-size: 13px;
  font-weight: 700;
}

.swap-button svg { width: 16px; height: 16px; }

.address-results {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  box-shadow: var(--cx-shadow-soft);
}

.address-result {
  display: grid;
  min-height: 52px;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.address-result:last-child { border-bottom: 0; }
.address-result:hover, .address-result:focus-visible { background: var(--selected); }
.address-result strong { font-size: 14px; }
.address-result small, .address-result-empty { color: var(--muted); font-size: 13px; }
.address-result-empty { margin: 0; padding: 12px; }

.map-stop-selector { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 700; }

.map-stop-selector button {
  min-width: 84px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius-pill);
  background: var(--cx-surface);
  font-size: 13px;
  font-weight: 750;
}

.map-stop-selector button[aria-pressed="true"] { border-color: var(--cx-brand-ink); background: var(--cx-brand-ink); color: var(--cx-accent); }

.route-map-shell { isolation: isolate; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--cx-radius); background: var(--cx-surface-muted); }
.booking-osm-map { min-height: 300px; }
.tracking-osm-map { min-height: 520px; }
.map-fallback { display: grid; min-height: 260px; place-items: center; padding: 24px; background: var(--cx-surface-muted); text-align: center; }
.map-fallback > div { display: grid; max-width: 360px; gap: 6px; }
.map-fallback span { color: var(--muted); font-size: 13px; }

/* Store orders */
.food-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.food-menu > p { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--cx-radius); color: var(--muted); font-size: 14px; }

.menu-choice {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
}

.menu-choice strong, .menu-choice small { display: block; }
.menu-choice small { color: var(--muted); font-size: 13px; }
.menu-choice input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.menu-choice input[type="number"] { width: 100%; min-height: 40px; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--cx-radius-sm); text-align: center; }
.menu-choice.is-promoted { border-color: var(--cx-info); box-shadow: inset 0 0 0 1px var(--cx-info); }

.promoted-item-badge {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-info-soft);
  color: var(--cx-info);
  font-size: 12px;
  font-weight: 800;
}

.merchant-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface-muted);
}

.merchant-summary-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: var(--cx-radius); background: var(--cx-surface); }
.merchant-summary strong, .merchant-summary small { display: block; }
.merchant-summary small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-summary > b { color: var(--cx-success); font-size: 13px; }

/* Price card */
.checkout-card { position: sticky; top: calc(var(--cx-header) + 20px); display: grid; gap: 16px; padding: 22px 24px 24px; }
.checkout-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkout-heading h2 { margin: 0; font-size: var(--cx-text-xl); }

.quote-status { padding: 4px 10px; border-radius: var(--cx-radius-pill); background: var(--cx-success-soft); color: var(--cx-success); font-size: 12px; font-weight: 800; }
.quote-status.is-loading { background: var(--cx-warning-soft); color: var(--cx-warning); }
.quote-status.is-error { background: var(--cx-danger-soft); color: var(--cx-danger); }

.quote-retry { border: 1px solid var(--line); border-radius: var(--cx-radius); background: var(--cx-surface); font-size: 14px; font-weight: 750; }

.fare-breakdown { display: grid; gap: 8px; margin: 0; }
.fare-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fare-breakdown dt { color: var(--muted); font-size: 14px; }
.fare-breakdown dd { margin: 0; font-size: 14px; font-weight: 700; }
.fare-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.fare-total dt { color: var(--cx-ink); font-weight: 800; }
.fare-total dd { font-family: var(--cx-font-display); font-size: var(--cx-text-2xl); }
#discount-row dd { color: var(--cx-success); }

.promo-field { display: grid; gap: 6px; }
.promo-field > div { display: flex; }
.promo-field input { border-radius: var(--cx-radius) 0 0 var(--cx-radius); font-family: var(--cx-font-mono); text-transform: uppercase; }
.promo-field input::placeholder { font-family: var(--cx-font-sans); text-transform: none; }
.promo-field button { min-width: 72px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--cx-radius) var(--cx-radius) 0; background: var(--cx-surface-muted); font-size: 14px; font-weight: 800; }

.payment-fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.payment-fieldset legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }

.payment-option {
  display: grid;
  min-height: 60px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  cursor: pointer;
}

.payment-option.is-disabled { cursor: not-allowed; opacity: 0.6; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--muted); font-size: 13px; }
.payment-option > i { width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 50%; }
.payment-option input:checked ~ i { border: 5px solid var(--cx-brand-ink); }
.payment-logo { display: grid; width: 34px; height: 34px; place-items: center; border-radius: var(--cx-radius); background: var(--cx-surface-muted); font-weight: 900; }
.payment-logo--qr svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- Pay by QR ---- */
.qr-pay-dialog { text-align: center; }
.qr-pay-dialog h2 { padding: 0 40px; }
.qr-pay-status { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.qr-pay-amount { display: block; font-size: var(--cx-text-2xl); letter-spacing: var(--cx-tracking-tight); }
/* White quiet zone so phone cameras and wallet apps read the code. */
.qr-pay-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(272px, 100%); margin: 12px auto 0; padding: 4px; border-radius: var(--cx-radius-pill); background: var(--cx-surface-muted); }
.qr-pay-switch[hidden] { display: none; }
.qr-pay-switch button { min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--cx-radius-pill); background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 750; }
.qr-pay-switch button[aria-pressed="true"] { background: var(--cx-brand-ink); color: var(--cx-accent); }
.qr-pay-code { width: min(272px, 100%); margin: 10px auto 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--cx-radius); background: #fff; }
.qr-pay-code img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.qr-pay-save { justify-content: center; }
.qr-pay-facts { display: grid; gap: 6px; margin: 4px 0 14px; padding: 12px; border-radius: var(--cx-radius); background: var(--cx-surface-muted); text-align: left; }
.qr-pay-facts div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.qr-pay-facts dt { color: var(--muted); font-size: 13px; }
.qr-pay-facts dd { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.qr-pay-facts .text-button { min-height: 32px; }
#qr-pay-form { display: grid; gap: 12px; text-align: left; }
.qr-pay-other { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 8px; }
.text-button.is-danger { color: var(--cx-danger); }

.booking-confirmation-summary { margin: 0; color: var(--muted); font-size: 14px; font-weight: 650; }

/* ---- Track ---- */
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--cx-radius-pill); background: var(--cx-surface); color: var(--cx-success); font-size: 13px; font-weight: 800; }

.live-badge > span,
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cx-success); animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(23, 120, 74, 0); }
}

.tracking-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr); align-items: start; gap: 20px; }
.map-card { position: relative; overflow: hidden; isolation: isolate; }
.map-toolbar { position: absolute; z-index: 800; inset: 14px 14px auto; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }

.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-brand-ink);
  color: var(--cx-text);
  font-size: 13px;
  font-weight: 750;
}

.map-pill .live-dot { background: var(--cx-accent); }
#tracking-location-state.is-stale { background: var(--cx-warning-soft); color: var(--cx-ink); }
#tracking-location-state.is-stale .live-dot { background: var(--cx-warning); }

.map-control { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: var(--cx-radius); background: var(--cx-surface); box-shadow: var(--cx-shadow-soft); pointer-events: auto; }

.eta-ribbon { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 20px; }
.eta-ribbon small, .eta-ribbon strong { display: block; }
.eta-ribbon small { color: var(--muted); font-size: 13px; }
.eta-distance { padding-left: 20px; border-left: 1px solid var(--line); text-align: right; }

.tracking-panel { display: grid; align-content: start; align-items: start; gap: 12px; }
.panel-card { padding: 16px 18px; }
.panel-card small { color: var(--muted); font-size: 13px; }

.status-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.status-head :is(small, strong) { display: block; }
.status-pill { padding: 4px 9px; border-radius: var(--cx-radius-pill); background: var(--cx-warning-soft); color: var(--cx-warning); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.status-timeline { display: grid; margin: 16px 0 0; padding: 0; list-style: none; }
.status-timeline li { position: relative; display: grid; min-height: 56px; grid-template-columns: 24px 1fr; gap: 12px; }
.status-timeline li:not(:last-child)::before { position: absolute; top: 24px; bottom: 0; left: 11px; border-left: 1px dashed var(--line); content: ""; }
.status-timeline i { position: relative; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--cx-surface); }
.status-timeline i svg { width: 13px; height: 13px; }
.status-timeline :is(strong, small) { display: block; }
.status-timeline .is-done i { border-color: var(--cx-success); background: var(--cx-success); color: #fff; }
.status-timeline .is-current i { border: 6px solid var(--cx-accent); background: var(--cx-brand-ink); }

.driver-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px 44px; align-items: center; gap: 10px; }
.driver-card div > :is(small, strong, span) { display: block; }
.driver-card div > span { color: var(--muted); font-size: 13px; }

.driver-avatar {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--cx-brand-ink);
  color: var(--cx-accent);
  font-weight: 800;
}

.driver-avatar > span { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border: 2px solid var(--cx-surface); border-radius: 50%; background: var(--cx-success); }
.driver-avatar.small { width: 40px; height: 40px; font-size: 14px; }

.merchant-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; }
.merchant-card div > * { display: block; }
.merchant-card div > span { color: var(--muted); font-size: 13px; }

.location-summary { display: grid; gap: 12px; }
.location-summary > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; }
.location-summary .stop-dot { margin-top: 5px; }
.location-summary :is(small, strong) { display: block; }

.parcel-summary { display: grid; margin: 0; padding: 0; }
.parcel-summary > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.parcel-summary > div:last-child { border-bottom: 0; }
.parcel-summary :is(dt, dd) { margin: 0; font-size: 14px; }
.parcel-summary dt { color: var(--muted); }
.parcel-summary dd { font-weight: 700; }

.booking-controls { display: grid; gap: 10px; }
.booking-controls p { margin: 0; color: var(--muted); font-size: 13px; }
.booking-controls > div, .button-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- History ---- */
.history-search { display: flex; width: min(300px, 34vw); align-items: center; gap: 8px; }
.history-search svg { width: 17px; height: 17px; color: var(--faint); }
.history-search input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; }

.history-toolbar { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }

.filter-chip {
  flex: none;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius-pill);
  background: var(--cx-surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-chip.is-active { border-color: var(--cx-brand-ink); background: var(--cx-brand-ink); color: var(--cx-accent); }

.history-list { display: grid; gap: 10px; }

.history-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.3fr) minmax(130px, 0.6fr) minmax(80px, 0.35fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.history-item :is(strong, small) { display: block; }
.history-item small { color: var(--muted); font-size: 13px; }
.history-route { min-width: 0; }
.history-route > strong, .history-party { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-fare { text-align: right; }
.history-actions { display: flex; align-items: center; gap: 8px; }
.history-actions .cx-button, .recent-item .cx-button { min-height: 44px; padding: 0 14px; font-size: 14px; }

.booking-status {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-success-soft);
  color: var(--cx-success);
  font-size: 12px;
  font-weight: 800;
}

.booking-status.active { background: var(--cx-warning-soft); color: var(--cx-warning); }
.booking-status.cancelled { background: var(--cx-danger-soft); color: var(--cx-danger); }

/* ---- Profile and settings ---- */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }

.profile-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px; }
.profile-card h2 { margin: 0; font-size: var(--cx-text-xl); }
.profile-card p { margin: 2px 0 0; color: var(--muted); }

.profile-avatar,
.avatar-button {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--cx-accent);
  color: var(--cx-on-accent);
  font-size: 20px;
  font-weight: 850;
}

.profile-stats { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.profile-stats span + span { border-left: 1px solid var(--line); }
.profile-stats :is(strong, small) { display: block; }

.account-actions { display: grid; gap: 14px; padding: 20px; }
.account-actions h2 { margin: 0; font-size: var(--cx-text-lg); }
.account-actions p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.settings-payment-card { margin-top: 16px; }
.payment-status-note { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; border-radius: var(--cx-radius); background: var(--cx-surface-muted); }
.payment-status-note > span { display: grid; height: 28px; place-items: center; border-radius: var(--cx-radius-sm); background: var(--cx-brand-ink); color: var(--cx-accent); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.payment-status-note p { margin: 0; }
.payment-status-note p > * { display: block; }
.payment-status-note p > span { color: var(--muted); font-size: 13px; }

/* ---- Dialogs (surface, border and backdrop come from the shell) ---- */
.app-dialog { width: min(520px, calc(100vw - 32px)); padding: 28px; overflow: auto; }
.app-dialog[open] { animation: dialog-in 200ms ease both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.app-dialog h2 { margin: 0 0 6px; padding-right: 48px; font-size: var(--cx-text-2xl); letter-spacing: var(--cx-tracking-tight); line-height: var(--cx-leading-tight); }
.app-dialog h3 { margin: 0; font-size: 16px; }
.dialog-lead { margin: 0; color: var(--muted); font-size: 14px; }

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--cx-surface);
}

.dialog-close svg { width: 17px; height: 17px; }
.dialog-close.inline { position: static; }

.dialog-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.dialog-brand .brand-mark { width: 30px; height: 30px; }
.dialog-brand small { color: var(--accent-ink); }

.dialog-badge { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 14px; border-radius: var(--cx-radius-lg); background: var(--selected); color: var(--accent-ink); }
.dialog-badge svg { width: 26px; height: 26px; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: var(--cx-radius); background: var(--cx-surface-muted); }
.auth-tabs.registration-disabled { grid-template-columns: 1fr; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: var(--cx-radius-sm); background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.auth-tabs button[aria-selected="true"] { background: var(--cx-surface); color: var(--cx-ink); box-shadow: var(--cx-shadow-xs); }

.auth-form { display: grid; gap: 12px; }
.auth-panel .dialog-lead { margin: 0 0 12px; }
.auth-panel .dialog-lead:empty { display: none; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.auth-remember { display: flex; min-height: 44px; align-items: center; gap: 9px; font-size: 14px; }
.auth-remember input { width: 18px; height: 18px; margin: 0; }
.auth-help-link { width: fit-content; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
/* The shared consent box uses the dark-shell line colour; use the surface border here. */
body[data-cryex-app="customer"] .legal-agreement { border-color: var(--line); background: var(--cx-surface-muted); }
.auth-note { margin: 0; color: var(--muted); font-size: 13px; }
.auth-status { margin: 0; font-size: 13px; }
.auth-status:not(:empty) { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--cx-radius); background: var(--cx-surface-muted); }
.auth-status.is-error { border-color: transparent; background: var(--cx-danger-soft); color: var(--cx-danger); }
.auth-status.is-success { border-color: transparent; background: var(--cx-success-soft); color: var(--cx-success); }

.chat-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head > div:first-child { display: flex; align-items: center; gap: 10px; }
.chat-head h2 { margin: 0; padding: 0; font-family: var(--cx-font-sans); font-size: 16px; }
.chat-head p { margin: 0; color: var(--muted); font-size: 13px; }
.messages { display: flex; min-height: 320px; max-height: 55vh; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; background: var(--cx-canvas); }
.message { max-width: 78%; }
.message p { margin: 0; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--cx-surface); font-size: 14px; box-shadow: var(--cx-shadow-xs); }
.message time { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; }
.message.outgoing { align-self: flex-end; }
.message.outgoing p { border-radius: 12px 12px 4px 12px; background: var(--cx-brand-ink); color: var(--cx-text); }
.message.outgoing time { text-align: right; }
.message-form { display: grid; grid-template-columns: 1fr 48px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.message-form button { display: grid; place-items: center; border: 0; border-radius: var(--cx-radius); background: var(--cx-accent); color: var(--cx-on-accent); }
.chat-empty { display: grid; margin: auto; justify-items: center; gap: 4px; color: var(--muted); text-align: center; }
.chat-empty svg { width: 28px; height: 28px; color: var(--accent-ink); }
.chat-empty strong { color: var(--cx-ink); }
.chat-empty p { margin: 0; font-size: 13px; }

.support-dialog { width: min(640px, calc(100vw - 32px)); }
.support-ticket-section { margin: 20px 0; }
.support-ticket-section .section-head { margin-bottom: 8px; }
.support-ticket-list, .notification-list { display: grid; gap: 8px; overflow-y: auto; }
.support-ticket-list { max-height: 240px; }
.notification-list { max-height: min(520px, 62dvh); }
.support-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--cx-radius); }
.support-ticket > div { display: grid; min-width: 0; gap: 2px; }
.support-ticket > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket > div span, .support-ticket > small { color: var(--muted); font-size: 13px; }
.support-ticket > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.support-ticket > small { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid var(--line); }
.support-ticket-status { align-self: start; padding: 3px 8px; border-radius: var(--cx-radius-pill); background: var(--cx-info-soft); color: var(--cx-info); font-size: 12px; font-weight: 800; }
.support-ticket-status.is-pending { background: var(--cx-warning-soft); color: var(--cx-warning); }
.support-ticket-status:is(.is-resolved, .is-closed) { background: var(--cx-success-soft); color: var(--cx-success); }
.support-empty { display: grid; justify-items: center; gap: 2px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--cx-radius); color: var(--muted); font-size: 14px; text-align: center; }
.support-empty strong { color: var(--cx-ink); }
.support-empty.is-error { color: var(--cx-danger); }
.support-form { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

.notification-dialog { width: min(580px, calc(100vw - 32px)); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.notification-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }

.notification-item {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  text-align: left;
}

.notification-item.is-unread { border-color: var(--accent-ink); background: var(--selected); }
.notification-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.notification-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item :is(small, time) { color: var(--muted); font-size: 13px; }
.notification-item > i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--cx-accent-strong); }
.notification-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: var(--cx-radius); background: var(--cx-surface-muted); }
.notification-icon svg { width: 17px; height: 17px; }

.receipt-dialog, .rating-dialog { text-align: center; }
.receipt-dialog h2, .rating-dialog h2 { padding: 0 40px; }
.receipt-dialog > p { margin: 0; color: var(--muted); font-size: 14px; }
.receipt-paper { display: grid; gap: 10px; margin: 20px 0 16px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--cx-radius); text-align: left; }
.receipt-row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.receipt-row span:first-child { color: var(--muted); }
.receipt-row strong { text-align: right; }
.receipt-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
.receipt-route { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.receipt-route span { display: block; color: var(--muted); font-size: 13px; }
.receipt-route strong { display: block; margin: 2px 0 8px; font-size: 14px; }

.rating-dialog form { display: grid; gap: 14px; margin-top: 16px; text-align: left; }
.star-picker { display: flex; justify-content: center; gap: 6px; }
.star-picker label { position: relative; display: grid; min-width: 44px; min-height: 44px; place-items: center; cursor: pointer; }
.star-picker svg { width: 34px; height: 34px; color: var(--line); fill: var(--cx-surface-muted); }
.star-picker label.is-filled svg { color: var(--cx-brand-ink); fill: var(--cx-accent); }

.confirm-dialog p { margin: 0 0 18px; color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* ---- Toasts ---- */
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; width: min(380px, calc(100vw - 32px)); gap: 8px; pointer-events: none; }

.toast {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--cx-radius-lg);
  background: var(--cx-bg);
  color: var(--cx-text);
  box-shadow: var(--cx-shadow);
  transition: opacity 180ms ease, transform 180ms ease;
  animation: dialog-in 200ms ease both;
}

.toast.is-error { background: #5c1813; }
.toast > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--cx-radius); background: rgba(255, 255, 255, 0.1); color: var(--cx-accent); }
.toast.is-error > span { color: #ffb4ab; }
.toast svg { width: 16px; height: 16px; }
.toast :is(strong, small) { display: block; }
.toast strong { font-size: 14px; }
.toast small { color: var(--cx-muted); font-size: 13px; }

/* ---- Narrow desktop ---- */
@media (max-width: 1120px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 0.6fr); }
  .tracking-layout { grid-template-columns: minmax(0, 1fr); }
  .tracking-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .history-meta { display: none; }
}

/* ---- Mobile ---- */
@media (max-width: 920px) {
  .topbar { display: none; }

  .main-content { padding: calc(64px + env(safe-area-inset-top) + 20px) 16px calc(var(--cx-mobile-nav) + 32px + env(safe-area-inset-bottom)); }

  .mobile-header {
    position: fixed;
    z-index: var(--cx-z-sticky);
    inset: 0 0 auto;
    display: flex;
    height: calc(64px + env(safe-area-inset-top));
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: var(--cx-bg);
    color: var(--cx-text);
  }

  .mobile-header .brand-copy strong { font-size: 16px; }
  .mobile-header .brand-mark { width: 30px; height: 30px; }
  .mobile-header-actions { display: flex; align-items: center; gap: 10px; }
  .avatar-button { width: 44px; height: 44px; border: 0; font-size: 14px; }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    height: calc(var(--cx-mobile-nav) + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--cx-line);
    background: var(--cx-bg);
  }

  .bottom-nav .nav-item { min-height: 60px; flex-direction: column; justify-content: center; gap: 4px; padding: 0; font-size: 12px; }
  .bottom-nav .nav-item svg { width: 21px; height: 21px; }
  .bottom-nav .nav-item.is-active { background: transparent; box-shadow: none; }
  .bottom-nav .nav-main { margin-top: -26px; }
  .bottom-nav .nav-main > span { display: grid; width: 56px; height: 56px; place-items: center; border: 4px solid var(--cx-bg); border-radius: 50%; background: var(--cx-accent); color: var(--cx-on-accent); }
  .bottom-nav .nav-main small { font-size: 12px; font-weight: 750; }

  .page-head { flex-wrap: wrap; margin-bottom: 18px; }
  .page-head h1 { font-size: 30px; }
  #view-home .page-head .cx-button { width: 100%; }

  .empty-strip, .home-booking-card, .recent-item { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  :is(.empty-strip, .home-booking-card, .recent-item) > .cx-button { grid-column: 1 / -1; width: 100%; }
  .home-booking-card .route-secondary { grid-column: 2; }

  .promo-banner { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .promo-art { width: 72px; height: 72px; }
  .promo-banner > .cx-button { grid-column: 1 / -1; width: 100%; }

  .booking-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .checkout-card { position: static; }
  .form-card, .checkout-card { padding: 18px; }
  .segmented-services, .form-grid { grid-template-columns: minmax(0, 1fr); }

  /* Keep the main booking action in the thumb zone above the tab bar. */
  body .cx-button.book-submit {
    position: fixed;
    z-index: var(--cx-z-sticky);
    right: 16px;
    bottom: calc(var(--cx-mobile-nav) + 10px + env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
    box-shadow: var(--cx-shadow);
  }

  body .cx-button.book-submit:disabled { opacity: 1; background: var(--cx-surface-muted); color: var(--faint); }

  .tracking-panel { grid-template-columns: minmax(0, 1fr); }
  .tracking-osm-map { min-height: clamp(280px, 52dvh, 380px); }
  .history-search { width: 100%; }
  .history-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .history-fare small { display: none; }
  .history-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .history-actions .cx-button { flex: 1; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .toast-region { right: 16px; bottom: calc(var(--cx-mobile-nav) + 76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .food-menu { grid-template-columns: minmax(0, 1fr); }
  .booking-osm-map { min-height: 260px; }
  .app-dialog { padding: 22px 18px; }
  .chat-dialog { padding: 0; }
  .eta-ribbon { padding: 14px; }
  .eta-distance { padding-left: 12px; }
  .notification-toolbar { flex-direction: column; align-items: flex-start; }
  .dialog-actions .cx-button { width: 100%; }
}

@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  body[data-cryex-app="customer"] { --cx-mobile-nav: 56px; }
  .bottom-nav .nav-item { min-height: 48px; }
  .bottom-nav .nav-main { margin-top: -10px; }
  .bottom-nav .nav-main > span { width: 44px; height: 44px; }
  .booking-osm-map, .tracking-osm-map { min-height: clamp(220px, 62dvh, 300px); }
}

@media print {
  body * { visibility: hidden; }
  #receipt-dialog, #receipt-dialog * { visibility: visible; }
  #receipt-dialog { position: absolute; inset: 0; width: 100%; max-height: none; box-shadow: none; }
  #receipt-dialog .dialog-close, #print-receipt { display: none; }
}
