/* ===== booking panel ===== */
/* Easy Ride booking panel, in the bright design. Everything the plugin renders lives under .er.
   Colours and type read the theme's tokens (--red, --blue, --ink, --ff-sans ...); every one has a
   fallback, so the card looks right on any page. The layout follows the card's own width (a
   container query), so the same card is a two-row search bar in a wide hero and a column on a
   phone or in a narrow slot. A wrapper may set the --er-* card properties (pad, surface, border,
   radius, shadow) to sit the panel inside its own card. */

.er {
  --er-red: var(--red, #E3170A);
  --er-red-deep: var(--red-deep, #B8120A);
  --er-red-ink: var(--red-ink, #A3120A);
  --er-red-tint: var(--red-tint, #FDE9E7);
  --er-blue: var(--blue, #0B63CE);
  --er-sky: var(--sky, #CFE6FB);
  --er-ink: var(--ink, #0B1B3F);
  --er-ink-2: var(--ink-2, #2B3A57);
  --er-muted: var(--muted, #56627A);
  --er-soft: var(--soft, #EEF4FB);
  --er-paper: #F5F9FE;
  --er-tint: #E8F2FD;
  --er-line: var(--line, #D9E2EE);
  --er-line-2: var(--line-2, #C3CFDF);
  --er-wa: var(--wa, #0E7A3F);
  --er-wa-deep: var(--wa-deep, #0B6534);
  --er-ok-tint: var(--ok-tint, #E6F4EC);
  --er-sans: var(--ff-sans, "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif);
  --er-r: 6px;
  --er-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
  /* the photo stage behind each car, a soft sky */
  --er-stage: linear-gradient(180deg, #EEF6FF 0%, #E1EEFC 64%, #D3E4F7 73%, #E6F0FB 100%);

  --er-gap: 10px;
  --er-field-h: 60px;
  --er-place-h: 60px;
  --er-side: 40px;
  --er-placeholder: #6A7790;
  --er-focus: var(--focus, #0B63CE);

  container: er / inline-size;
  display: grid; gap: 14px; margin: 0; text-align: left;
  padding: var(--er-pad, 0 0 36px);
  background: var(--er-surface, #fff);
  border: var(--er-border, 0);
  border-radius: var(--er-radius, 6px);
  box-shadow: var(--er-shadow, 0 30px 60px -30px rgba(11, 27, 63, .65));
  font-family: var(--er-sans); color: var(--er-ink); font-size: 16px; line-height: 1.4;
}
.er *, .er *::before, .er *::after { box-sizing: border-box; }
.er [hidden] { display: none; }
.er p { margin: 0; }
.er > * { margin-inline: var(--er-side); }
.er > .er__tabs { margin-inline: 0; }
.er__step { display: grid; gap: var(--er-gap); }
.er > *, .er__step > *, .er__row > * { min-width: 0; }
.er__sr { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.er__h { margin: 0; font: 800 22px/1.2 var(--er-sans); color: var(--er-ink); }
.er__h:focus { outline: 0; }

/* trip type: two radios dressed as tabs across the top of the card (step 1 only) */
.er__tabs {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-width: 0;
  margin: 0; padding: 0; border: 0; border-radius: var(--er-radius, 6px) var(--er-radius, 6px) 0 0; overflow: hidden;
}
.er__tabs + .er__step { margin-top: 18px; }
.er__tabs label {
  position: relative; display: grid; place-items: center; min-height: 46px; padding: 0 12px;
  background: var(--er-sky); color: var(--er-ink); font: 600 16px/1.2 var(--er-sans); cursor: pointer;
  transition: background-color .2s var(--er-ease);
}
.er__tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.er__tabs label:has(:checked) { min-height: 56px; background: #fff; }
.er__tabs label:hover:not(:has(:checked)) { background: #BCDBF8; }
.er__tabs label:has(:focus-visible) { outline: 3px solid var(--er-blue); outline-offset: -3px; }

/* progress and the call link, in place of the trip tabs from step 2 on */
.er__top { display: flex; align-items: center; gap: 16px; padding-top: 26px; }
.er[data-at="1"] .er__top, .er:not([data-at="1"]) .er__tabs { display: none; }
.er__steps { display: flex; flex: 1; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.er__steps li { display: flex; flex: 1; align-items: center; gap: 10px; color: var(--er-muted); font-size: 15px; font-weight: 600; white-space: nowrap; counter-increment: s; }
.er__steps li:last-child { flex: none; }
.er__steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--er-line-2); border-radius: 50%; font-size: 13px; }
.er__steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 16px; background: var(--er-line); }
/* done steps get a tick, the current one is filled in */
.er[data-at="2"] .er__steps li:nth-child(1), .er[data-at="3"] .er__steps li:nth-child(-n+2), .er[data-at="done"] .er__steps li,
.er[data-at="2"] .er__steps li:nth-child(2), .er[data-at="3"] .er__steps li:nth-child(3) { color: var(--er-ink); }
.er[data-at="2"] .er__steps li:nth-child(1)::before, .er[data-at="3"] .er__steps li:nth-child(-n+2)::before, .er[data-at="done"] .er__steps li::before {
  content: "\2713"; border-color: var(--er-wa); background: var(--er-wa); color: #fff;
}
.er[data-at="2"] .er__steps li:nth-child(2)::before, .er[data-at="3"] .er__steps li:nth-child(3)::before { border-color: var(--er-blue); background: var(--er-blue); color: #fff; }
.er__call { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--er-muted); font-size: 15px; text-decoration: none; white-space: nowrap; }
.er__call b { color: var(--er-ink); }
.er__call:hover b { color: var(--er-blue); text-decoration: underline; }

/* fields: a box with a 13.5px label over an 18px value */
.er__f {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: var(--er-field-h); padding: 8px 14px; margin: 0;
  background: #fff; border: 1px solid var(--er-line-2); border-radius: var(--er-r);
  transition: border-color .2s var(--er-ease), box-shadow .2s var(--er-ease);
  cursor: text;
}
.er__f:hover { border-color: #9FB0C8; }
.er__f:focus-within { z-index: 3; border-color: var(--er-blue); box-shadow: 0 0 0 3px var(--er-focus); }
/* the swap button sits inside the drop-off box: focusing it does not light the box up */
.er__f:has(.er__swap:focus) { z-index: auto; border-color: var(--er-line-2); box-shadow: none; }
/* a box the error line points at */
.er__f:has([aria-invalid="true"]) { border-color: var(--er-red-ink); box-shadow: 0 0 0 1px var(--er-red-ink); }
.er__f:has([aria-invalid="true"]):focus-within { box-shadow: 0 0 0 1px var(--er-red-ink), 0 0 0 4px rgba(163, 18, 10, .2); }
.er__f > span, .er__f > label span, .er__extras legend, .er__needs legend {
  font: 600 13.5px/1.2 var(--er-sans); color: var(--er-muted);
}
.er__f input, .er__f select, .er__f textarea {
  width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: 500 18px/1.3 var(--er-sans); color: var(--er-ink);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.er__f input::placeholder, .er__f textarea::placeholder { color: var(--er-placeholder); opacity: 1; font-weight: 400; }
.er__f input[type="date"], .er__f input[type="time"] { height: 23px; }
.er__f input::-webkit-date-and-time-value { text-align: left; }
.er__f input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; margin-left: 2px; padding: 0; width: 15px; }
.er__f select {
  cursor: pointer; padding-right: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232B3A57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat;
}
.er__f textarea { min-height: 72px; resize: vertical; font-size: 17px; }
.er__count { padding-block: 5px; cursor: default; }
.er__count > label { display: flex; }   /* the label line as tall as the other boxes' */
.er__count-row { display: flex; align-items: center; gap: 6px; }
.er__f.er__count input { flex: 1; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.er__count input::-webkit-inner-spin-button, .er__count input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.er__count button {
  position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--er-line-2); border-radius: 50%; background: #fff;
  font: 500 20px/1 var(--er-sans); color: var(--er-blue); cursor: pointer;
}
.er__count button::after { content: ""; position: absolute; inset: -7px; }   /* a 44px target */
.er__count button:hover:not([aria-disabled="true"]) { border-color: var(--er-blue); background: var(--er-soft); }
.er__count button:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 1px; }
.er__count button[aria-disabled="true"] { opacity: .4; cursor: default; }
.er__f:has(textarea) { justify-content: flex-start; }
.er__fw { display: grid; align-content: start; min-width: 0; }
.er__hint { margin: 5px 2px 0; font-size: 14px; line-height: 1.4; color: var(--er-muted); }

/* pick-up and drop-off: two boxes joined by a dotted route line. The input fills the whole box,
   so a tap anywhere on it focuses the field; the label sits in its top padding. */
.er__f--place { display: block; height: var(--er-place-h); min-height: 0; padding: 0; }
.er__f--place > label { position: absolute; left: 46px; top: 9px; right: 60px; z-index: 2; pointer-events: none; }
.er__f--place input {
  position: absolute; inset: 0; height: 100%;
  padding: 27px 60px 7px 46px; border-radius: inherit; cursor: text;
}
.er__pin { position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; z-index: 2; pointer-events: none; }
.er__pin--from { border: 3px solid var(--er-ink); border-radius: 50%; background: #fff; }
.er__pin--to { background: var(--er-red); border-radius: 3px; box-shadow: 0 0 0 3px var(--er-red-tint); }
.er__f--place + .er__f--place .er__pin--to::before {
  content: ""; position: absolute; left: 5px; bottom: calc(100% + 5px);
  height: calc(var(--er-place-h) + var(--er-gap) - 22px); border-left: 2px dotted var(--er-line-2);
}

/* swap: a round button on the edge where the two boxes meet, so it adds no height */
.er__swap {
  position: absolute; z-index: 2; right: 12px; top: calc(var(--er-gap) / -2 - 22px);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--er-line-2); border-radius: 50%; background: #fff; color: var(--er-blue);
  box-shadow: 0 2px 8px -2px rgba(11, 27, 63, .25); cursor: pointer;
  transition: border-color .2s var(--er-ease), background-color .2s var(--er-ease);
}
.er__swap svg { width: 20px; height: 20px; }
.er__swap:hover { border-color: var(--er-blue); background: var(--er-tint); }
.er__swap:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 2px; }

/* address suggestions: a solid list above everything after it, a heading per kind of place */
.er__list {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--er-line); border-radius: var(--er-r);
  box-shadow: 0 24px 50px -20px rgba(11, 27, 63, .45), 0 4px 12px -4px rgba(11, 27, 63, .14);
}
.er__list li {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 12px 8px 10px; border-radius: var(--er-r);
  font-size: 16px; color: var(--er-ink); cursor: pointer;
}
.er__list li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.er__list b { font-weight: 600; line-height: 1.3; }
.er__list small { font-size: 13.5px; line-height: 1.35; color: var(--er-muted); }
.er__ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--er-soft); color: var(--er-blue);
}
.er__ico svg { width: 17px; height: 17px; }
.er__list li:hover { background: var(--er-paper); }
.er__list li[aria-selected="true"] { background: var(--er-soft); box-shadow: inset 3px 0 0 var(--er-blue); }
.er__list li[aria-selected="true"] .er__ico { background: #fff; }
.er__list .er__grp { min-height: 0; padding: 10px 10px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--er-muted); cursor: default; }
.er__list .er__hint { min-height: 0; margin: 0; padding: 12px; font-size: 14.5px; cursor: default; }
.er__list .er__grp:hover, .er__list .er__hint:hover { background: none; }

/* rows */
.er__row { display: grid; gap: var(--er-gap); }
.er__row--4 { grid-template-columns: 1.3fr 1.1fr .8fr .95fr; }
.er__row .er__f { padding-inline: 12px; }
.er__row--2 { grid-template-columns: 1fr 1fr; }

/* the one red action */
.er__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; margin-top: 4px; padding: 0 20px;
  border: 0; border-radius: var(--er-r); background: var(--er-red); color: #fff;
  font: 800 18px/1.1 var(--er-sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--er-ease), transform .2s var(--er-ease);
}
.er__go span { transition: transform .25s var(--er-ease); }
.er__go:hover { background: var(--er-red-deep); }
.er__go:hover span { transform: translateX(4px); }
.er__go:active { transform: translateY(1px); }
.er__go:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 3px; }
.er__go[disabled] { opacity: .7; cursor: progress; }
.er__go--pay svg { width: 20px; height: 20px; flex: none; }
.er__legal { font-size: 14px; line-height: 1.45; text-align: center; color: var(--er-muted); }
.er__legal a { color: inherit; font-weight: 600; }

/* the other ways in: WhatsApp and call, never red */
.er__wa {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--er-wa); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.er__wa:hover { color: var(--er-wa-deep); }
.er__wa svg, .er__btn svg { width: 20px; height: 20px; flex: none; }
.er__fb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.er__btn {
  flex: 1 1 190px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border: 2px solid var(--er-blue); border-radius: var(--er-r);
  background: #fff; color: var(--er-blue); font: 700 16px/1.15 var(--er-sans); text-align: center; text-decoration: none;
  transition: background-color .2s var(--er-ease), color .2s var(--er-ease);
}
.er__btn:hover { background: var(--er-blue); color: #fff; }
.er__btn--wa { border-color: var(--er-red); background: var(--er-red); color: #fff; }
.er__btn--wa:hover { border-color: var(--er-red-deep); background: var(--er-red-deep); }
/* beats a theme's ".prose a" when the panel sits inside page content */
.er a.er__go, .er a.er__btn--wa { color: #fff; text-decoration: none; }
.er a.er__btn { text-decoration: none; }

/* error line, under the boxes at fault */
.er .er__err {
  position: relative; grid-column: 1 / -1; margin: 0; padding: 11px 14px 11px 42px;
  background: var(--er-red-tint); color: var(--er-red-ink); border-radius: var(--er-r);
  font-size: 15px; font-weight: 600; line-height: 1.45;
}
.er__err::before {
  content: "!"; position: absolute; left: 13px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--er-red-ink); color: #fff; font: 700 13px/1 var(--er-sans);
}
.er__err .er__btn { font-size: 15px; }

/* notices: short notice in step 1, the route notes in step 2 */
.er__note, .er__notice {
  grid-column: 1 / -1; padding: 11px 14px; border-radius: var(--er-r);
  background: var(--er-tint); box-shadow: inset 3px 0 0 var(--er-blue); color: var(--er-ink-2); font-size: 15px; line-height: 1.5;
}
.er__note a, .er__notice a { color: var(--er-blue); font-weight: 700; white-space: nowrap; }
.er__note b { color: var(--er-ink); }

/* step 2: route summary */
.er__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: -8px 0 -6px -6px; padding: 0 12px 0 6px; border: 0; border-radius: var(--er-r);
  background: none; font: 600 15px/1 var(--er-sans); color: var(--er-blue); cursor: pointer;
}
.er__back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.er__back:hover { background: var(--er-paper); }
.er__back:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 1px; }
.er__route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 700 19px/1.25 var(--er-sans); }
.er__arrow { position: relative; width: 34px; height: 12px; }
.er__arrow::before { content: ""; position: absolute; left: 0; right: 6px; top: 5px; border-top: 2px dotted var(--er-line-2); }
.er__arrow::after { content: ""; position: absolute; right: 0; top: 2px; width: 8px; height: 8px; border-radius: 2px; background: var(--er-red); }
.er__meta { margin-top: -4px; font-size: 15px; color: var(--er-muted); }

/* step 2: what every booking includes, the suitcase counter and the return link */
.er__inc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--er-ink-2); }
.er__inc li { display: flex; align-items: center; gap: 7px; }
.er__inc li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--er-wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.er__link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--er-blue);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
a.er__link { display: inline-flex; align-items: center; min-height: 44px; }
.er__link:hover { color: var(--er-ink); }
.er__link:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 2px; border-radius: 2px; }
.er__bags { display: flex; align-items: center; gap: 10px; }
.er__bags > span { margin-right: auto; font-weight: 700; font-size: 16px; }
.er__bags small { font-weight: 400; font-size: 13.5px; color: var(--er-muted); }
.er__bags button {
  width: 44px; height: 44px; border: 1px solid var(--er-line-2); border-radius: var(--er-r); background: #fff;
  font: 600 22px/1 var(--er-sans); color: var(--er-ink); cursor: pointer;
}
.er__bags button:hover { border-color: var(--er-blue); }
.er__bags button:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 1px; }
.er__bags output { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }

/* step 2: car cards on a soft sky stage */
.er__cars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--er-gap); }
.er__car {
  position: relative; display: flex; flex-direction: column; padding: 0; margin: 0; text-align: left;
  background: #fff; border: 1.5px solid var(--er-line); border-radius: var(--er-r); overflow: hidden;
  font: inherit; color: var(--er-ink); cursor: pointer;
  transition: border-color .2s var(--er-ease), box-shadow .2s var(--er-ease);
}
.er__car-img {
  position: relative; display: block; aspect-ratio: 16 / 9.5; overflow: hidden; isolation: isolate;
  background: var(--er-stage);
}
/* the car stands on the stage floor with a soft contact shadow, the same set as the fleet cards */
.er__car-img img {
  position: absolute; left: 8%; bottom: 16%; display: block; width: 84%; height: 68%;
  object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: multiply; transition: transform .5s var(--er-ease);
}
.er__car-img::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 11%; height: 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(11, 27, 63, .38), transparent);
}
.er__car:hover:not(:disabled) .er__car-img img, .er__car[aria-checked="true"] .er__car-img img { transform: translateX(3%) scale(1.04); }
.er__car-body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.er__car-body b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.er__car-body small { font-size: 13.5px; line-height: 1.35; color: var(--er-muted); }
.er__car-body .er__warn { color: var(--er-red-ink); font-weight: 600; }
.er__check {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1.5px solid var(--er-line-2);
}
.er__car:hover:not(:disabled) { border-color: #9FB0C8; }
.er__car[aria-checked="true"] { border-color: var(--er-blue); box-shadow: 0 0 0 3px rgba(11, 99, 206, .18); }
.er__car[aria-checked="true"] .er__check { background: var(--er-blue); border-color: var(--er-blue); }
.er__car[aria-checked="true"] .er__check::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.er__car:disabled { cursor: not-allowed; background: var(--er-paper); }
.er__car:disabled .er__car-img img { filter: grayscale(1); opacity: .45; }
.er__car:disabled .er__car-body b { color: var(--er-muted); }
.er__car:focus-visible { outline: 3px solid var(--er-blue); outline-offset: 2px; }

/* step 2: each car's price, pinned to the foot of the card, and what it includes.
   The hairline is painted 8px into the price's own top padding, so it lines up across a row. */
.er__car-body { flex: 1; display: flex; flex-direction: column; }
.er__price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 19px;
  background: linear-gradient(var(--er-line), var(--er-line)) left 8px / 100% 1px no-repeat;
}
.er__price b {
  margin: 0 -4px; padding: 0 4px; border-radius: 4px;
  font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--er-ink);
}
.er__car[aria-checked="true"] .er__price b { color: var(--er-blue); }
.er__flash { animation: er-flash .9s var(--er-ease); }
@keyframes er-flash { from { background-color: var(--er-sky); } to { background-color: transparent; } }
.er__incl {
  position: relative; padding: 11px 14px 11px 46px; border-radius: var(--er-r);
  background: var(--er-soft); color: var(--er-ink-2); font-size: 14.5px; line-height: 1.5; text-wrap: pretty;
}
.er__incl::before {
  content: "\00a3"; position: absolute; left: 13px; top: 10px; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--er-ink); color: #fff; font: 800 13px/1 var(--er-sans);
}
.er__xp { margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--er-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* tick boxes: extras in step 2, help needs in step 3 */
.er__extras, .er__needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.er__extras legend, .er__needs legend { padding: 0 0 8px; }
.er__extras label, .er__needs label {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px;
  border: 1px solid var(--er-line-2); border-radius: var(--er-r); background: #fff;
  font-size: 15.5px; font-weight: 500; line-height: 1.3; cursor: pointer;
}
.er__extras label:has(:checked), .er__needs label:has(:checked) { border-color: var(--er-blue); background: var(--er-tint); }
.er__extras label:has(:focus-visible), .er__needs label:has(:focus-visible) { outline: 3px solid var(--er-blue); outline-offset: 1px; }
.er__extras input, .er__needs input { width: 20px; height: 20px; margin: 0; accent-color: var(--er-blue); flex: none; }

/* step 3: summary, the optional note and help, and the spam trap */
.er__sum {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--er-r);
  background: var(--er-soft); box-shadow: inset 3px 0 0 var(--er-blue);
}
.er__sum b { margin-bottom: 2px; font-size: 18px; font-weight: 800; }
.er__sum span { font-size: 15px; color: var(--er-ink-2); }
/* the bill: the price before VAT, any extras and VAT on their own lines, then the total, as on Stripe's page */
.er__bill { display: grid; gap: 4px; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--er-line-2); font-size: 15px; line-height: 1.4; }
.er__bill > div { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.er__bill dt { flex: none; color: var(--er-muted); }
.er__bill dd { margin: 0; min-width: 0; text-align: right; color: var(--er-ink-2); overflow-wrap: anywhere; }
.er__bill-n dt { flex: 1; color: var(--er-ink-2); }
.er__bill-n dd, .er__bill-t dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.er__bill .er__bill-t { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--er-line-2); }
.er__bill-t dt, .er__bill-t dd { font-size: 18px; font-weight: 800; color: var(--er-ink); }
.er__more { border: 1px solid var(--er-line); border-radius: var(--er-r); background: var(--er-paper); }
.er__more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px;
  font-weight: 700; line-height: 1.3; color: var(--er-blue); cursor: pointer; list-style: none;
}
.er__more summary::-webkit-details-marker { display: none; }
.er__more summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--er-ease); }
.er__more[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.er__more summary:focus-visible { outline: 3px solid var(--er-blue); outline-offset: -3px; border-radius: var(--er-r); }
.er__more > .er__f { margin: 0 14px 12px; }
.er__more > .er__needs { margin: 0 14px 14px; }
.er__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* done */
.er__done { display: grid; justify-items: center; gap: 12px; padding: 8px 0 4px; text-align: center; }
.er__tick { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--er-ok-tint); box-shadow: 0 0 0 8px rgba(14, 122, 63, .06); }
.er__tick::after {
  content: ""; position: absolute; left: 24px; top: 15px; width: 14px; height: 27px;
  border: solid var(--er-wa); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.er__done .er__h { margin-top: 4px; font-size: 28px; }
.er__ref { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--er-soft); font-weight: 800; letter-spacing: .08em; color: var(--er-ink); }
.er__done > p { max-width: 460px; font-size: 16px; color: var(--er-ink-2); }
.er__done > .er__lead { font-weight: 700; color: var(--er-ink); }
.er__next { display: grid; gap: 8px; max-width: 460px; margin: 0; padding: 0; list-style: none; counter-reset: next; text-align: left; }
.er__next li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--er-ink-2); counter-increment: next; }
.er__next li::before {
  content: counter(next); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--er-soft); color: var(--er-ink); font: 700 13px/1 var(--er-sans);
}
.er__done > .er__save { display: grid; gap: 2px; width: 100%; padding: 12px 16px; border-radius: var(--er-r); background: var(--er-ok-tint); color: var(--er-ink-2); }
.er__save b { color: var(--er-ink); }
.er__done .er__fb { justify-content: center; width: 100%; max-width: 560px; margin-top: 2px; }
.er__nb { white-space: nowrap; }
.er__done > .er__bill { width: 100%; max-width: 460px; margin: 0; padding: 12px 16px; border: 0; border-radius: var(--er-r); background: var(--er-soft); text-align: left; }
.er__done > .er__repay { width: 100%; max-width: 460px; }
.er__done > .er__err { width: 100%; max-width: 460px; text-align: left; }
/* Stripe has not confirmed yet: a quiet ring turning */
.er__wait { width: 56px; height: 56px; border: 5px solid var(--er-soft); border-top-color: var(--er-blue); border-radius: 50%; animation: er-spin 1s linear infinite; }
@keyframes er-spin { to { transform: rotate(360deg); } }

/* the card's width decides the layout */
@container er (min-width: 820px) {
  /* step 1 in two rows, like a search bar: from, to, people / date, time, (return), button */
  .er__step--1 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px 20px; }
  .er__step--1 > * { grid-column: 1 / -1; }
  .er__row--4, .er__return:not([hidden]) { display: contents; }
  .er__f--place:has([name="from"]) { grid-area: 1 / 1 / 2 / 5; }
  .er__f--place:has([name="to"]) { grid-area: 1 / 5 / 2 / 9; }
  .er__row--4 > :nth-child(3) { grid-area: 1 / 9 / 2 / 11; }
  .er__row--4 > :nth-child(4) { grid-area: 1 / 11 / 2 / 13; }
  .er__row--4 > :nth-child(1) { grid-area: 2 / 1 / 3 / 4; }
  .er__row--4 > :nth-child(2) { grid-area: 2 / 4 / 3 / 6; }
  .er__return > :nth-child(1) { grid-area: 2 / 6 / 3 / 8; }
  .er__return > :nth-child(2) { grid-area: 2 / 8 / 3 / 10; }
  .er__step--1 > .er__go { grid-area: 2 / 10 / 3 / 13; min-height: 60px; margin: 0; padding: 0 12px; }
  .er__step--1 > .er__legal { grid-area: 2 / 6 / 3 / 10; align-self: center; }
  .er__step--1:has(.er__return:not([hidden])) > .er__legal { grid-area: 3 / 1 / 4 / -1; }
  .er__pin--to::before { display: none; }
  /* side by side: the swap sits in the gap between the two boxes */
  .er__swap { top: 50%; right: auto; left: -32px; margin-top: -22px; }
  .er__swap svg { transform: rotate(90deg); }
  .er__f--place:has([name="from"]) input { padding-right: 30px; }
  .er__f--place:has([name="from"]) > label { right: 30px; }
  .er__cars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container er (max-width: 640px) {
  .er__call { display: none; }
  .er__steps, .er__steps li { gap: 6px; }
  .er__steps li { font-size: 13.5px; }
}
@container er (max-width: 380px) {
  .er__steps, .er__steps li { gap: 4px; }
  .er__steps li { font-size: 13px; }
  .er__steps li::before { width: 24px; height: 24px; font-size: 12px; }
  .er__steps li:not(:last-child)::after { min-width: 8px; }
}
@container er (max-width: 460px) {
  .er__row--4 { grid-template-columns: 1fr 1fr; }
  .er__step > .er__row--2:not(.er__return) { grid-template-columns: 1fr; }
  .er__h { font-size: 20px; }
  .er__route { font-size: 17px; }
  /* phones: the cars as a list, photo left, choice right */
  .er__cars { grid-template-columns: 1fr; }
  .er__car { display: grid; grid-template-columns: 104px 1fr 30px; align-items: center; column-gap: 12px; padding-right: 10px; }
  .er__car-img { aspect-ratio: auto; width: 100%; height: 100%; min-height: 80px; }
  .er__car-body { padding: 10px 0; }
  .er__price { margin-top: 3px; padding-top: 0; background: none; }
  .er__price b { font-size: 18px; }
  .er__check { position: relative; top: auto; right: auto; }
}
/* the narrowest phones: date and time sit side by side and still show the whole value */
@container er (max-width: 330px) {
  .er__row--4 .er__f { padding-inline: 10px; }
  .er__row--4 input { font-size: 16px; }
  /* a tap on the box opens the phone's picker: the little icon only takes room */
  .er__row--4 input::-webkit-calendar-picker-indicator { display: none; }
}
@media (max-width: 560px) {
  .er { --er-side: 16px; --er-gap: 8px; gap: 10px; padding: var(--er-pad, 0 0 18px); }
  .er__tabs + .er__step { margin-top: 14px; }
  .er__top { padding-top: 18px; }
  .er__go { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .er *, .er *::before, .er *::after { transition: none; animation: none; }
}

/* no lone word on the last line of messages */
.er__err, .er__done p, .er__legal, .er__note, .er__notice { text-wrap: pretty; }
/* ===== end booking panel ===== */
