html:has(.booking-tunnel[open]) {
  overflow: hidden;
}

/* Collapsing address suggestions must not move the page during the handoff. */
html:has(.booking-tunnel[open], #whatsapp-form[aria-busy="true"]) { overflow-anchor: none; }
html:has(.booking-tunnel[open][data-reserve-scrollbar]) { scrollbar-gutter: stable; }

.booking-tunnel {
  position: fixed;
  inset: 0;
  inline-size: min(calc(100% - 24px), 710px);
  block-size: min(82svh, 760px);
  max-inline-size: none;
  max-block-size: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d2bb9050;
  border-radius: 16px;
  background: #101e2b;
  color: #f5f5f1;
  box-shadow: 0 22px 68px #0008;
}

.booking-tunnel::backdrop { background: #061019ad; }
.booking-tunnel:not([open]) { display: none; }

.booking-tunnel-close {
  position: absolute;
  z-index: 2;
  inset: 6px 10px auto auto;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid #d2bb9050;
  border-radius: 9px;
  color: #f3e3c3;
  background: #08131d;
  font: 400 1.4rem/1 var(--font-body);
  cursor: pointer;
}
.booking-tunnel-close:focus-visible { outline: 2px solid #d2bb90; outline-offset: 2px; }
.booking-tunnel-close:disabled { opacity: .6; cursor: not-allowed; }

.booking-tunnel > .booking-review {
  block-size: 100%;
  padding: clamp(12px, 2.7vw, 24px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #d2bb9077 transparent;
  scroll-padding-block: 16px;
  overflow-anchor: none;
}

.booking-review {
  --review-surface: #101e2b;
  --review-gold: var(--gold, #d2bb90);
  --review-muted: var(--muted, #b9c3ce);
  --review-line: var(--line, #d2bb9033);
  min-inline-size: 0;
}

.booking-review [hidden], .booking-review[hidden] { display: none !important; }
.booking-review h2, .booking-review h3, .booking-review p { margin: 0; }
.booking-review h2 { font-size: clamp(27px, 4.4vw, 42px); line-height: 1.06; }
.booking-review h3 { font-size: clamp(21px, 3vw, 26px); line-height: 1.15; }
.booking-review h2:focus { outline: none; }
.booking-review h2:focus-visible { outline: 2px solid var(--review-gold); outline-offset: 5px; }
.booking-review p { color: var(--review-muted); }
.booking-review-heading { display: grid; gap: 5px; margin-block-end: 11px; text-align: center; }
.booking-tunnel .booking-review-heading { padding-inline: 32px; }
.booking-review-heading > p:not(.booking-review-kicker) { font-size: .875rem; line-height: 1.4; }
.booking-review-heading .booking-review-kicker {
  color: var(--review-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-review-choices { min-inline-size: 0; margin: 0 0 12px; padding: 8px; border: 1px solid var(--review-line); border-radius: 12px; }
.booking-review-choices legend { padding-inline: 6px; color: var(--review-gold); font-weight: 700; }
.booking-review-choices [data-review-vehicle-options] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.booking-review-choices button, .booking-review-primary, .booking-review-secondary {
  min-block-size: 44px;
  padding: 8px 14px;
  border: 1px solid var(--review-line);
  border-radius: 8px;
  color: inherit;
  background: #08131d;
  font-weight: 600;
  cursor: pointer;
}
.booking-review-choices button:hover, .booking-review-secondary:hover { border-color: var(--review-gold); }
.booking-review-choices button {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 3px;
  padding: 0 0 6px;
  overflow: hidden;
  text-align: left;
}
.booking-review-choices button img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; }
.booking-review-choices button span { padding-inline: 8px; line-height: 1.22; overflow-wrap: anywhere; }
.booking-review-choices button small { padding-inline: 8px; color: var(--review-muted); font-size: .72rem; line-height: 1.2; }
.booking-review-choices button:focus-visible { outline: 2px solid var(--review-gold); outline-offset: 2px; }
.booking-review-choices button[aria-pressed="true"] {
  border-color: var(--review-gold);
  color: #f3e3c3;
  background: #2b2a26;
  box-shadow: inset 0 -2px var(--review-gold);
}
.booking-review button:disabled { opacity: .6; cursor: not-allowed; }
.booking-review [data-review-choice-status] { margin-block-start: 8px; font-size: .875rem; }
.booking-review [data-review-choice-status]:empty { display: none; }

.booking-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(34%, 190px));
  align-items: start;
  gap: clamp(8px, 3vw, 20px);
  padding: clamp(10px, 2.4vw, 16px);
  border: 1px solid var(--review-line);
  border-radius: 12px;
  background: #08131d;
}
.booking-review-points { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.booking-review-points li { display: grid; grid-template-columns: minmax(4rem, auto) minmax(0, 1fr); gap: 8px; }
.booking-review-points li :first-child, .booking-review-estimate dt { color: var(--review-muted); font-size: .85rem; }
.booking-review-points li :last-child { overflow-wrap: anywhere; }
.booking-review-summary > :last-child { border-inline-start: 1px solid var(--review-line); padding-inline-start: clamp(6px, 2vw, 16px); }
.booking-review-estimate { display: grid; gap: 8px; margin: 0; }
.booking-review-summary [data-review-estimate-status] { font-size: .8rem; overflow-wrap: anywhere; }
.booking-review-estimate dd { margin: 0; color: var(--review-gold); font-size: 1.15rem; font-weight: 700; }
.booking-review-estimate dd, .booking-review-receipt strong { font-variant-numeric: tabular-nums; }

.booking-review-map {
  display: grid;
  gap: 8px;
  margin-block-start: 12px;
  padding: clamp(10px, 2.4vw, 16px);
  border: 1px solid var(--review-line);
  border-radius: 12px;
  background: #08131d;
}
.booking-review-map p { font-size: .85rem; }
.booking-review-actions { display: flex; align-items: stretch; justify-content: center; gap: 8px; margin-block: 0 11px; }
.booking-review-actions > button { min-inline-size: 0; text-align: center; overflow-wrap: anywhere; }
.booking-review-map iframe {
  display: block;
  width: 100%;
  height: clamp(235px, 46vw, 342px);
  border: 0;
  border-radius: 8px;
}
.booking-review-primary { color: #08131d; background: var(--review-gold); }
.booking-review-primary:not(:disabled):hover { background: #e8d1a7; }
.booking-review .booking-review-error { margin-block-start: 14px; color: #ffb5a5; }

.booking-review-payment {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  margin: 0 0 16px;
  padding: clamp(12px, 2.7vw, 22px);
  border: 1px solid var(--review-line);
  border-radius: 12px;
  background: #08131d;
  scroll-margin-block-start: 8px;
}
.booking-review-payment legend { padding-inline: 6px; color: var(--review-gold); font-weight: 700; }
.booking-review-payment-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.booking-review-payment-total strong { color: var(--review-gold); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.booking-review-rate { font-size: .85rem; }
.booking-review-payment a { color: var(--review-gold); text-decoration: underline; text-underline-offset: 4px; }
.booking-review-billing { display: grid; gap: 6px; }
.booking-review-billing small { color: var(--review-muted); }
.booking-review-billing textarea {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 70px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--review-line);
  border-radius: 8px;
  background: var(--review-surface);
  color: inherit;
  font: inherit;
}
.booking-review-terms { display: flex; align-items: center; gap: 10px; min-block-size: 44px; cursor: pointer; }
.booking-review-terms input { accent-color: var(--review-gold); inline-size: 20px; block-size: 20px; flex: none; }
.booking-review-payment :is(a, textarea, input, button):focus-visible { outline: 2px solid var(--review-gold); outline-offset: 3px; }
.booking-review-payment .booking-review-error { margin: 0; }
.booking-review .booking-review-payment-notice { margin-block: 0 12px; text-align: center; }
.booking-review-payment-conflict { margin-block: 0 12px; text-align: center; }
.booking-review-payment-conflict a { display: inline-flex; align-items: center; min-block-size: 44px; }
.booking-review .booking-review-indicative {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .65rem;
  margin-block: 0 .4rem;
  text-align: center;
}
.booking-review-indicative strong { color: var(--review-gold); font-variant-numeric: tabular-nums; }
.booking-review-selection > .booking-review-error { margin-block: 0 12px; text-align: center; }

.booking-review-receipt {
  display: grid;
  justify-items: center;
  margin: 0 0 16px;
  padding: 0 16px 16px;
  border: 1px solid var(--review-line);
  border-radius: 12px;
  text-align: center;
}
.booking-review-receipt strong { color: var(--review-gold); overflow-wrap: anywhere; }
.booking-review-compass {
  width: min(100%, 220px);
  --dl-compass-size: 220px;
}
.booking-review-compass driver-footer-compass {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  mix-blend-mode: screen;
}
.booking-review-compass driver-footer-compass > img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46%;
  height: 46%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

@media (max-width: 550px) {
  .booking-review-choice-actions {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    padding-block: 4px;
    margin-block-end: 8px;
    border-radius: 8px;
    background: var(--review-surface);
  }
  .booking-review:has([data-review-payment-conflict]:not([hidden])) .booking-review-choice-actions {
    position: static;
  }
  .booking-review-choice-actions .booking-review-actions { margin-block-end: 0; }
  .booking-review-choice-actions .booking-review-indicative { margin-block: 4px 0; font-size: .85rem; }
  .booking-review-choices [data-review-vehicle-options] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-review-choices button { scroll-margin-block-start: 86px; }
  .booking-review-choices button span { font-size: .8rem; }
  .booking-review-points li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .booking-review-estimate dt { font-size: .75rem; }
  .booking-review-estimate dd { font-size: 1rem; }
  .booking-review-actions > button { flex: 1 1 0; padding-inline: 6px; font-size: .825rem; }
}
