/* The quote box on the modern layout. It follows the Trip booking card: a brand band holding the
   route, then a white sheet of rows for when and who, then the button. This file covers the card
   and the parts the shared quote scripts render inside it, the date control, the people stepper,
   the inline stops and the state classes they toggle. */

/* No !important here. The shared script shows and hides things with inline styles, and an
   important rule would beat them and leave elements stuck out of sight */
.site .hide { display: none; }
.site .glyphicon-blank { visibility: hidden; }

/* The card starts at one height so the hero keeps its shape, and grows when a return date or a
   stop needs more room, because a customer has to see both dates without scrolling inside the card.
   The forms themselves stay block, because the shared script shows them with an inline display, so
   the layout lives on the wrapper inside each one */
:where(.site) .book { --book-h: min(660px, calc(100vh - 150px)); display: flex; flex-direction: column; min-height: max(480px, var(--book-h)); }
.book #booking-engine { flex: 1 1 auto; min-height: 0; }
.book #booking-engine > form { height: 100%; }
.book form.hide { display: none; }
.book .form-in { display: flex; flex-direction: column; height: 100%; padding-bottom: 16px; }
.book .booking-engine-box { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.book .band { flex: 0 0 auto; }
.book .sheet { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.book .form-in > .go,
.book .form-in > .fine,
.book .modes,
.book .book-note { flex: 0 0 auto; }
.book .book-note { margin: 14px 22px 0; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.book .book-note.error { background: #FDE8E8; color: #8A1F1F; }
.book .book-note.success { background: var(--save-bg); color: var(--save-ink); }

/* Band. The darker brand blue, because white text on the lighter one fails contrast */
.book .band { background: var(--blue-d); color: #fff; border-radius: 18px 18px 0 0; padding: 18px 22px 14px; }
.book .book-note ~ #booking-engine .band { border-radius: 0; margin-top: 14px; }
.book .band-t {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: #fff;
}
.book .route { position: relative; display: grid; gap: 10px; }
.book .band .fl { margin-bottom: 5px; color: #fff; letter-spacing: .05em; }
.book .band .fi {
  display: block;
  /* the colour only, because a background shorthand resets the repeat and position the shared
     autocomplete spinner relies on, and tiles it across the field */
  background-color: var(--surface);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(6, 26, 44, .14);
}
.book .band .fi::placeholder { color: var(--ink3); font-weight: 500; }
/* The search spinner, once, at the right of the field and clear of the swap button */
.book .band .fi.tc-autocomplete-searching { background-repeat: no-repeat; background-position: right 16px center; background-size: 21px 16px; }
.book .band .fi:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
/* Room for the swap button, which sits over the right end of both fields */
.book .route > .fld > .fi { padding-right: 52px; }

/* Use my location sits on the pickup's label row as a link, with a tap area taller than it looks */
.book .fld { position: relative; }
.book .loc {
  position: absolute;
  top: -10px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 9px 0 9px 10px;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-d);
  cursor: pointer;
}
.book .band .loc { color: #fff; }
.book .loc svg { width: 15px; height: 15px; flex: none; }
.book .loc:hover .loc-t { text-decoration: underline; }
.book .loc:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 6px; }
.book .loc:disabled { cursor: default; opacity: .8; }
.book .loc.busy svg { animation: loc-spin 1s linear infinite; }
@keyframes loc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .book .loc.busy svg { animation: none; } }
.book .loc-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.book .band .loc-note { color: #fff; }
/* clear of the swap button, which sits over the right end of the pickup and destination */
.book .route > .fld > .loc-note { padding-right: 52px; }
.book .loc-note[hidden] { display: none; }

/* Swap sits on the join between pickup and destination. While stops are open the join moves, so
   it steps aside until they close */
.book .swap {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--blue-d);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue-d);
  cursor: pointer;
}
.book .swap svg { width: 18px; height: 18px; }
.book .swap:hover { background: var(--blue-xl); }
.book .route.has-stops .swap { display: none; }

/* Stops. Each one is a field in the route, added and removed in place */
.book .fld-row { display: flex; align-items: center; gap: 6px; }
.book .fld-row .fi { flex: 1 1 auto; min-width: 0; }
/* From three stops the list scrolls, so a long journey cannot push the rest of the card away */
.book .vias { display: grid; gap: 10px; }
.book .vias[hidden] { display: none; }
.book .vias.many { max-height: 220px; overflow-y: auto; }
.book .via-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.book .via-remove:hover { background: rgba(255, 255, 255, .3); }
.book .add-via {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px auto 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}
.book .add-via span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 16px;
  line-height: 1;
}
.book .add-via:hover .add-via-t { text-decoration: underline; }
.book .add-via .add-via-t { white-space: nowrap; }

/* Place suggestions. The shared script appends the list to the body, outside the card, so it
   carries the site's tokens itself and is restyled here in the site's type. Its stylesheet sets the
   heading colour with !important, which text-fill-color paints over without another !important */
.tpc-modern .tc-autocomplete-suggestions {
  z-index: 950;
  min-width: 260px;
  max-width: calc(100vw - 24px);
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--lift);
  font-family: var(--fb);
  color: var(--ink);
}
.tpc-modern .tc-autocomplete-suggestions li {
  padding: 10px 14px;
  border-top: 1px solid var(--line2);
  line-height: 1.35;
  font-size: 14.5px;
}
.tpc-modern .tc-autocomplete-suggestions li:hover,
.tpc-modern .tc-autocomplete-suggestions li.selected { background: var(--blue-xl); -webkit-text-fill-color: var(--ink); }
.tpc-modern .tc-autocomplete-suggestions li.tc-autocomplete-title,
.tpc-modern .tc-autocomplete-suggestions:hover li.tc-autocomplete-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 6px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--ink3);
}
.tpc-modern .tc-autocomplete-suggestions li:first-child { border-top: 0; }
/* A search that finds nothing still adds the list with no rows, which would show as a bare line */
.tpc-modern .tc-autocomplete-suggestions:empty { display: none; }
.tpc-modern .tc-autocomplete-suggestions li.tc-autocomplete-title .tc-google-logo { float: none; margin: 0; transform: scale(.85); transform-origin: right center; }
.tpc-modern .tc-autocomplete-suggestions li .text-block1 { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tpc-modern .tc-autocomplete-suggestions li .text-block2 { font-size: 14px; color: var(--ink2); }
.tpc-modern .tc-autocomplete-suggestions li span { font-size: 13px; color: var(--ink3); }

/* Sheet. Plain rows on white, each a label on the left and its control on the right */
.book .sheet { padding: 2px 22px 0; }
.book .trip-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.book .trip-tab {
  margin-bottom: -1px;
  padding: 13px 6px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink2);
}
.book .trip-tab:hover:not(.on) { color: var(--blue-d); }
.book .trip-tab.on { color: var(--ink); border-bottom-color: var(--blue); cursor: default; }
.book .line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}
.book .line-l { font-weight: 700; font-size: 15px; color: var(--ink); }
.book .line .box { border: 0; border-radius: 0; padding: 0; }

/* Ride now and Schedule belong to this page, and the script behind them clicks the hidden ASAP
   control that the shared quote script binds to */
.book .seg { display: inline-grid; grid-template-columns: auto auto; gap: 2px; margin: 0; padding: 3px; border-radius: 999px; background: var(--line2); }
.book .seg button { padding: 6px 13px; border-radius: 999px; font-size: 13.5px; }
.book .seg .seg-btn.on { cursor: default; }

/* Each date is one row, its label on the left and the date on the right, as Trip lays them out */
.book .box.when { border: 0; border-radius: 0; padding: 0; border-bottom: 1px solid var(--line); }
.book .when-now { display: none; margin: 0; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
/* Ride now only exists on the one way form, so its state must not reach the other two */
.book.is-now #mileage-form .when-now { display: block; }
.book.is-now #mileage-form .trip-tabs { display: none; }
.book .field.asap { display: none; }

/* Return. The tabs drive the hidden toggle, and the row only shows once a return is added */
.book .toggle-return { display: none; }
.book .ret .line-ret,
.book .ret .box.when { display: none; }
.book.has-return .ret .line-ret,
.book.has-return .ret .box.when { display: flex; }
.book.has-return .ret .box.when { display: block; }
/* A label line folded into its date row */
.book .sheet .line.is-merged,
.book.has-return .ret .line-ret.is-merged { display: none; }

/* The shared date control stays in the page as the value the quote script reads, and the picker
   shows it as one line that opens a calendar, in the style of Trip's */
.book .tpc-datepicker { display: none; }
.book .when-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.book .when-pick-l { flex: 0 0 auto; font-weight: 700; }
.book .when-pick-v { flex: 1 1 auto; min-width: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.book .when-pick i { font-style: normal; font-size: 22px; line-height: 1; color: var(--ink3); }
.book .when-pick:hover .when-pick-v { color: var(--blue-d); }
.book .when-pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.book .when-pick:disabled { opacity: .45; cursor: default; }
.book.is-now #mileage-form .field.outward .when-pick { display: none; }

/* The picker dialog. Centred on a wide screen, a sheet from the bottom on a phone */
html.wp-open { overflow: hidden; }
.wp-back {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 26, 44, .55);
}
.wp {
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--lift);
  font-family: var(--fb);
  color: var(--ink);
}
.wp-head { position: relative; padding: 16px 52px 10px; background: var(--blue); color: #fff; text-align: center; }
.wp-title { margin: 0; font-size: 17px; font-weight: 700; color: inherit; }
.wp-x {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.wp-x:hover { background: rgba(255, 255, 255, .15); }
.wp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); }
.wp-tab {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 0 9px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
}
.wp-tab.on { border-bottom-color: #fff; color: #fff; }
.wp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 6px; }
.wp-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wp-month-name { font-size: 16px; font-weight: 700; }
.wp-nav {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-xl);
  font-size: 24px;
  line-height: 1;
  color: var(--blue-d);
  cursor: pointer;
}
.wp-nav:disabled { opacity: .35; cursor: default; }
.wp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; text-align: center; }
.wp-dow { padding: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.wp-gap { height: 44px; }
.wp-day {
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.wp-day:hover:not(:disabled):not(.on) { background: var(--blue-xl); }
.wp-day.today { box-shadow: inset 0 0 0 2px var(--blue-xl); }
.wp-day.on { background: var(--blue); color: #fff; }
.wp-day:disabled { color: var(--ink3); opacity: .45; cursor: default; }
.wp-time { display: flex; justify-content: center; align-items: center; gap: 10px; }
.wp-time[hidden] { display: none; }
.wp-col {
  width: 84px;
  height: 232px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: 12px;
  background: var(--bg);
  padding: 4px;
}
.wp-col::-webkit-scrollbar { display: none; }
.wp-colon { font-size: 22px; font-weight: 700; color: var(--ink3); }
.wp-opt {
  display: block;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: none;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  cursor: pointer;
}
.wp-opt:hover:not(:disabled):not(.on) { background: var(--blue-xl); }
.wp-opt.on { background: var(--blue); color: #fff; }
.wp-opt:disabled { color: var(--ink3); opacity: .4; cursor: default; }
.wp-foot { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.wp-sum { font-size: 14px; font-weight: 600; color: var(--ink2); text-align: center; font-variant-numeric: tabular-nums; }
.wp-save {
  border: 0;
  border-radius: var(--br);
  padding: 13px 16px;
  background: var(--blue);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.wp-save:hover { background: var(--blue-d); }
.wp button:focus-visible { outline: 2px solid var(--blue-d); outline-offset: 2px; }
@media (max-width: 600px) {
  .wp-back { place-items: end stretch; padding: 0; }
  /* the visible height, so a phone's sliding address bar never covers the top of the sheet */
  .wp { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .wp-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* People and hours steppers, which the shared script wraps around the number field. Round
   outlined buttons either side of the count, as on Trip, in the brand blue */
.book .tpc-passenger-selector { display: flex; align-items: center; gap: 6px; }
.book .tpc-passenger-selector .add,
.book .tpc-passenger-selector .remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--blue-d);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue-d);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.book .tpc-passenger-selector .add:hover,
.book .tpc-passenger-selector .remove:hover { background: var(--blue-d); color: #fff; }
.book .tpc-passenger-selector .fi {
  width: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.book .tpc-passenger-selector.focus .fi { color: var(--blue-d); }

.book .form-in > .go { width: calc(100% - 44px); margin: 14px 22px 0; border: 0; }
.book .form-in > .fine { margin: 8px 22px 0; }

/* Complex journey. Priced by hand and emailed back, so it asks for contact details, laid out as
   the same boxed fields the rest of the site uses rather than a loose stack of inputs */
.book .adv-h { margin: 16px 0 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.book .adv-you { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book .adv-f { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.book .adv-f:focus-within { border-color: var(--blue); }
.book .adv-f .fl { margin-bottom: 3px; }
.book .adv-f .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.book .adv-wide { grid-column: 1 / -1; }
.book .adv-f textarea.fi { width: 100%; min-height: 62px; resize: vertical; font-family: inherit; font-weight: 500; line-height: 1.4; }

/* Other journey types are a quiet line under the card, because most visitors never need them */
.book .tabs.quote-modes {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.book .modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; padding: 0 22px 16px; margin-top: -4px; }
.book .mode-btn {
  padding: 3px 2px;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-d);
  cursor: pointer;
}
.book .mode-btn:hover:not(.on) { text-decoration: underline; }
.book .mode-btn.on { color: var(--ink3); cursor: default; }

@media (max-width: 600px) {
  .book .band { padding: 16px 16px 12px; border-radius: 16px 16px 0 0; }
  .book .sheet { padding: 2px 16px 0; }
  .book .form-in > .go { width: calc(100% - 32px); margin: 12px 16px 0; }
  .book .form-in > .fine { margin: 8px 16px 0; }
  .book .book-note { margin: 12px 16px 0; }
  /* A phone grows the card instead of scrolling inside it. A swipe that starts on a scrolling card
     moves the card, not the page, and on a phone the card fills most of the screen. The hero picture
     is a fixed band here, so it does not move as the card grows */
  :where(.site) .book { height: auto; min-height: 0; }
  .book .sheet { overflow: visible; }
  .book .modes { gap: 2px 12px; padding: 0 12px 14px; }
  .book .mode-btn { font-size: 13px; }
  .book .adv-you { grid-template-columns: 1fr; }
}

/* Results. The cards themselves are still the shared markup, this keeps them readable until
   the results page is rebuilt */
#booking-engine-results { padding: 24px 0 8px; }
#booking-engine-results .quote-loading { padding: 34px 0 30px; color: var(--ink2); text-align: center; }

/* The quote loader, matching the badge taxicode.com uses: a white cab on a blue disc with a
   darker sweep running round it. Drawn rather than the gif so it stays sharp and takes the
   theme blue, and so the wheels can be knocked out in the disc colour */
.tl { display: grid; justify-items: center; gap: 16px; }
.tl-badge { position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center; }
.tl-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(0, 0, 0, .22) 0 25%, transparent 25% 100%);
  animation: tl-sweep 1.05s linear infinite; }
.tl-cab { position: relative; width: 48px; height: 48px; }
.tl-cab-w { fill: #fff; }
.tl-cab-h { fill: var(--blue); }
.tl-msg { font-size: 15px; font-weight: 600; color: var(--ink2); }

@keyframes tl-sweep { to { transform: rotate(1turn) } }

/* Motion here is decoration, the text already says what is happening */
@media (prefers-reduced-motion: reduce) {
  .tl-badge::before { animation: none; }
}
/* A failed quote says so in a panel rather than a bare line of red text */
#booking-engine-results .quote-errors {
  margin: 4px 0 14px;
  padding: 13px 16px;
  border: 1px solid #F3C9C9;
  border-radius: var(--r);
  background: #FDF0F0;
  color: #8A1F1F;
  font-weight: 600;
}
#booking-engine-results .filter-box { padding-bottom: 10px; color: var(--ink2); }
/* The script lays these out by showing and hiding them, so they sit in normal flow */
#booking-engine-results .filter-box .fleft { float: left; }
#booking-engine-results .filter-box .fright { float: right; }
#booking-engine-results .clearfix::after { content: ""; display: table; clear: both; }


/* Results. The cards are the shared renderer's markup, so this maps its classes onto the
   prototype's fare card. Nothing here changes a script, which keeps the standard layout safe */
#booking-engine-results .quotes { margin-top: 4px; }
#booking-engine-results .quotes .inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}
#booking-engine-results .horizontal-filter { display: none; }
#booking-engine-results .quote-outer { min-width: 0; height: 100%; }

#booking-engine-results .quote {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* The price is a sibling of the details block, so it is placed rather than ordered */
#booking-engine-results .quote > .price {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
  text-decoration: none;
}
#booking-engine-results .quote > .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
/* Room for the price, which overlaps these two rows only */
#booking-engine-results .quote h3,
#booking-engine-results .quote .stars.results {
  padding-right: 96px;
}
#booking-engine-results .quote h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

#booking-engine-results .quote .stars.results { display: inline-flex; gap: 1px; }
#booking-engine-results .quote .stars.results > div { width: 14px; height: 14px; }
#booking-engine-results .quote .stars.results > div::before {
  content: "\2605";
  font-size: 14px;
  line-height: 1;
  color: var(--star);
}
#booking-engine-results .quote .stars.results > div.empty::before { color: #D3DCE2; }
#booking-engine-results .quote .stars.results > div.half::before {
  background: linear-gradient(90deg, var(--star) 50%, #D3DCE2 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#booking-engine-results .quote .view-reviews,
#booking-engine-results .quote .no-ratings {
  font-size: 13px;
  color: var(--ink3);
  text-decoration: none;
  cursor: pointer;
}
#booking-engine-results .quote .view-reviews:hover { color: var(--blue); }

#booking-engine-results .quote .vehicle-image {
  max-width: 100%;
  max-height: 74px;
  height: auto;
  object-fit: contain;
}
#booking-engine-results .quote .vehicle-selector { width: 100%; margin: 0; }
#booking-engine-results .quote select.vehicles {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--br);
  padding: 9px 11px;
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink);
}
/* A firm quoting one car has nothing to choose, so it reads as the car rather than a dropdown */
#booking-engine-results .quote select.vehicles:not(:has(option + option)) {
  -webkit-appearance: none;
  appearance: none;
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
  font-weight: 600;
}

#booking-engine-results .quote .actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Seats and luggage as chips. The shared template draws one briefcase for both sizes of luggage,
   so its images and the "x" go, and each chip draws its own icon, a suitcase for the medium cases
   and a backpack for the small ones */
#booking-engine-results .quote .quote-vehicle-extra-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink2);
}
#booking-engine-results .quote .extra-suitcase-container,
#booking-engine-results .quote .extra-suitcases-numbers { display: contents; }
#booking-engine-results .quote .passenger-img,
#booking-engine-results .quote .suitcase-img,
#booking-engine-results .quote .quote-vehicle-extra-inner span:not([class]),
#booking-engine-results .quote .suitcases-description { display: none; }
#booking-engine-results .quote .extra-passengers-container,
#booking-engine-results .quote .extra-big-suitcase,
#booking-engine-results .quote .extra-small_suitcase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--bg);
  white-space: nowrap;
}
#booking-engine-results .quote .extra-passengers-container::before,
#booking-engine-results .quote .extra-big-suitcase::before,
#booking-engine-results .quote .extra-small_suitcase::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: var(--ink3);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
#booking-engine-results .quote .extra-passengers-container { --icon: url("/imgs/compare-modern/passenger.svg"); }
#booking-engine-results .quote .extra-big-suitcase { --icon: url("/imgs/compare-modern/luggage-medium.svg"); }
#booking-engine-results .quote .extra-small_suitcase { --icon: url("/imgs/compare-modern/luggage-small.svg"); }
#booking-engine-results .quote .extra-big-suitcase::after { content: "medium"; }
#booking-engine-results .quote .extra-small_suitcase::after { content: "small"; }

#booking-engine-results .quote .book-now {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--br);
  padding: 11px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
#booking-engine-results .quote .book-now:hover { background: var(--blue-d); }
/* A company that cannot take the job yet says so instead of offering a button */
#booking-engine-results .quote .actions > span {
  display: inline-block;
  font-size: 12.5px;
  color: var(--save-ink);
  background: var(--save-bg);
  border-radius: 999px;
  padding: 4px 11px;
}

@media (max-width: 1100px) {
  #booking-engine-results .quotes .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #booking-engine-results .quotes .inner { grid-template-columns: 1fr; gap: 14px; }
  #booking-engine-results .quote > .price { font-size: 26px; }
}


/* Filters. The script appends its panel after the cards, so it is ordered back to the top and
   laid out as a bar rather than the sidebar the legacy layout expected */

#booking-engine-results .side-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 18px;
}
/* The bar reads as filters without being told so */
#booking-engine-results .side-filters .field.filter-header { display: none; }
#booking-engine-results .side-filters .field { display: flex; align-items: center; gap: 9px; min-width: 0; }
#booking-engine-results .side-filters h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
}
#booking-engine-results .side-filters .fields-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#booking-engine-results .side-filters select.styled {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
}
#booking-engine-results .side-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
#booking-engine-results .side-filters label:hover { border-color: var(--blue); color: var(--blue); }
#booking-engine-results .side-filters input[type="checkbox"] { accent-color: var(--blue); margin: 0; }
#booking-engine-results .side-filters .price-range-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
}
#booking-engine-results .side-filters .slider-range { width: 140px; }

/* Narrow enough and the bar scrolls sideways rather than stacking into a wall of controls */
@media (max-width: 860px) {
  #booking-engine-results .side-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #booking-engine-results .side-filters::-webkit-scrollbar { display: none; }
  #booking-engine-results .side-filters .field { flex: 0 0 auto; }
  /* The bar is a nowrap scroller here, so the count leads the row instead of sitting at the
     far end where it would only be seen after scrolling the whole bar */
  #booking-engine-results .side-filters .filter-box { flex: 0 0 auto; order: -1; margin-right: 4px; }
}


/* Route. A map of the driven line across the top of the card, then the end points with the distance
   and the driving time from the quote. Without a map it is the plain bar */
#booking-engine-results .route-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink2);
}
#booking-engine-results .rb-route { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
#booking-engine-results .rb-end { display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; }
#booking-engine-results .rb-end i {
  flex: 0 0 auto;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}
#booking-engine-results .rb-end i.a { background: var(--navy); }
#booking-engine-results .rb-end i.b { background: var(--blue); }
#booking-engine-results .rb-via { font-size: 13px; }
#booking-engine-results .rb-arrow { color: var(--ink3); }
#booking-engine-results .rb-dist { white-space: nowrap; }
#booking-engine-results .rb-dist b { color: var(--ink); }
/* With a map the card frames it as an inset picture with its own rounded corners, and the route
   reads beneath it, with the distance and the time as a quiet pill on the right */
#booking-engine-results .route-bar.has-map { padding: 10px 10px 12px; row-gap: 12px; }
#booking-engine-results .route-bar.has-map .rb-route { padding-left: 6px; }
#booking-engine-results .route-bar.has-map .rb-dist {
  margin-right: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-xl);
  color: var(--blue-d);
}
#booking-engine-results .route-bar.has-map .rb-dist b { color: var(--blue-d); }
#booking-engine-results .rb-map {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--blue-xl);
}
/* Wider screens lay the key over the top of the map, a white label for the route and another for
   the distance and time. The bottom corners stay clear for the Mapbox logo and attribution */
@media (min-width: 601px) {
  #booking-engine-results .route-bar.has-map { position: relative; display: block; padding: 10px; }
  #booking-engine-results .route-bar.has-map .rb-route,
  #booking-engine-results .route-bar.has-map .rb-dist {
    position: absolute;
    top: 22px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(11, 31, 42, .16);
  }
  #booking-engine-results .route-bar.has-map .rb-route { left: 22px; max-width: calc(100% - 300px); }
  #booking-engine-results .route-bar.has-map .rb-dist { right: 22px; margin: 0; color: var(--ink2); }
  #booking-engine-results .route-bar.has-map .rb-dist b { color: var(--ink); }
}
@media (max-width: 600px) {
  #booking-engine-results .route-bar { padding: 10px 12px; font-size: 13px; }
  #booking-engine-results .route-bar.has-map { padding: 8px 8px 10px; row-gap: 10px; }
  #booking-engine-results .rb-map { height: 180px; border-radius: 10px; }
}


/* Results header. The count says fares and companies separately, because one firm returns a
   fare per vehicle, so the card count and the company count are genuinely different numbers */
#booking-engine-results .res-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#booking-engine-results .res-h1 {
  margin: 0;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--ink);
}
#booking-engine-results .res-sub { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
#booking-engine-results .tpi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  text-decoration: none;
}
#booking-engine-results .tpi b { color: var(--ink); }
#booking-engine-results .tpi:hover { border-color: var(--blue); }
@media (max-width: 700px) {
  #booking-engine-results .res-h1 { font-size: 22px; }
  #booking-engine-results .res-sub { font-size: 14px; }
}


/* The live count sitting inside the bar, at the far end, away from the controls themselves */
#booking-engine-results .side-filters .filter-box {
  padding-bottom: 0;
  font-size: 13px;
  color: var(--ink3);
  white-space: nowrap;
}
#booking-engine-results .side-filters .filter-box .fleft,
#booking-engine-results .side-filters .filter-box .fright {
  float: none;
  display: inline;
}

/* Only while the bar wraps does the count get pushed to the far end */
@media (min-width: 861px) {
  #booking-engine-results .side-filters .filter-box { margin-left: auto; }
}


/* Shared popups, the reviews, a firm's number and the mobile filters. main.js builds them from the
   modal template, and the page places them inside .site where the colour tokens live */
.site .tpc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 26, 44, .55);
}
.site .tpc-modal .modal {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--lift);
  overflow: hidden;
}
.site .tpc-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line2);
}
.site .tpc-modal .modal-header h2 {
  order: -1;
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.site .tpc-modal .modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  color: var(--ink2);
  cursor: pointer;
}
.site .tpc-modal .modal-close:hover { background: var(--line2); color: var(--ink); }
.site .tpc-modal .modal-body { padding: 8px 20px 20px; overflow-y: auto; }
/* A firm with a star rating but no written reviews would otherwise open an empty box */
.site .tpc-modal .modal-body:not(:has(*))::before {
  content: "No written reviews for this company yet.";
  display: block;
  padding-top: 12px;
  color: var(--ink2);
}
.site .tpc-modal .review { padding: 14px 0; border-bottom: 1px solid var(--line2); }
.site .tpc-modal .review:last-child { border-bottom: 0; }
.site .tpc-modal .review .stars { display: inline-flex; gap: 1px; }
.site .tpc-modal .review .stars > div { width: 14px; height: 14px; }
.site .tpc-modal .review .stars > div::before { content: "\2605"; font-size: 14px; line-height: 1; color: var(--star); }
.site .tpc-modal .review .stars > div.empty::before { color: #D3DCE2; }
.site .tpc-modal .review .stars > div.half::before {
  background: linear-gradient(90deg, var(--star) 50%, #D3DCE2 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site .tpc-modal .review-comment { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.site .tpc-modal .review-details { margin-top: 4px; font-size: 12.5px; color: var(--ink3); }
.site .tpc-modal .telephone-number-modal { padding-top: 12px; color: var(--ink2); }
.site .tpc-modal .telephone-number-modal p + p { margin-top: 10px; }
.site .tpc-modal .telephone-number-modal a { font-family: var(--fd); font-size: 24px; font-weight: 800; color: var(--blue); }


/* Phone list view. On a narrow screen the fares become compact rows rather than tall cards, so
   several fit on the screen at once and comparing is a short scroll. The vehicle photo shrinks to
   a thumbnail beside the firm's name, and Book Now sits beside the select. A grid rather than
   wrapping flex, so the select always gets its own row however long the stars line is */
@media (max-width: 600px) {
  #booking-engine-results .quotes .inner { gap: 8px; }
  #booking-engine-results .quote { padding: 12px 14px; border-radius: 12px; box-shadow: none; }
  #booking-engine-results .quote > .price { top: 12px; right: 14px; font-size: 22px; }
  #booking-engine-results .quote > .inner {
    display: grid;
    grid-template-columns: 76px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
  }
  #booking-engine-results .quote .actions { display: contents; }
  /* The photo's wrapper is the template's only div without a class */
  #booking-engine-results .quote .inner > div:not([class]) {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-right: 2px;
  }
  #booking-engine-results .quote .vehicle-image { max-width: 76px; max-height: 44px; }
  #booking-engine-results .quote h3 { grid-column: 2 / -1; grid-row: 1; font-size: 15px; padding-right: 84px; }
  #booking-engine-results .quote .stars.results { grid-column: 2; grid-row: 2; padding-right: 0; }
  #booking-engine-results .quote .view-reviews { grid-column: 3 / -1; grid-row: 2; justify-self: start; }
  #booking-engine-results .quote .no-ratings { grid-column: 2 / -1; grid-row: 2; }
  #booking-engine-results .quote .vehicle-selector { grid-column: 1 / 4; grid-row: 3; min-width: 0; }
  #booking-engine-results .quote select.vehicles { padding: 8px 10px; font-size: 13px; }
  #booking-engine-results .quote .book-now,
  #booking-engine-results .quote .actions > span { grid-column: 4; grid-row: 3; width: auto; }
  #booking-engine-results .quote .book-now { padding: 9px 16px; font-size: 14px; }
  #booking-engine-results .quote .quote-vehicle-extra-inner { grid-column: 1 / -1; grid-row: 4; font-size: 12px; }
}


/* The upgrade offer that opens from Book Now. Its shell is the shared overlay template and its
   content is the React bundle's, so both are restyled here by class and neither file changes.
   The bundle's classes carry their component names, which is what these match on, so a rebuild
   that only changes the hash suffix still lands. Scoped to the modern body class, since the
   overlay sits outside .site */
.tpc-modern #upgrades_overlay { background: rgba(6, 26, 44, .55); overflow-y: auto; }
.tpc-modern #upgrades_overlay .upgrade_center {
  top: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.tpc-modern #upgrades_overlay .upgrades_popup {
  position: relative;
  display: block;
  width: min(440px, 100%);
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--lift);
  text-align: left;
  font-family: var(--fb);
  color: var(--ink);
}
.tpc-modern #upgrades_overlay.leaving .upgrades_popup > * { visibility: hidden; }
.tpc-modern #upgrades_overlay.leaving .upgrades_popup {
  min-height: 160px;
  background: var(--surface) url('/imgs/compare-modern/car.svg') center calc(50% - 22px) / 64px no-repeat;
}
.tpc-modern #upgrades_overlay.leaving .upgrades_popup::after {
  content: "Taking you to checkout";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 22px);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.tpc-modern #upgrades_overlay .close_upgrades_popup {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  float: none;
  margin: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink2);
  font-size: 0;
}
.tpc-modern #upgrades_overlay .close_upgrades_popup::before { content: "\00D7"; font-size: 22px; line-height: 1; font-weight: 400; }
.tpc-modern #upgrades_overlay .close_upgrades_popup:hover { background: var(--line2); color: var(--ink); }
.tpc-modern #upgrades_overlay .inner-padding { padding: 26px 24px 22px; }

.tpc-modern #upgrades_overlay [class*="styled__Body"] { text-align: left; }
.tpc-modern #upgrades_overlay [class*="styled__Title"] {
  height: auto;
  max-height: none;
  margin: 0 40px 6px 0;
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  text-align: left;
}
.tpc-modern #upgrades_overlay [class*="styled__Description"] {
  margin: 0 0 16px;
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink2);
  text-align: left;
}

/* The car leads, shown large, with its name and the extra it costs as a small chip beneath it */
.tpc-modern #upgrades_overlay [class*="styled__FeatureContent"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "img img" "name price";
  align-items: center;
  gap: 10px 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
}
.tpc-modern #upgrades_overlay [class*="styled__FeatureContent"] .arrow { display: none; }
.tpc-modern #upgrades_overlay [class*="styled__SpeechBubble"] {
  grid-area: price;
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-xl);
  color: var(--blue-d);
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tpc-modern #upgrades_overlay [class*="styled__SpeechBubble"]:hover { background: #D5ECF8; }
.tpc-modern #upgrades_overlay [class*="styled__SpeechBubble"] [class*="ClassIcon"] { display: none; }
/* The photos are 546 by 178, so 300 across is still sharp */
.tpc-modern #upgrades_overlay [class*="styled__VehicleImage"] { grid-area: img; margin: 0; text-align: center; }
.tpc-modern #upgrades_overlay [class*="styled__VehicleImage"] img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: none;
  margin: 0 auto;
}
.tpc-modern #upgrades_overlay [class*="styled__FeatureContent"] h3 {
  grid-area: name;
  margin: 0;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

/* What the upgrade gets, as ticked points in the body face */
.tpc-modern #upgrades_overlay [class*="FeaturesBulletListWrapper"] { margin: 0; padding: 0; text-align: left; }
.tpc-modern #upgrades_overlay [class*="FeaturesBulletListWrapper"] ul { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; padding: 0; }
.tpc-modern #upgrades_overlay [class*="FeaturesBulletListWrapper"] li {
  position: relative;
  display: block;
  list-style: none;
  margin: 0;
  padding-left: 27px;
  font-family: var(--fb);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink2);
  text-align: left;
}
.tpc-modern #upgrades_overlay [class*="FeaturesBulletListWrapper"] li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--blue-xl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008DD4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Upgrade is the page's primary button, and continue stays one tap away beneath it */
.tpc-modern #upgrades_overlay [class*="styled__Actions"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 12px 5px;
  margin: 0;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--ink3);
  text-align: center;
}
.tpc-modern #upgrades_overlay [class*="styled__UIButton"] {
  flex: 1 0 100%;
  display: block;
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--br);
  background: var(--blue);
  box-shadow: none;
  color: #fff;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tpc-modern #upgrades_overlay [class*="styled__UIButton"]:hover { background: var(--blue-d); }
.tpc-modern #upgrades_overlay [class*="styled__ContinueLink"] {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tpc-modern #upgrades_overlay [class*="styled__ContinueLink"]:hover { color: var(--blue); }
@media (max-width: 420px) {
  .tpc-modern #upgrades_overlay .upgrade_center { padding: 10px; }
  .tpc-modern #upgrades_overlay .inner-padding { padding: 22px 18px 18px; }
  .tpc-modern #upgrades_overlay [class*="styled__Title"] { font-size: 21px; }
}


/* Last on purpose. The shared script shows these with an inline style and never removes the
   hide class, so a rule of mine that sets display would pin them open on a page at rest. This
   loses to the inline style when the script shows them, and beats anything above it when not */
#booking-engine-results .hide { display: none; }
