/* =====================================================================
   London Chauffeur · booking
   Styles for the booking engine's parts: address suggestions, the London-time
   pickers, the hero bar fields, and the /book/ page. Tokens only.
   ===================================================================== */

.hidden { display: none !important; }

/* ---------- Hero bar: the engine's fields on dark glass ---------- */
.booker__modes button { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-5); border: 0; border-radius: 6px; background: transparent; color: var(--on-dark); font-size: var(--text-sm); font-weight: var(--w-semibold); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.booker__modes button[aria-selected="true"] { background: var(--white); color: var(--night); }
.booker__group { display: contents; }
.booker__field label { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); letter-spacing: 0.04em; color: var(--on-dark-2); cursor: pointer; }
.booker__field .control { position: relative; }
.booker__field .control :is(input, select) { width: 100%; min-width: 0; height: 28px; padding: 0; border: 0; background: transparent; color: var(--white); font-size: 16px; font-weight: var(--w-medium); color-scheme: dark; outline: none; }
.booker__field .control select option { color: var(--ink); }
.booker__field .control input::placeholder { color: rgba(244, 247, 245, 0.62); }
.booker__field .picker-trigger { min-height: 28px; padding: 0; color: var(--white); font-size: 16px; font-weight: var(--w-medium); }
.booker .schedule-note:not(.schedule-error) { display: none; }
.booker .schedule-note.schedule-error { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: #FFC9B8; }
.booker .location-popover { top: calc(100% + var(--space-3)); left: calc(var(--space-4) * -1); right: auto; width: min(420px, calc(100vw - 2 * var(--gutter))); }
.hero__noscript { padding: var(--space-4) var(--space-6); border-radius: var(--r-card); background: var(--white); color: var(--ink); }
@media (max-width: 560px) {
  .booker__modes button { flex: 1; justify-content: center; }
  .booker .location-popover { left: 0; width: 100%; }
}

/* ---------- Address suggestions (locations.js) ---------- */
.location-field { position: relative; }
.location-popover { position: absolute; left: 0; right: 0; top: calc(100% + var(--space-1)); z-index: var(--z-dropdown); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: var(--shadow-menu); text-align: left; }
.location-popover[hidden] { display: none; }
.location-popover [role="listbox"] { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.location-option { display: block; min-height: 60px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); cursor: pointer; }
.location-option strong { display: block; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.location-option span { display: block; margin-top: 2px; font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--text-2); }
.location-option:hover, .location-option[aria-selected="true"] { background: var(--mist); }
.location-source { margin: 0; padding: var(--space-2) var(--space-4); background: var(--soft); font-size: 12px; line-height: 16px; color: var(--text-2); }
.location-retry { margin-top: var(--space-2); padding: 0; border: 0; background: none; color: var(--green); font-size: var(--text-xs); font-weight: var(--w-semibold); text-decoration: underline; }

/* ---------- London-time pickers (journey.js) ---------- */
.picker-control { position: relative; }
.field .picker-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.picker-trigger { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: var(--w-medium); text-align: left; cursor: pointer; }
.picker-trigger::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.picker-trigger[aria-invalid="true"] { color: #B42318; }
.schedule-picker { box-sizing: border-box; z-index: var(--z-sheet); width: 320px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: var(--shadow-menu); max-height: calc(100dvh - 24px); overflow-y: auto; color-scheme: light; }
.schedule-picker[popover] { margin: 0; inset: auto; }
.schedule-picker[hidden] { display: none; }
.schedule-picker button { appearance: none; min-height: 38px; border: 1px solid transparent; border-radius: var(--r-control); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: var(--w-medium); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.schedule-picker button:hover:not(:disabled) { background: var(--mist); }
.schedule-picker button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.schedule-picker button:disabled { color: rgba(14, 21, 18, 0.3); cursor: default; background: transparent; }
.picker-title { display: block; font-size: 17px; font-weight: var(--w-bold); }
.picker-caption { margin: var(--space-1) 0 var(--space-3); font-size: 12px; line-height: 1.5; color: var(--text-2); }
.picker-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.picker-month strong { font-size: 16px; font-weight: var(--w-semibold); }
.picker-month button { width: 40px; border-radius: 50%; font-size: 22px; font-weight: var(--w-regular); }
.picker-calendar { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 34px; gap: 3px; }
.picker-calendar > span { padding: var(--space-1) 0; text-align: center; font-size: 11px; font-weight: var(--w-semibold); color: var(--text-2); }
.picker-calendar button { min-height: 34px; padding: 0; font-variant-numeric: tabular-nums; }
.picker-calendar button[aria-current="date"]:not([aria-pressed="true"]) { border-color: rgba(36, 92, 77, 0.35); }
.picker-footer { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.picker-time-value { display: block; margin: var(--space-1) 0 var(--space-3); font-size: 26px; line-height: 1.3; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.picker-time-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-2); }
.picker-time-groups > div > .picker-caption { margin: 0 0 var(--space-2); font-weight: var(--w-semibold); }
.picker-time-grid { display: flex; flex-direction: column; gap: var(--space-1); height: 148px; margin: 0; padding: var(--space-1); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-control); }
.picker-time-grid button { flex: none; width: 100%; min-height: 40px; border: 0; font-size: 16px; }
.picker-duration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.picker-duration-grid button { min-height: 48px; border-color: var(--line); }
.schedule-picker .picker-apply { width: 100%; min-height: 46px; background: var(--green); color: var(--white); font-weight: var(--w-semibold); }
.schedule-picker .picker-apply:hover:not(:disabled) { background: var(--green-hover); }
.schedule-picker .picker-apply:disabled { background: var(--soft); color: var(--text-2); }
.schedule-note { margin: var(--space-2) 0 0; font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--text-2); }
.schedule-note.schedule-error { color: #B42318; }

/* Inputs sit inside a bordered .control that shows focus itself. */
.flow-fields .control :is(input, select):focus-visible, .booker__field .control :is(input, select):focus-visible { box-shadow: none; }
.hero__inner { position: relative; z-index: 2; }
.booker__field .picker-trigger[aria-invalid="true"] { color: #FFC9B8; }

/* =====================================================================
   /book/ · one screen per step (Blacklane-style on a phone)
   ===================================================================== */
.engine-only { display: none !important; }

/* Slim checkout header: logo and help, nothing else to wander off to. */
.slim { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--night); color: var(--on-dark); }
.slim__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.slim__help { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); font-size: var(--text-sm); font-weight: var(--w-semibold); }
.slim__help > span:first-child { color: var(--on-dark-2); font-weight: var(--w-medium); }
.slim__help .ico { width: 18px; height: 18px; }
@media (max-width: 480px) { .slim__help > span:first-child { display: none; } }

.flow { min-height: calc(100dvh - 64px); padding-top: var(--space-6); background: var(--paper); }
.flow__wrap { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }

/* Progress: numbered steps joined by a line; done steps show a tick. */
.flow__progress { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow__progress li { position: relative; }
.flow__progress li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; border-radius: 1px; background: var(--line); }
.flow__progress li.is-done + li::before, .flow__progress li.is-done + li.is-current::before { background: var(--green); }
.flow__progress button { display: grid; justify-items: center; gap: var(--space-2); width: 100%; padding: 0; border: 0; background: none; font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--text-2); cursor: pointer; }
.flow__progress button:disabled { cursor: default; }
.flow__progress b { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--white); font-size: var(--text-xs); transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.flow__progress b .ico { display: none; width: 16px; height: 16px; stroke-width: 3; }
.flow__progress li.is-current b { border-color: var(--green); background: var(--green); color: var(--white); }
.flow__progress li.is-current button { color: var(--ink); }
.flow__progress li.is-done b { border-color: var(--green); background: var(--mist); color: var(--green); }
.flow__progress li.is-done b .ico { display: block; }
.flow__progress li.is-done .flow__num { display: none; }
.flow__progress li.is-done button { color: var(--ink); }

.flow__form { display: block; }
.flow__step { display: grid; gap: var(--space-4); }
.flow__step[hidden] { display: none; }
.flow__title { margin-top: var(--space-6); font-size: clamp(26px, 5vw, 32px); line-height: 1.15; font-weight: var(--w-semibold); letter-spacing: -0.025em; outline: none; }
.flow__card { display: grid; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.flow-label { font-size: var(--text-sm); font-weight: var(--w-bold); }
.flow-help { font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--text-2); }

/* Fields */
.flow-fields { gap: var(--space-4); }
.flow-stack { display: grid; gap: var(--space-4); }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.flow-fields .field { display: grid; gap: 6px; min-width: 0; }
.flow-fields label { font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); }
.flow-fields .opt { margin-left: var(--space-1); font-weight: var(--w-regular); color: var(--text-2); }
.flow-fields .control { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 54px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--white); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.flow-fields .control > .ico { width: 18px; height: 18px; color: var(--text-2); }
.flow-fields .control:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 92, 77, 0.16); }
.flow-fields .control :is(input, select) { flex: 1; width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; background: transparent; font-size: 16px; font-weight: var(--w-medium); outline: none; }
.flow-fields .control input::placeholder { color: rgba(14, 21, 18, 0.42); font-weight: var(--w-regular); }
.flow-fields .control .picker-control { flex: 1; min-width: 0; }
.flow-fields .picker-trigger { min-height: 52px; }
.flow-fields textarea { width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-control); font-size: 16px; line-height: 24px; resize: vertical; }
.flow-fields textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 92, 77, 0.16); }
.flow-fields input[aria-invalid="true"] { color: #B42318; }
.flow-fields .schedule-note { grid-column: 1 / -1; margin: calc(var(--space-2) * -1) 0 0; }
.flow-fields .schedule-note:not(.schedule-error) { display: none; }
.flow-field-error { font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); color: #B42318; }

/* One way / By the hour, and Me / Someone else */
.flow-seg, .recipient-options { display: grid; grid-template-columns: 1fr 1fr; padding: var(--space-1); border-radius: var(--r-control); background: var(--soft); }
.flow-seg button, .recipient-options button { height: 44px; border: 0; border-radius: 6px; background: transparent; font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--text-2); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.flow-seg button[aria-selected="true"], .recipient-options button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 21, 18, 0.14); }
.flow-recipient { display: grid; gap: var(--space-3); }

/* Bottom bar: sticks to the bottom of the screen while you scroll a step. */
.flow__bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: var(--space-4); margin: var(--space-2) calc(var(--gutter) * -1) 0; padding: var(--space-4) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.flow__next { flex: 1; height: 56px; font-size: var(--text-md); }
.flow__pick { display: grid; flex: none; max-width: 45%; }
.flow__pick span { overflow: hidden; font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.flow__pick strong { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); }
.flow__pick strong:empty { display: none; }
.flow__bar.recap-action { display: grid; gap: var(--space-3); }
.flow__pay { width: 100%; }
.flow__pay[aria-busy="true"] { opacity: 0.7; }
.flow-secure { font-size: 12px; line-height: 16px; color: var(--text-2); text-align: center; }
.flow-secure:empty { display: none; }
@media (min-width: 680px) {
  .flow__bar { margin-inline: 0; padding-inline: 0; }
}

/* Route pill at the top of the car screen */
.flow-route button { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); text-align: left; }
.flow-route__text { display: grid; min-width: 0; }
.flow-route__text strong { overflow: hidden; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); white-space: nowrap; text-overflow: ellipsis; }
.flow-route__text span { font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--text-2); }
.flow-route__edit { flex: none; font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--green); }
.flow-route + .flow__title { margin-top: var(--space-2); }

/* Cars: all three prices visible at once */
.flow-status { margin-top: calc(var(--space-2) * -1); font-size: var(--text-xs); color: var(--text-2); }
.flow-cars { display: grid; gap: var(--space-3); }
.car-option { position: relative; display: block; cursor: pointer; }
.car-option input { position: absolute; opacity: 0; pointer-events: none; }
.car-option-inner { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.car-photo img { width: 116px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-control); background: #F1F1EF; }
.car-caption { display: grid; gap: 2px; min-width: 0; }
.car-caption strong { font-size: var(--text-md); line-height: 22px; font-weight: var(--w-bold); }
.car-model { overflow: hidden; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.car-capacity { display: flex; gap: var(--space-3); margin-top: var(--space-1); font-size: var(--text-xs); font-weight: var(--w-semibold); }
.car-capacity span { display: inline-flex; align-items: center; gap: 4px; }
.car-capacity .ico { width: 15px; height: 15px; color: var(--green); }
.car-availability { display: none; font-size: 12px; color: var(--text-2); }
.car-unavailable .car-availability { display: block; }
.car-price { justify-self: end; font-size: var(--text-lg); font-weight: var(--w-bold); white-space: nowrap; }
.car-tick { display: none; }
.car-option input:checked + .car-option-inner { border-color: var(--green); background: #F5F9F7; box-shadow: inset 0 0 0 1px var(--green); }
.car-option input:focus-visible + .car-option-inner { box-shadow: var(--focus-ring); }
.car-option.car-unavailable { cursor: not-allowed; }
.car-option.car-unavailable .car-option-inner { opacity: 0.5; }
@media (hover: hover) and (pointer: fine) { .car-option:not(.car-unavailable):hover .car-option-inner { border-color: var(--ink); } }
@media (max-width: 380px) {
  .car-option-inner { grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--space-3); }
  .car-photo img { width: 88px; }
}

.flow-included { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-medium); }
.flow-included li { display: flex; align-items: center; gap: var(--space-2); }
.flow-included .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--mist); color: var(--green); stroke-width: 3; }

/* Review */
.flow-review__head { display: flex; align-items: center; justify-content: space-between; }
.flow-review__head .text-link { min-height: 0; padding: 0; border: 0; background: none; }
.flow-timeline { position: relative; display: grid; gap: var(--space-4); padding-left: var(--space-6); }
.flow-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.flow-timeline li { position: relative; display: grid; gap: 2px; }
.flow-timeline li::before { content: ""; position: absolute; left: calc(var(--space-6) * -1); top: 4px; width: 11px; height: 11px; border: 2px solid var(--green); border-radius: 50%; background: var(--white); }
.flow-timeline li:last-child::before { background: var(--green); }
.flow-timeline span { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--text-2); text-transform: capitalize; }
.flow-timeline strong { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.flow-facts { display: grid; gap: var(--space-2); }
.flow-facts > div, div.flow-facts { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-xs); line-height: var(--lh-xs); }
.flow-facts dt, div.flow-facts > span:first-child { color: var(--text-2); }
.flow-facts dd { margin: 0; text-align: right; font-weight: var(--w-semibold); }
.flow-total { display: flex; align-items: baseline; justify-content: space-between; }
.flow-total span { font-size: var(--text-md); font-weight: var(--w-bold); }
.flow-total strong { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.flow-agree { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-control); background: var(--soft); font-size: var(--text-xs); line-height: var(--lh-xs); cursor: pointer; }
.flow-agree[hidden] { display: none; }
.flow-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.flow-error { padding: var(--space-3) var(--space-4); border-radius: var(--r-control); background: #FEF3F2; color: #B42318; font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); }
.flow-error[hidden] { display: none; }

/* Done */
.flow-finish { display: grid; gap: var(--space-4); padding-bottom: var(--space-16); outline: none; }
.flow-finish[hidden] { display: none; }
.flow-finish__head { display: grid; justify-items: center; gap: var(--space-2); padding-top: var(--space-8); text-align: center; }
.flow-finish__head .flow__title { margin-top: 0; }
.flow-finish__head p:not(.label) { color: var(--text-2); max-width: 46ch; }
.flow-finish__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--white); }
.flow-finish__icon .ico { width: 28px; height: 28px; stroke-width: 2.5; }
.flow-badge { padding: var(--space-1) var(--space-3); border-radius: var(--r-chip); background: var(--mist); color: var(--green-pressed); font-size: var(--text-xs); font-weight: var(--w-bold); }
.flow-badge:empty { display: none; }
.flow-ref { font-size: var(--text-sm); font-weight: var(--w-bold); }
.flow-finish__car { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.flow-finish__car img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-control); }
.flow-finish__car h2 { font-size: var(--text-md); font-weight: var(--w-bold); }
.flow-finish__car p { font-size: var(--text-xs); color: var(--text-2); }
.flow-finish__price { display: block; margin-block: var(--space-2); font-size: var(--text-xl); font-weight: var(--w-bold); }
.flow-finish__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.finish-copy-result textarea { width: 100%; margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--r-control); font: inherit; font-size: var(--text-xs); }
.flow-desk { font-size: var(--text-xs); color: var(--text-2); text-align: center; }
.flow-fields .picker-trigger { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .flow-row .control { gap: var(--space-2); padding-inline: var(--space-3); } .flow-row .control > .ico { display: none; } }
.flow__title:focus, .flow__title:focus-visible { box-shadow: none; outline: none; }
.car-option-inner { grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-3); }
.car-photo img { width: 96px; }
.car-caption strong { white-space: nowrap; }
.car-price { font-size: 18px; }

/* ---------- Split: steps on the left, trip / car / price on the right ---------- */
.flow__wrap { max-width: 1120px; }
.flow__form { display: grid; gap: var(--space-6); }
.flow__main { display: grid; min-width: 0; }
.flow__aside { display: none; }
.flow__form[data-step="4"] .flow__aside { display: block; order: -1; }
.flow-summary { gap: var(--space-5); }
.flow-summary__car { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.flow-summary__car img { width: 88px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-control); background: #F1F1EF; }
.flow-summary__car strong { display: block; font-size: var(--text-sm); }
.flow-summary .flow-total { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.flow-methods { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.flow-methods li { padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--r-control); font-size: var(--text-xs); font-weight: var(--w-semibold); }
@media (min-width: 1000px) {
  .flow { padding-top: var(--space-10); }
  .flow__top { max-width: calc(100% - 380px - var(--space-10)); }
  .flow__form { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-10); align-items: start; }
  .flow__aside, .flow__form[data-step="4"] .flow__aside { display: block; order: 0; position: sticky; top: 104px; margin-top: var(--space-6); }
  .flow__bar { margin-inline: 0; padding-inline: 0; }
}
.flow-summary .flow-total strong { font-size: 24px; line-height: 30px; text-align: right; }
