/*!
 * V16.0 — booking widget styles (loaded on booking pages + front page,
 * depends on v16.css). Compact layout supporting the step-fit
 * requirement (build-spec §5): every step's active panel must fit
 * 390x844 without scrolling.
 *
 * FIX ROUND 2 (2026-11-29) — D2 root cause: the theme's old
 * `.v16-vrow { display:flex }` (0,1,0) lost to the plugin
 * tbm-booking.css `.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card`
 * (0,4,0), so rows rendered as 300x428px vertical cards with 278x156px
 * images. All row overrides below use selectors that BEAT the plugin
 * on specificity alone.
 *
 * FIX ROUND 3 (2026-11-29) — D2 FAILED LIVE: the fix-round-2 rules
 * beat the plugin but NOT the WordPress Customizer "Additional CSS"
 * (DB-stored, printed as an inline <style id="wp-custom-css"> block
 * AFTER the theme sheets in wp_head). That block contains Stage-2
 * rules scoped to `.booking-main.booking-main.booking-main article`
 * — and every vehicle row IS such an article:
 *   Customizer `article` (0,3,1): `flex-direction: column !important`
 *   Customizer `article img` (0,3,2): `width: 100% !important;
 *     height: auto !important; max-height: none !important;
 *     aspect-ratio: 16/9 !important`
 *   Customizer `article > div:has(> h3)` (0,3,2, NOT !important):
 *     `padding: 0 24px 24px` — hits `.v16-vrow-main`.
 * `!important` beats any specificity, so the theme MUST answer with
 * `!important` of its own: among `!important` declarations only
 * specificity decides (the Customizer block loads last, so order
 * does not save the theme), and the theme's selectors are higher:
 *   row direction  Customizer (0,3,1) + !important
 *     theme `... .tbm-pro-option.tbm-v12-card.v16-vrow` (0,5,0)
 *     + `flex-direction: row !important` WINS
 *   row image      Customizer (0,3,2) + !important
 *     theme `... .v16-vrow-img` (0,6,0) + !important WINS
 *     (incl. `aspect-ratio: auto !important` vs `16/9 !important`)
 *   main padding   Customizer (0,3,2), NOT !important
 *     theme `... .v16-vrow-main` (0,6,0) `padding: 0` WINS
 *     (no `!important` needed)
 * `!important` in this file is therefore confined to the row-direction
 * and row-image declarations listed above (plus the pre-existing
 * `.v16-wa-hidden` rule). It does NOT touch non-row articles: the
 * Customizer rules still govern homepage fleet/collection articles,
 * which are not `.v16-vrow` rows.
 *
 * FIX ROUND 3 — EXTRA (same round, found by the corrected harness
 * v16-fix3-d2-harness.js, which renders against the LIVE sheets):
 * the enumerated fixes alone left the 390px rows 159px tall, not ~78px,
 * because two more Customizer declarations survive in the theme:
 *  (a) `article button { margin: auto 24px 24px; }` — the theme's
 *      select-button rule never set margin, so each row lost 48px of
 *      width to button side-margins, `.v16-vrow-main` collapsed to
 *      0px and its meta wrapped to 5 lines. Fixed with `margin: 0`
 *      on the (0,7,0) select-button rule (no `!important` needed).
 *  (b) `article h3 { min-height: 2.5em; }` survives (the theme never
 *      sets min-height) and `.v16-vrow-meta` wrapped freely, so the
 *      meta alone cost ~83px in a 23px-wide main. Fixed the same way
 *      as the h3: `white-space: nowrap; overflow: hidden;
 *      text-overflow: ellipsis` on `.v16-vrow-meta` (base + (0,6,0)
 *      rules). Rows are now 76px at 390px / 82px at 1440px.
 *  (c) The PoR card cannot fit img + name + "Price on Request" +
 *      "Request a Quote" in one 316px row at 390px (min ~328px even
 *      with the name at 0px), so its "Price on Request" text painted
 *      behind the quote button. Fixed with `flex-wrap: wrap` on the
 *      PoR card (wraps only when the line overflows — desktop stays
 *      one line) and `flex: 0 0 auto` on its price, so the quote
 *      drops to a clean second line on narrow phones.
 *
 * FIX ROUND 7 (2026-11-29) — vehicle-name truncation: the 390px main
 * column was 23px (button 135px + price 48px + img 64px left no room),
 * so names read "P…". The fix is two-line wrapping, NOT a shorter
 * button label (owner decision): h3/meta lose nowrap/ellipsis (base +
 * (0,6,0) rules) and gain min-height: 0 (neutralises the Customizer
 * `article h3 { min-height: 2.5em }` dead height); the row gains
 * flex-wrap: wrap and the main gains flex-basis 150px, so the button
 * wraps to a second line (right-aligned via margin-left: auto) exactly
 * when it cannot fit, while the price stays on line 1 when it fits.
 * At 390px the main is ~169px: short names fit one line, C180 wraps
 * to two lines ("Mercedes-Benz" / "C 180 Estate"). The two-line rows
 * made Step 2 829px tall at 390px — bottom 922 at the live top y=93,
 * 78px over the viewport — so the STEP 2 COMPACTION (same round, see
 * "Expected Step 2" below) cuts row padding 7->5px, thumbnail
 * 48->40px, row-gap 6->4px, grid gap 8->6px, button 7->6px padding and
 * the heading/actions margins, recovering 104px (panel 725px, bottom
 * 818). The PoR h3 gets the same wrap treatment.
 * Specificity table (plugin vs theme, per rule):
 *  cards container  plugin `.tbm-pro[data-tbm-ui] .tbm-v12-cards` (0,3,0)
 *    theme `.tbm-pro[data-tbm-ui] .tbm-v12-cards.v16-vrows` (0,4,0) WINS
 *  card direction   plugin `.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card` (0,4,0)
 *    theme `... .tbm-pro-option.tbm-v12-card.v16-vrow` (0,5,0) WINS
 *  row image        plugin `.tbm-pro[data-tbm-ui] img` (0,2,1)
 *    theme `... .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-img` (0,6,0) WINS
 *  select button    plugin `.tbm-pro[data-tbm-ui] .tbm-v12-select-btn` (0,3,0)
 *    and `.tbm-pro[data-tbm-ui] .tbm-result-bottom button` (0,3,1);
 *    theme `... .v16-vrow .v16-vrow-select.tbm-v12-select-btn` (0,7,0) WINS.
 *    The plugin's <=720px `flex:1 1 100%` select rule is also (0,3,0) and
 *    loses to the same (0,7,0) rule.
 *  no-photo         plugin `.tbm-pro[data-tbm-ui] .tbm-no-photo` (0,3,0)
 *    theme `... .v16-vrow .tbm-no-photo.v16-vrow-img` (0,7,0) WINS
 *  selected card    plugin `... .tbm-pro-option.tbm-v12-card.is-selected` (0,5,0)
 *    theme `... .v16-vrow.is-selected` (0,6,0) WINS
 *  selected button  plugin `.tbm-pro[data-tbm-ui] .tbm-v12-select-btn[aria-pressed="true"]` (0,4,0)
 *    theme `... .v16-vrow.is-selected .v16-vrow-select.tbm-v12-select-btn` (0,8,0) WINS
 *  selected badge   plugin `.tbm-pro[data-tbm-ui] .tbm-v12-selected-badge` (0,3,0)
 *    theme `... .v16-vrow .tbm-v12-selected-badge` (0,6,0) WINS
 *  Step 1 inputs   plugin `input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"])` (0,5,1)
 *    theme `.tbm-pro[data-tbm-ui] .tbm-pro-form input:not(...):not(...):not(...)` (0,6,1) WINS;
 *    icon-clearance plugin rule (0,6,1) is beaten by the theme's
 *    `.tbm-field` input rule (0,7,1), which keeps padding-left:43px.
 *  Step 1 grids     plugin `<=720px .tbm-pro[data-tbm-ui] .tbm-pro-grid` (0,3,0)
 *    theme `.tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-pro-grid.tbm-date-grid` (0,5,0) WINS
 *    (same for `.tbm-count-grid` inside `.tbm-v12-travellers`)
 *  Review sections plugin `.tbm-pro[data-tbm-ui] .tbm-v12-review-section` (0,3,0)
 *    theme `body .tbm-pro[data-tbm-ui] .tbm-v12-review-section` (0,3,1) WINS
 *    (the `body` element prefix is used for the same reason on the other
 *    review/payment/submitbar overrides below)
 * Row markup contract (pro.js):
 * <article class="v16-vrow tbm-pro-option tbm-v12-card" ...>
 *   <img class="v16-vrow-img" …> (or <div class="tbm-no-photo v16-vrow-img">)
 *   <div class="v16-vrow-main"><h3>…</h3><p class="v16-vrow-meta">…</p>
 *     <p class="tbm-v12-distance">…</p></div>
 *   <div class="v16-vrow-price">€…</div>
 *   <button class="v16-vrow-select tbm-v12-select-btn">…</button>
 *   <span class="tbm-v12-selected-badge" hidden>Selected</span>
 * </article>
 * Expected Step 2 (FIX ROUND 7 + STEP 2 COMPACTION, measured in the
 * harness against the live sheets): 6 rows x 86px (C180 103px, two-line
 * name) + grid gaps 30px + heading 106px + results/heading/actions
 * margins 16px + actions 44px = 725px at 390px. CORRECTED FIT
 * CRITERION (fix round 3 onwards): panel BOTTOM <= 844px at the live
 * top y=93, i.e. height <= 751px. 725px -> bottom 818, 26px headroom:
 * FITS. (The earlier "829px FITS with 15px headroom" was a height-only
 * error: 829px at top 93 is bottom 922, 78px over. The compaction
 * below recovers 104px.) At 430px the panel is 738px -> bottom 831,
 * 13px headroom in the 844px test viewport; real 430px-wide phones
 * are ~932px tall, so ~101px headroom in practice.
 *
 * FIX ROUND 9 (2026-11-29) — production QA FAIL: the theme/plugin
 * FILES are byte-identical to staging, but production's DB-stored
 * Customizer "Additional CSS" (46,812 chars, persists across theme
 * Replace installs) contains !important rules that beat the theme's
 * non-!important Step 1 compaction rules, so staging QA passed and
 * production failed. Same class of bug as fix round 3 (D2 rows):
 * !important beats any specificity, so the theme must answer with
 * !important of its own, at higher specificity. Four answers, all
 * theme CSS only, all inside the <=768px block below:
 *  (1) stepper hide gains !important — (0,3,1) beats the Customizer
 *      JOB 53 tripled-attribute (0,3,0) + !important;
 *  (2) date grid: grid-template-columns !important on the grid
 *      (0,5,0) + grid-column: auto !important on its <label> children
 *      (0,5,1) and on the date/time inputs (0,6,2) — beats JOB 40;
 *  (3) count grid: same pattern — grid (0,5,0) + <label> children
 *      (0,5,1) — beats JOB 42;
 *  (4) panel padding: body.page-template-page-* main .booking-main
 *      { padding-right: 0 !important } (0,2,2) — beats JOB 41's
 *      main .booking-main (0,1,1) + !important, restores the 316px
 *      panel width. DOM verified live on staging before writing the
 *      selectors (probes v16-fix9-dom-probe.js + v16-fix9-ancestry-
 *      probe.js): date/count grid children are <label> wrappers, the
 *      inputs/selects are NOT grid items; .booking-main is inside
 *      <main>; body classes page-template-page-booking / -rental
 *      confirmed. Nothing else changed; no plugin file touched.
 */
.tbm-pro-form, .v16-booking-section .booking-card { max-width: 880px; margin: 0 auto; }

/* V16.1 — HOMEPAGE BOOKING HEADING (pre-existing defect, NOT caused by
   V16.1; found by the independent V16.1 verifier, 2026-11-29). On the
   live homepage the plugin form heading "Book your private ride" renders
   white (rgb(255,255,255)) on the light section background
   (rgb(248,250,252)) at BOTH 1440px and 390px — effectively invisible
   (a faint ghost in screenshots). On the /booking/ page it does NOT
   reproduce (navy rgb(9,40,73) on the white card, readable). The exact
   originating rule could not be pinned (no same-origin stylesheet rule
   matching the heading declares a colour; likely a grouped/pseudo
   selector or plugin-JS-injected) — so this answers with !important.
   Proven empirically by the verifier: injecting this exact rule changes
   the homepage heading white -> navy at 320/390/1440 and leaves the
   booking page untouched. Scope is homepage-only by construction:
   #v16-booking exists ONLY in front-page.php:84 (the booking page has
   no such id). Theme CSS only — no plugin file touched. */
#v16-booking .tbm-pro-form h2, #v16-booking h2 { color: #06172d !important; }

/* D10 — scroll targets clear the sticky header (header 89px + margin).
   FIX ROUND 6: header grew 84->89px (+1px border = 90px total), so
   scroll-margin follows 88->93px to keep the same 3px clearance.
   V16.1: DESKTOP header is UNCHANGED (90px total), so this base rule
   stays 93px. MOBILE header shrinks — 80px total at <=768px (79px
   row + 1px border), 72px at <=360px — so the mobile overrides below
   recalibrate to the same header + ~3px rule: 83px at <=768px,
   75px at <=360px. */
[data-step-panel], .tbm-pro-results, .tbm-result-heading, .tbm-v16-tour-journey, .tbm-v16-tour-journey-title { scroll-margin-top: 93px; }

/* V16.3 — PREMIUM VEHICLE CARDS (base rules; also govern the PoR card,
   which is NOT a .tbm-v12-card, so no plugin card rule applies to it).
   The card is now VERTICAL: full-width 16:9 image on top, then the
   name/capacity block (flex: 1, so the price + button sit at the same
   bottom line in every card of a grid row — consistent card heights
   without dead space), then the prominent price, then a full-width
   gold Select button. The image is object-fit: cover on a 16:9 box:
   the 800x500 (16:10) and 1200x675 (16:9) photos crop a few px top
   and bottom at most — the complete vehicle stays visible, never
   distorted. The old horizontal-row rules (72px thumb, price +
   button on the same line as the name) are superseded. */
.v16-vrow {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 0; margin-bottom: 0;
  cursor: pointer; overflow: hidden; box-shadow: var(--shadow);
}
.v16-vrow:hover { border-color: var(--gold); }
.v16-vrow.is-selected, .v16-vrow[aria-selected="true"] { border-color: var(--gold-bright); box-shadow: 0 0 0 2px var(--gold-bright); }
.v16-vrow-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; flex: 0 0 auto; display: block; }
/* The main block grows to fill the card, so price + button align at
   the bottom across a grid row; names wrap freely to two lines. */
.v16-vrow-main { flex: 1 1 auto; min-width: 0; padding: 14px 16px 0; }
/* h3/meta wrap freely (two lines where needed) instead of
   truncating. min-height: 0 neutralises the Customizer
   `article h3 { min-height: 2.5em }` dead height on card h3s. */
.v16-vrow-main h3 { font-size: 17px; margin: 0 0 4px; min-height: 0; white-space: normal; overflow: visible; }
.v16-vrow-meta { font-size: 14px; color: var(--muted); margin: 0; white-space: normal; overflow: visible; }
/* V16.3: the distance line (rendered by pro.js when the search
   returned a distance) is now SHOWN in the card — one small muted
   line under the capacity, same verified value as the Review step. */
.v16-vrow-main .tbm-v12-distance { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.v16-vrow-price { font-size: 20px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; padding: 10px 16px 0; flex: 0 0 auto; }
.v16-vrow-select {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto; align-self: stretch; margin: 12px 16px 16px; background: var(--gold-bright); color: var(--navy);
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  border-radius: var(--radius-btn); padding: 12px 16px; min-height: 48px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.v16-vrow-select:hover { text-decoration: none; }
.v16-vrow.is-selected .v16-vrow-select, .v16-vrow[aria-selected="true"] .v16-vrow-select { background: var(--navy); color: var(--white); }

/* D2 — high-specificity overrides of the plugin's card rules.
   V16.3: same selectors, vertical card values. The container is a
   2-column grid on desktop (booking card max-width 880px); mobile
   collapses to 1 column in the <=768px block below. */
.tbm-pro[data-tbm-ui] .tbm-v12-cards.v16-vrows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow {
  display: flex; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch;
  gap: 0; padding: 0; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  position: relative; cursor: pointer;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow:hover { border-color: var(--gold); }
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-img {
  width: 100% !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
  max-width: none !important; max-height: none !important; flex: 0 0 auto; aspect-ratio: 16 / 9 !important;
  object-fit: cover; border-radius: 0; display: block;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main { flex: 1 1 auto; min-width: 0; padding: 14px 16px 0; }
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main h3 {
  font-size: 17px; margin: 0 0 4px; min-height: 0; white-space: normal; overflow: visible;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-meta { font-size: 14px; color: var(--muted); margin: 0; white-space: normal; overflow: visible; }
/* V16.3: the distance line is shown in the card (see base rule). */
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .tbm-v12-distance { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-price {
  font-size: 20px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; flex: 0 0 auto; padding: 10px 16px 0;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-select.tbm-v12-select-btn {
  flex: 0 0 auto; min-height: 48px; width: auto; align-self: stretch; margin: 12px 16px 16px;
  background: var(--gold-bright); color: var(--navy);
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  border-radius: var(--radius-btn); padding: 12px 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
/* No-photo placeholder: full-width 16:9 block like the image, not the
   plugin's 120px-min-height block and not the old 72x54 thumb. */
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .tbm-no-photo.v16-vrow-img {
  width: 100%; height: auto; min-width: 0; min-height: 0;
  max-width: none; max-height: none; flex: 0 0 auto; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; font-size: 13px; line-height: 1.4; text-align: center;
  background: var(--bg); color: var(--muted); border-radius: 0;
}
/* Selected state (gold border + badge + navy button) keeps working. */
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow.is-selected {
  border: 2px solid var(--gold-bright); box-shadow: 0 0 0 2px var(--gold-bright);
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow.is-selected .v16-vrow-select.tbm-v12-select-btn,
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-select.tbm-v12-select-btn[aria-pressed="true"] {
  background: var(--navy); color: var(--white);
}
/* FIX ROUND 3 — Selected badge: pro.js renders the badge with the `hidden`
   attribute on unselected rows and toggles badge.hidden in selectVehicle(),
   but this rule (and the plugin's (0,3,0) rule) set display:inline-flex
   unconditionally, beating the UA [hidden]{display:none} — so EVERY card
   showed "✓ Selected" before any selection. Hide by default (0,6,0 beats
   the plugin's (0,3,0)); the (0,7,0) selected-only rule below restores
   the pill, keeping its existing positioning/styling. */
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .tbm-v12-selected-badge {
  display: none;
}
.tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow.is-selected .tbm-v12-selected-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

/* D2 — Step 2 chrome: tighter results heading + step actions (row layout). */
/* FIX ROUND 7 — STEP 2 COMPACTION: heading chrome tightened so the
   panel fits the 844px viewport at its live top (y=93). The eyebrow +
   h3 + 3-line availability paragraph are unchanged in content and
   font sizes; only the dead margins go (results 8->4px, heading 8->4px). */
body .tbm-pro[data-tbm-ui] .tbm-pro-results:not(:empty) { margin-top: 4px; }
body .tbm-pro[data-tbm-ui] .tbm-result-heading { margin-bottom: 4px; }
body .tbm-pro[data-tbm-ui] .tbm-result-heading h3 { font-size: 19px; margin: 2px 0; }
body .tbm-pro[data-tbm-ui] .tbm-result-heading p { margin: 0; }
body .tbm-pro[data-tbm-ui] .tbm-v12-step-actions {
  display: flex; flex-direction: row; gap: 8px; margin-top: 8px;
}
body .tbm-pro[data-tbm-ui] .tbm-v12-step-actions .tbm-v12-back { order: 0; flex: 0 0 auto; min-height: 44px; padding: 10px 14px; }
body .tbm-pro[data-tbm-ui] .tbm-v12-step-actions .tbm-v12-continue { flex: 1 1 auto; min-height: 44px; padding: 10px 14px; }

/* "Price on Request" vehicle card (Fátima C180, rendered by pro.js).
   Markup: <article class="v16-vrow tbm-por-card" data-por-tour="fatima">
   with .v16-vrow-img / .v16-vrow-main / .v16-vrow-price.tbm-por-price /
   <a class="v16-vrow-select tbm-por-quote">. NOT a .tbm-v12-card, so the
   base .v16-vrow rules govern it; the rules below only beat the
   plugin's generic `.tbm-pro img` (0,2,1). V16.3: same vertical
   premium card as the priced rows — full-width 16:9 image, name,
   "Price on Request" label, full-width gold quote button. */
.tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card {
  display: flex; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch;
  gap: 0; padding: 0; margin-bottom: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); cursor: default;
  box-shadow: var(--shadow); overflow: hidden;
}
.tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-img {
  width: 100% !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
  max-width: none !important; max-height: none !important; flex: 0 0 auto; aspect-ratio: 16 / 9 !important; object-fit: cover; border-radius: 0; display: block;
}
/* PoR main: same Customizer `article > div:has(> h3)` padding (0,3,2)
   hits this div too — the padding below replaces it (no !important
   needed). V16.3: flex: 1 like the priced cards, so the quote button
   aligns at the bottom of a grid row. */
.tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-main { flex: 1 1 auto; min-width: 0; padding: 14px 16px 0; }
/* PoR h3: the theme's h3 rules are scoped to `.tbm-v12-card` cards, so
   the PoR h3 fell through to the Customizer `article h3` (0,3,1): 20px
   font, 18px top margin, 2.5em min-height. Mirror the priced-card h3
   rule here (no !important needed — Customizer h3 is not). */
.tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-main h3 {
  font-size: 17px; margin: 0 0 4px; min-height: 0; white-space: normal; overflow: visible;
}
.v16-vrow-price.tbm-por-price {
  font-size: 17px; font-weight: 800; color: var(--gold-dark);
  white-space: normal; text-align: left; line-height: 1.25; max-width: none; flex: 0 0 auto;
  padding: 10px 16px 0;
}
/* The quote link carries .v16-vrow-select, so it inherits the
   full-width gold button; this only keeps its flex display. */
.tbm-por-quote { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
/* Cabo "Price on Request" panel on tour-booking pages:
   <div class="tbm-empty-result tbm-v12-empty tbm-por-panel">…
   The plugin's empty-state rules already style it; these keep the
   quote CTA prominent and the panel compact. */
.tbm-por-panel { padding: 24px 20px; }
.tbm-por-panel h3 { margin-bottom: 6px; }
.tbm-por-panel .tbm-v12-empty-cta.tbm-por-quote { margin-top: 4px; }

/* Legacy large vehicle cards (if the plugin still renders them before
   the V16.0 plugin update): constrain them so the step can still fit. */
.tbm-vehicle-card, .vehicle-card { max-width: 100%; }
.tbm-vehicle-card img, .vehicle-card img { max-height: 140px; object-fit: cover; }

/* Booking form chrome: compact inputs, no oversized map on mobile. */
.tbm-pro-form label, .booking-card label { display: block; font-weight: 600; font-size: 14px; color: var(--navy-mid); margin-bottom: 4px; }
.tbm-pro-form input[type="text"], .tbm-pro-form input[type="tel"], .tbm-pro-form input[type="email"],
.tbm-pro-form input[type="date"], .tbm-pro-form input[type="time"], .tbm-pro-form input[type="number"],
.tbm-pro-form select, .tbm-pro-form textarea,
.booking-card input[type="text"], .booking-card input[type="tel"], .booking-card input[type="email"],
.booking-card input[type="date"], .booking-card input[type="time"], .booking-card input[type="number"],
.booking-card select, .booking-card textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-input);
  padding: 11px 12px; font-size: 16px; font-family: inherit; background: var(--white); color: var(--text);
}
.tbm-pro-form .tbm-step, .booking-card .tbm-step { margin-bottom: 8px; }
.tbm-pro-form button[type="submit"], .booking-card button[type="submit"],
.tbm-pro-form .tbm-submit, .booking-card .tbm-submit {
  background: var(--gold-bright); color: var(--navy); font-weight: 700;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  padding: 13px 24px; font-size: 16px; cursor: pointer; width: 100%;
}
/* Step navigation: compact, always visible. */
.tbm-steps-nav, .tbm-step-nav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tbm-steps-nav button, .tbm-step-nav button {
  background: var(--white); border: 1px solid var(--border); color: var(--navy);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.tbm-steps-nav button.is-active, .tbm-step-nav button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Review step: tight stacking, total prominent, submit visible. */
.tbm-review, .tbm-summary { display: grid; gap: 10px; }
.tbm-review-total, .tbm-total { font-size: 22px; font-weight: 800; color: var(--navy); }
.tbm-review-total strong, .tbm-total strong { color: var(--gold-dark); }

/* Extras: compact rows. */
.tbm-extra { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; margin-bottom: 10px; }
.tbm-extra .tbm-extra-price { margin-left: auto; font-weight: 800; color: var(--gold-dark); white-space: nowrap; }

/* Floating WhatsApp hidden state (JS toggles this class). */
.v16-wa-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 768px) {
  /* Step-fit: keep the booking form clear of the fixed bottom bar
     (bar ~70-80px tall; footer already pads 140px, this covers the
     booking card itself). */
  /* V16.1 — D10 recalibration: mobile header is 80px total (was 90px),
     so scroll-margin-top is 83px here (header + ~3px), for the booking
     section AND the base scroll targets above (which otherwise keep
     the 93px desktop value at mobile widths). */
  [data-step-panel], .tbm-pro-results, .tbm-result-heading, .tbm-v16-tour-journey, .tbm-v16-tour-journey-title { scroll-margin-top: 83px; }
  .v16-booking-section { scroll-margin-top: 83px; padding-bottom: 96px; }
  .booking-layout { padding-bottom: 110px; }
  /* FIX ROUND 4 — D8: the "View breakdown" toggle (button
     .tbm-v12-summary-toggle, built by pro.js in .tbm-v12-summary-head)
     sits directly below the Step 2 panel and, at the post-search landing
     scroll (scrollY 265 at 390x844), renders at viewport y 776-820 —
     entirely inside the fixed mobile-actions bar's band (y 775-844,
     z-index 90 over the summary's 30, opaque white), so a tap there hits
     the bar's "Book transfer" action (verified live by elementFromPoint).
     At-landing visibility cannot be fixed safely in CSS: scrolling further
     would hide the "Choose the right vehicle." heading behind the sticky
     header (it can move up at most 23px before clipping, the toggle needs
     45px), and pulling the summary up would cover the Continue button
     (y 719-763, directly above the summary). So the fix is explicit bottom
     clearance ON the summary slot itself (previously the toggle was only
     scrollable-clear by accident of the layout/footer padding): with this
     padding the toggle can always be scrolled fully above the bar
     (scrollY >= ~312 at 390px), where it is visible and tappable. */
  body .tbm-pro[data-tbm-ui] .tbm-v12-summary-slot { padding-bottom: 90px; }
  /* Remove the large decorative sidebar image from the mobile review layout. */
  .booking-aside .aside-image { display: none; }
  /* No oversized map on mobile. */
  .tbm-map, .tbm-pro-form .map { max-height: 180px; }

  /* D1-Step 1 — compact the chrome ABOVE the Step 1 panel so the panel
     starts higher (was top 556px at scroll 0). Form heading + stepper
     are plugin markup; these overrides beat the plugin on specificity
     (body prefix = (0,3,1) vs plugin (0,3,0)). */
  body .tbm-pro[data-tbm-ui] .tbm-form-heading { margin-bottom: 10px; }
  body .tbm-pro[data-tbm-ui] .tbm-form-heading h2 { font-size: 20px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-stepper { margin-bottom: 10px; padding-bottom: 8px; }
  /* FIX ROUND 7 — Step 1 (owner decision 2026-11-29 ~15:04 PKT): hide the
     form heading + progress stepper at mobile widths. Measured baseline
     at 390px: heading 44px + 10px margin, stepper 37px + 10px margin =
     101px of chrome above a 726px panel (top 358, overflow 239px).
     The heading duplicates the page title (eyebrow "TAXI & AIRPORT
     TRANSFERS" + h2 "Book your private ride" vs intro eyebrow + h1),
     and the stepper is a non-interactive <ol> (no buttons/links) whose
     orientation role is carried inside the panel by the "01 Your
     journey" / "02 Your schedule" captions + field labels. Hiding both
     is what makes Step 1 fit safely; both stay visible above 768px.
     The two rules above are kept (harmless under display:none) so a
     future decision to restore either is a one-line revert. */
  body .tbm-pro[data-tbm-ui] .tbm-form-heading { display: none; }
  /* FIX ROUND 9 (2026-11-29) — production QA FAIL: the fix-round-7
     hide above LOST on production to the DB-stored Customizer
     "Additional CSS" (printed as <style id="wp-custom-css"> AFTER the
     theme sheets). The enemy rule is JOB 53's amendment, unscoped
     (its @media block is empty — the rule sits outside it):
       [aria-label="Booking progress"][aria-label="Booking progress"]
       [aria-label="Booking progress"] { display: flex !important; ... }
     (0,3,0) + !important. The theme rule without !important loses to
     ANY !important, whatever its specificity — so the stepper rendered
     flex (37px + 10px margin) on production and pushed the Step 1
     panel top 146 -> 189px. Answer with !important of the same kind:
     this (0,3,1) + !important beats (0,3,0) + !important, and the
     Customizer block loads last, so order cannot save it — only
     specificity among !important declarations decides, and the theme
     wins. Same class of bug as fix round 3 (D2 rows). The
     form-heading rule is untouched: no Customizer rule targets it,
     and it is already hidden on production. Above 768px this block
     does not apply, so the stepper stays visible on desktop. */
  body .tbm-pro[data-tbm-ui] .tbm-v12-stepper { display: none !important; }
  /* D1-Step 1 — compact the fields themselves. Inputs stay 16px (iOS
     auto-zoom guard — never below 16px); FIX ROUND 7: min-height
     46px -> 44px (the touch-target floor, not below it) and label
     margins 8px -> 4px (the pre-fix-2 base value). */
  .tbm-pro[data-tbm-ui] .tbm-pro-form label { margin-bottom: 4px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]) {
    min-height: 44px; padding-top: 9px; padding-bottom: 9px;
  }
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-field input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]) {
    padding-left: 43px;
  }
  .tbm-pro[data-tbm-ui] .tbm-pro-form select,
  .tbm-pro[data-tbm-ui] .tbm-pro-form textarea { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
  /* FIX ROUND 7: caption margins 10/8 -> 4/2 (saves 4px per caption). */
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-section-caption { margin: 4px 0 2px; font-size: 14px; }
  /* Date + time on ONE row (plugin <=720px forces .tbm-pro-grid to a
     single column at (0,3,0); this (0,5,0) rule restores two columns
     for the date grid only). Locations stay stacked (usable width).
     FIX ROUND 9 (2026-11-29) — production QA FAIL: on production the
     date grid kept 2 columns (computed 141px 141px) but its children
     stacked full-width (each 292px, grid 152px tall, +76px), because
     the Customizer JOB 40 rules (@media max-width: 600px) beat the
     theme with !important:
       .booking-main :has(> input[type="date"]) /
       .booking-main :has(> input[type="time"])
         { grid-column: 1 / -1 !important; ... } — (0,2,1) + !important
       .booking-main div:has(> div > input[type="date"]) /
       .booking-main div:has(> input[type="date"]):has(> input[type="time"])
         { grid-template-columns: 1fr !important; ... } — (0,2,3) + !important
       .booking-main input[type="date"], .booking-main input[type="time"]
         { grid-column: 1 / -1 !important; ... } — (0,1,1) + !important
     DOM verified live on staging 2026-11-29 (probe
     v16-fix9-dom-probe.js): the grid's direct children are the two
     <label> wrappers (no class; each wraps its input directly) — the
     inputs are NOT grid items. So the operative enemy rule is the
     :has(> input) one, which matches each <label> (it has the input
     as a direct child) and forces it to span the full row. The fix
     answers on every layer, all !important, all higher-specificity:
     grid-template-columns on the grid (0,5,0), grid-column: auto on
     the <label> children (0,5,1), grid-column: auto on the inputs
     themselves (0,6,2, belt-and-braces — a no-op unless an input ever
     becomes a grid item). The Customizer's width: 100% / flex /
     box-sizing on the labels is left alone: 100% of a 2-column cell
     is exactly the cell, and flex properties do not apply to grid
     items. The .booking-main / form grid-template-columns: 1fr rule
     is a no-op too (the form is display: block, verified live), but
     the grid's own !important covers it if that ever changes. */
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-pro-grid.tbm-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 10px;
  }
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-pro-grid.tbm-date-grid > label {
    grid-column: auto !important;
  }
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-pro-grid.tbm-date-grid > label > input[type="date"],
  .tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-pro-grid.tbm-date-grid > label > input[type="time"] {
    grid-column: auto !important;
  }
  /* Travellers: passengers + luggage side by side again (plugin <=720px
     stacks them); the notes field still spans both columns.
     FIX ROUND 9 — same pattern as the date grid above, against the
     Customizer JOB 42 rules (@media max-width: 600px):
       .booking-main details div:has(> div > select) /
       .booking-main details div:has(> select)
         { grid-template-columns: 1fr !important; ... } — (0,2,3) + !important
       .booking-main details :has(> select), .booking-main :has(> select)
         { grid-column: 1 / -1 !important; ... } — (0,2,1) / (0,1,1) + !important
     DOM verified live on staging 2026-11-29: the count grid's direct
     children are again the two <label> wrappers (no class; each wraps
     its <select> directly) — the selects are NOT grid items. So the
     operative enemy rule is the :has(> select) one, matching each
     <label>. Same three-layer answer: grid-template-columns on the
     grid (0,5,0), grid-column: auto on the <label> children (0,5,1).
     The Customizer's .booking-main select { width: 100% !important }
     is deliberately NOT fought: 100% of a 2-column cell is the cell,
     and it is what keeps the select filling its label. */
  .tbm-pro[data-tbm-ui] .tbm-v12-travellers .tbm-pro-grid.tbm-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 10px;
  }
  .tbm-pro[data-tbm-ui] .tbm-v12-travellers .tbm-pro-grid.tbm-count-grid > label {
    grid-column: auto !important;
  }
  /* FIX ROUND 9 — panel padding (JOB 41). Production QA: the Step 1
     panel content was 292px on production vs 316px on staging — the
     24px is exactly the Customizer JOB 41 rule (@media max-width:
     768px): main .booking-main, .booking-main
       { padding-right: 24px !important; } — (0,1,1) + !important.
     It was added to keep the time field / "Find my ride" button clear
     of the fixed WhatsApp button. This override restores the 316px
     panel width on the booking pages only: (0,2,2) + !important beats
     (0,1,1) + !important. Scoped to the three booking templates
     (body classes verified live on staging: page-template-page-booking
     on /booking/, page-template-page-rental on /rental/;
     page-template-page-tour-booking is the same WordPress body_class
     for page-tour-booking.php) — no other page's padding changes.
     Ancestry verified live: .booking-main sits inside <main>
     (div.booking-main > section.container.booking-layout > main), so
     the `main .booking-main` form of the selector matches.
     NOTE FOR THE VERIFIER: removing this padding re-exposes the JOB 41
     WhatsApp-overlap concern — check live whether the fixed WhatsApp
     button covers the time field / Find-my-ride button while scrolling.
     The WhatsApp button itself is NOT changed here. (Also noted while
     verifying: JOB 39's main { padding-right: 80px !important } lane
     is INERT on production — its @media block is swallowed because the
     JOB 39 comment was truncated mid-word ("in its co") and the
     leftover "rner. ..." fragment forms a garbage prelude with the
     @media line, so the whole rule is dropped by the CSS parser; the
     production width chain — .container.booking-layout 390px, i.e.
     full viewport width — confirms the 80px never applies. So
     neutralising JOB 41 restores staging geometry exactly; it does
     not create a NEW overlap beyond what staging already has.)

 * V16.3 PHASES 3–5 (2026-12-01) — premium mobile redesign (owner
 * brief): Step 2 vehicle cards become vertical premium cards with a
 * full-width 16:9 image (the §16.2.5 Decision-2 thumbnail shrink
 * 64x40 -> 56x36 is SUPERSEDED — replaced below; the §16.2.5 map
 * reserve-space and Step 1 spacing are KEPT, untouched); the Review
 * step becomes numbered sections (Journey / Vehicle / Extras /
 * Payment) + a prominent single fare breakdown + one large gold
 * submit button; the "Your booking" widget is hidden on Step 5
 * only, where it duplicates the Review (kept, compact, on Steps
 * 1–4). Presentation only: no form field IDs, submit-button
 * binding, AJAX action, fare, price, payment gating or booking
 * logic changes. The card markup contract (pro.js renderResults)
 * is UNCHANGED — the vertical layout is CSS only, using the same
 * .v16-vrow article with its img / .v16-vrow-main / .v16-vrow-price /
 * button / badge children. Specificity notes for the new card rules:
 *  the Customizer "Additional CSS" rules that fought the old rows
 *  now AGREE with the new design (article flex-direction: column
 *  !important; article img width:100% / height:auto / aspect-ratio:
 *  16/9 !important) — the theme still answers with !important at
 *  higher specificity so the card renders identically with or
 *  without the Customizer block; object-fit: cover needs no
 *  !important (the Customizer never sets it). The Customizer
 *  `article button { margin: auto 24px 24px }` (not !important) is
 *  beaten by the theme's (0,7,0) button rule, as before; the
 *  Customizer `article h3 { min-height: 2.5em }` is neutralised by
 *  min-height: 0 on the card h3, as before. Desktop cards sit in a
 *  2-column grid (booking card max-width 880px); mobile is 1 column.
 *  Step 2 no longer fits one viewport with 6 large cards — that is
 *  the explicit trade-off of the owner's larger-image brief (the
 *  F2 fix hides the mobile-actions bar on booking pages, so the
 *  longer Step 2 scrolls cleanly with nothing covered). The Review
 *  step grows ~+95px (vehicle image + section card padding + larger
 *  submit button); EN@390 still fits, DE/FR@390 and 320px scroll
 *  cleanly, inside the owner's Step-5-may-scroll allowance.
 *  The V16.3 rules live in the "V16.3 — PREMIUM VEHICLE CARDS"
 *  replacements below (base + D2 + mobile + <=390px) and in the
 *  "V16.3 — REVIEW REDESIGN + SUMMARY WIDGET" block at the end of
 *  this file (numbered sections, review vehicle image, payment
 *  options, single total, gold submit, Step 5 status message,
 *  widget hidden on Step 5).
 */
  body.page-template-page-booking main .booking-main,
  body.page-template-page-tour-booking main .booking-main,
  body.page-template-page-rental main .booking-main { padding-right: 0 !important; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-travellers label { margin-bottom: 0; }
  /* FIX ROUND 7: travellers padding 10 -> 6 (saves 8px); hint padding
     8 -> 6 (saves 4px); GPS button min-height 36 -> 44px (the
     touch-target floor — it was the one sub-44px control in Step 1). */
  body .tbm-pro[data-tbm-ui] .tbm-v12-travellers { padding: 6px 12px; margin-bottom: 8px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-capacity-hint,
  body .tbm-pro[data-tbm-ui] .tbm-v12-autocomplete-hint { padding: 6px 10px; margin-bottom: 8px; font-size: 12px; }
  /* GPS button kept, compacted (never hidden). */
  body .tbm-pro[data-tbm-ui] .tbm-use-location { min-height: 44px; padding: 6px 10px; margin-top: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-pro-btn { min-height: 48px; padding: 11px 19px; }
  /* FIX ROUND 7: fine print line-height 1.7 -> 1.45 (3 lines at 390px:
     ~61px -> ~52px) + margin-top 6 -> 4. Font stays 12px. */
  body .tbm-pro[data-tbm-ui] .tbm-pro-fine { margin-top: 4px; line-height: 1.45; }

  /* V16.3 — MOBILE VEHICLE CARDS (high-specificity versions of the
     base rules). SUPERSEDES the §16.2.5 Decision-2 shrink (56x36
     thumbnails, 6px padding, 14/12px fonts, 4px gaps): mobile cards
     are single-column vertical premium cards, exactly like desktop
     but one per row — full-width 16:9 image, full name, capacity,
     prominent price, full-width 48px gold button. German names wrap
     to two lines inside the wide card body instead of squeezing a
     56px thumbnail row. Step 2 is longer than the old compact rows
     (6 cards x ~330px at 390px); it scrolls cleanly — the F2 fix
     hides the mobile-actions bar on booking pages, so nothing is
     covered while scrolling. */
  .tbm-pro[data-tbm-ui] .tbm-v12-cards.v16-vrows { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow,
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card { padding: 0; gap: 0; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-img,
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .tbm-no-photo.v16-vrow-img,
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-img {
    width: 100% !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
    max-width: none !important; max-height: none !important; flex: 0 0 auto !important; aspect-ratio: 16 / 9 !important;
  }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main,
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-main { padding: 12px 14px 0; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main h3,
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-main h3 { font-size: 16px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-meta { font-size: 13px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-price,
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-price.tbm-por-price { font-size: 19px; padding: 8px 14px 0; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-select.tbm-v12-select-btn { padding: 12px 16px; font-size: 15px; min-height: 48px; margin: 10px 14px 14px; }

  /* D1-Step 5 + D4 — compact the Review step.
     D4 CHOICE: the sticky submit bar is made NON-OVERLAPPING at <=768px
     (position:static) instead of adding ~190px of bottom padding to an
     already 1,331px panel. The padding approach would push Step 5 to
     ~1,520px and still leave the payment choice hidden at landing; the
     static bar sits in normal flow at the end of the panel, so nothing
     is ever hidden behind it, the payment radios are fully visible on
     landing (estimated payment bottom ~560px, bar top was ~727px), and
     the submit button stays reachable by scrolling to the panel end.
     Desktop keeps the sticky bar unchanged.
     FIX ROUND 3: live panel measured 1,079px at 390x844 (overflow
     235px). Cuts below are padding / margin / line-height / font-size
     only — every element stays visible and usable; payment radios,
     total and submit button keep their function and prominence. The
     h2 <br> is dropped (text stays whole on one line at 18px in the
     316px panel) instead of rendering as two lines. */
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] { padding-bottom: 12px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 { font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 br { display: none; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section { padding: 6px 12px; margin-bottom: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section-head { margin-bottom: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section h3 { font-size: 15px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-edit { min-height: 28px; padding: 5px 10px; font-size: 12px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section p { margin: 1px 0; font-size: 13px; line-height: 1.35; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice { gap: 6px; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment legend,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice legend { font-size: 14px; margin-bottom: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option { padding: 6px 12px; margin-bottom: 6px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-note { font-size: 12px; line-height: 1.5; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment-note { margin-bottom: 4px; font-size: 12px; line-height: 1.5; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown { padding-top: 6px; margin-top: 6px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row { padding: 1px 0; font-size: 13px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total { padding-top: 4px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total strong { font-size: 18px; }
  body .tbm-pro[data-tbm-ui] .tbm-pro-total { padding: 10px 12px; margin: 8px 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar {
    position: static; margin: 8px 0 0;
    padding: 8px 12px; box-shadow: none;
  }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total { margin-bottom: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total strong { font-size: 18px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar button[type="submit"] { min-height: 46px; padding: 11px 19px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submit-fine { margin-top: 2px; line-height: 1.5; }

  /* FIX ROUND 4 — Step 5: a further ~70px compaction so the Review panel
     fits 390x844. Live: 824px tall, top 88 -> bottom 912 (68px over); a
     height-only comparison is NOT a fit claim — the panel must be <=756px
     tall at top 88. Padding / margin / font-size / line-height ONLY —
     nothing hidden; payment radios, total and submit button keep full
     function and prominence. Measured child heights before this round
     (local harness, byte-identical to live): h2 23, journey 118, vehicle
     81, extras 63, payment 274 (pay options 56/77, pay note 53),
     breakdown 89, submitbar 134, panel padding-bottom 12.
     NOTE: the pay-note <p> needs the section-qualified selector — the
     fix-round-3 payment-note rule (0,3,1) lost to the review-section p
     rule (0,3,2), so it rendered 13px/1.35 instead of 12px/1.5. */
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] { padding-bottom: 8px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 { font-size: 17px; margin-bottom: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section { padding: 4px 12px; margin-bottom: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section-head { margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section p { font-size: 12.5px; line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice { gap: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment legend,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice legend { font-size: 13px; margin-bottom: 1px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option { padding: 5px 12px; margin-bottom: 4px; font-size: 13px; line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-note { font-size: 11.5px; line-height: 1.35; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section .tbm-v12-payment-note { font-size: 12px; line-height: 1.4; margin: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown { padding-top: 4px; margin-top: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row { font-size: 12.5px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total { padding-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total strong { font-size: 17px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar { padding: 6px 12px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total { margin-bottom: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total strong { font-size: 17px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar button[type="submit"] { min-height: 44px; padding: 10px 19px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submit-fine { margin-top: 0; font-size: 11.5px; line-height: 1.4; }

  /* V16.2 FIX ROUND — REVIEW COMPACTION FOR TRANSLATED CONTENT
     (2026-11-30). V16.2 staging QA §2b: Step 5 at 390px fits in EN
     (736px, bottom 819) but overflows in PT/ES (+25px), DE (+29px) and
     FR (+46px) even with SHORT labels — the translated Review content
     is longer. Element-by-element breakdown (live staging, real
     browser, standard route LIS -> Praca do Comercio, 1 pax, 0 bags,
     no extras; FR vs EN at 390px, panel 807 vs 736 = +71px):
       h2            EN 21px (1 line)  FR 43px (2 lines)   +22
       journey sect. EN 125px          FR 142px            +17
         (FR travel-date line wraps to 2 lines: 33px vs 16px)
       vehicle sect. EN 74px           FR 74px              +0
       extras sect.  EN 56px           FR 56px              +0
       payment sect. EN 231px          FR 265px            +34
         (pay options EN 46+63px, FR 63+80px: one extra wrapped
         line in each FR option label/note = +17px each)
       breakdown     EN 82px           FR 82px              +0
       submitbar     EN 118px          FR 118px             +0
     The +71px is therefore ~22 (h2 wrap) + ~17 (date-line wrap) +
     ~34 (pay-option wraps), minus ~2px of rounding — i.e. ALL of it
     is wrapped translated text, not chrome. The chrome below is the
     only remaining dead space, and it is identical in every language,
     so the same cuts recover the same px in all five:
       section padding 4->2px vertical (4 sections x 4px)      16px
       section margin-bottom 2->0 (4 sections x 2px)            8px
       review <p> margin 1px 0 -> 0 (8 <p> x 2px)               16px
       h2 17px/1.25 -> 16px/1.2 + margin-bottom 2->0
         (FR 43 -> ~38px, EN 21 -> ~19px)                  ~5-7px FR
       panel padding-bottom 8->4px                              4px
       submitbar padding 6->4px vertical + margin-top 8->4px    8px
       submit-total margin-bottom 2->0                          2px
     Expected total ~59-61px in FR (807 -> ~747px, bottom ~830,
     ~14px headroom at 390px) and ~56px in EN (736 -> ~680px);
     plus the breakdown-row padding cut below (~7px) for a safety
     margin on the worst case. Measured (live staging, route-
     intercepted file): FR 807 -> 748px / bottom 831 (13px headroom).
     Padding / margin / font-size / line-height ONLY — nothing
     hidden, no layout change, no content change. Floors kept:
     submit button 44px, review body 12.5px (floor 12px), fine
     print 11.5px, pay options untouched (still 13px/1.3, still
     >=44px tap targets). Desktop untouched (inside <=768px).
     Specificity: selectors match the fix-round-3/4 rules exactly
     ((0,3,1) / (0,3,2)) and sit LATER in this file, so they win by
     order; the plugin's (0,3,0) review rules lose on specificity.
     No !important: verified live 2026-11-30 (probe
     v162-fix-review-probe.js) that the staging Customizer
     "Additional CSS" contains NO rule touching review-section /
     submitbar / step-panel / pay-option / breakdown / submit-fine /
     submit-total, so there is no !important to answer (unlike fix
     rounds 3 and 9). At <=360px the existing tighter rules still
     apply (h2 16px/1.2/0, section padding 2px, p 12px/1.25); the
     p-margin and submitbar cuts here also apply there, since the
     <=360px block does not set those properties. */
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] { padding-bottom: 4px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 { font-size: 16px; line-height: 1.15; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section { padding: 2px 12px; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section p { margin: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar { padding: 4px 12px; margin-top: 4px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total { margin-bottom: 0; }
  /* Safety margin on the worst case (FR 390px landed at 754px /
     bottom 837 — only 7px headroom, within font-rendering variance
     between browsers): the breakdown rows are the last dead space.
     Rows 22px = 12.5px text on a 20px line + 1px padding top/bottom;
     padding 1px -> 0 leaves the 20px line untouched, so each of the
     3 rows saves 2px; the total row keeps its 17px strong and 2px
     top rule -> 1px (saves 1px). ~7px total, FR 390px -> ~747px
     (bottom ~830, ~14px headroom). No font/line-height change. */
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row { padding: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total { padding-top: 1px; }

  /* V16.2 FIX ROUND 2 — REVIEW LAYOUT OPTIMIZATION (2026-11-30; owner
     decision 2026-11-30 06:21 PKT: optimize the French Review layout; do
     NOT shorten addresses; do NOT ship with content overflowing; allow
     normal vertical scrolling where content genuinely needs the space).
     Fix round 1 left FR @390 at 797px (bottom 880, +36px), DE 763px
     (+2px), PT/ES 761px (0px headroom), FR @320 + 2 extras 798px
     (+29px) — all of it wrapped translated text, not chrome (FR h2 2
     lines, journey pickup/drop-off/date 2 lines each, pay options
     63/80px). This block recovers the remaining dead space, measured
     locally (harness /tmp/v162r2/measure.js, calibrated to 0px against
     the fix-round-1 live verifier on all 11 cases). Padding / margin /
     font-size / line-height ONLY — nothing hidden, no layout change,
     no content change, no address shortening. Expected FR @390
     ~797 -> ~721px (bottom ~804, ~40px headroom); FR @320 + 2 extras
     ~798 -> ~747px (fits the 769px budget at top 75).
       panel padding-bottom 4 -> 2px                          2px
       h2 line-height 1.2 -> 1.15 (theme h1-h4 base value;
         FR 2-line h2 38 -> ~37px)                        ~1.5px
       review <p> line-height 1.3 -> 1.25 (12.5px text;
         FR journey 9 lines ~5.5px, vehicle/extras ~2px)  ~7.5px FR
       review-edit min-height 28 -> 24px, padding 5 -> 3px
         vertical (head 28 -> 24px; the 12px/1.3 label is
         15.6px, so 3px padding + 1px borders = 23.6px and
         the 24px min-height governs. Secondary text action,
         ~60px wide, 12px label fully legible; the 44px floor
         stays for the submit button and pay-option tap
         targets, which are untouched as tap targets)  4px x 4 sect.
       payment fieldset gap 4 -> 2px                            4px
       payment legend line-height (inherited 1.6) -> 1.3
         (13px legend 21 -> ~17px)                          ~4px
       pay-option padding 5 -> 4px vertical (options stay
         59-76px, well above the 44px tap-target floor)  2px x 2 opts
       pay-option line-height 1.3 -> 1.25 (label column;
         option height is set by its taller column)      ~2-3px/opt
       pay-option min-height: 44px ADDED (floor, not a cut):
         the padding + line-height cuts above take the
         shortest option (EN cash, was 46px) to 43px, i.e.
         1px under the 44px tap-target floor — the floor
         restores it to exactly 44px and holds it there in
         every language/width; all other options are 59px+
         and unaffected (+1px only where the floor binds)
       pay-note line-height 1.35 -> 1.3 (11.5px note)     ~0.6px/line
       payment-note line-height 1.4 -> 1.3 (12px note;
         FR 3 lines ~3.5px, PT 4 lines ~5px)              ~3.5-5px
       breakdown padding-top + margin-top 4 -> 2px each          4px
       breakdown-row line-height (inherited 1.6) -> 1.3
         (12.5px rows 20 -> ~16px; is-total strong 17px
         29 -> ~24px)                                    ~12px
       submitbar padding 4 -> 3px vertical + margin-top
         4 -> 2px                                            4px
       submit-total line-height (inherited 1.6) -> 1.3
         (17px strong 27 -> ~22px)                       ~5px
       submit-fine line-height 1.4 -> 1.35 (11.5px;
         FR/DE 2 lines ~1px)                             ~1px
     Floors kept: submit button 44px (min-height untouched;
     padding cut is a no-op against it), review body 12.5px
     (12px at <=360px, untouched), fine print 11.5px, pay
     options >=44px. Desktop untouched (inside <=768px).
     Specificity: selectors match the fix-round-3/4/round-1 rules
     exactly and sit LATER in this file, so they win by order.
     No !important: re-verified 2026-11-30 that the staging
     Customizer "Additional CSS" (/tmp/v162-staging-customcss.txt)
     contains NO rule touching review-section / submitbar /
     step-panel / pay-option / breakdown / submit-fine /
     submit-total (grep count 0), so there is no !important
     to answer. The submitbar stays position: static (in normal
     flow) so any residual overflow scrolls cleanly with the
     submit button reachable — nothing is hidden behind it.
     At <=360px the tighter rules in the block below still apply
     (p 12px/1.25, legend 12.5px, pay-note/payment-note 1.3,
     payment gap 2px, fine 1.3); the three <=360px overrides that
     would otherwise undo this round (panel padding-bottom,
     breakdown-row line-height, submitbar padding/margin) are
     re-applied there. */
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] { padding-bottom: 2px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 { line-height: 1.15; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section p { line-height: 1.25; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-edit { min-height: 24px; padding: 3px 10px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice { gap: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment legend,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice legend { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option { padding: 4px 12px; line-height: 1.25; min-height: 44px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-note { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section .tbm-v12-payment-note { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown { padding-top: 2px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar { padding: 3px 12px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submit-fine { line-height: 1.35; }
}
@media (max-width: 390px) {
  /* V16.3 — SUPERSEDES the fix-round-7 Step 2 row compaction (5px
     padding, 14px h3, 12px button): the vertical premium card is
     the same at 320–390px, only the body padding matches the
     <=768px values. No font or tap-target reduction at small widths:
     the Select button stays 15px / 48px, the name 16px. */
  .v16-vrow { gap: 0; padding: 0; }
  .v16-vrow-main { padding: 12px 14px 0; }
  .v16-vrow-main h3 { font-size: 16px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow { gap: 0; padding: 0; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main { padding: 12px 14px 0; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-main h3 { font-size: 16px; }
  .tbm-pro[data-tbm-ui] .tbm-pro-option.tbm-v12-card.v16-vrow .v16-vrow-select.tbm-v12-select-btn { padding: 12px 16px; font-size: 15px; min-height: 48px; }
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card { gap: 0; padding: 0; }
  .tbm-pro[data-tbm-ui] .v16-vrow.tbm-por-card .v16-vrow-main h3 { font-size: 16px; }
  .tbm-por-quote { padding: 12px 16px; font-size: 15px; }
}
@media (max-width: 360px) {
  /* FIX ROUND 8 — Step 5 (Review) at 320px: panel 806px, top 93 ->
     bottom 899, 55px over the 844px viewport (verifier §9, re-measured
     twice with identical numbers; pre-fix probe v16-fix8-step5-breakdown
     --label fix8). Breakdown at 320px vs 360px (736px, fits):
     h2 43 vs 21 (+22, wraps to 2 lines), journey 158 vs 125 (+33,
     drop-off + travel-date lines wrap), vehicle 74 = 74, extras 56 = 56,
     payment 248 vs 231 (+17, online option wraps to a 4th line),
     breakdown 82 = 82, submitbar 118 = 118. Scope is <=360px ONLY so
     375/390/430px are byte-identical to before. Padding / margin /
     font-size / line-height ONLY — nothing hidden. Payment options
     (cash 46px, online 80px) and the 44px submit button are NOT
     touched: the options are the radio tap targets and must stay
     >=44px, so the saving comes from section chrome, review text,
     the payment-note/breakdown line-heights and the submitbar chrome.
     Floors kept: review body 12px, fine print 11.5px, submit 44px.
     V16.2 FIX ROUND 2: the <=768px round-2 cuts above would be undone
     here by the older 4px/1.4 values, so they are re-applied: panel
     padding-bottom 4 -> 2px, breakdown-row line-height 1.4 -> 1.3,
     submitbar padding 4 -> 3px vertical + margin-top 4 -> 2px. */
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] { padding-bottom: 2px; }
  .tbm-pro[data-tbm-ui] [data-step-panel="5"] h2 { font-size: 16px; line-height: 1.15; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section { padding: 2px 12px; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section p { font-size: 12px; line-height: 1.25; }
  /* Guard: review-section p rule above must not shrink the payment
     option labels even if they are <p> elements — options stay
     exactly 13px/1.3 as before (tap-target floor). */
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option p,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option p { font-size: 13px; line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice { gap: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-payment legend,
  body .tbm-pro[data-tbm-ui] .tbm-payment-choice legend { font-size: 12.5px; margin-bottom: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-note { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section .tbm-v12-payment-note { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown { padding-top: 2px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row { line-height: 1.3; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar { padding: 3px 12px; margin-top: 2px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total strong { font-size: 16px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-submit-fine { line-height: 1.3; }
  /* V16.1 — D10 recalibration: header is 72px total at <=360px (was
     90px), so scroll-margin-top is 75px here (header + ~3px). */
  [data-step-panel], .tbm-pro-results, .tbm-result-heading, .tbm-v16-tour-journey, .tbm-v16-tour-journey-title, .v16-booking-section { scroll-margin-top: 75px; }
}

/* =====================================================================
 * V16.2 — FREE ADDRESS AUTOCOMPLETE DROPDOWN (2026-11-30; no Google)
 * Markup (built by pro.js, one <ul class="tbm-suggest-list"> per
 * .tbm-autocomplete input, appended to the input's wrapping <label>):
 *   <ul class="tbm-suggest-list" role="listbox">
 *     <li class="tbm-suggest-option" role="option" aria-selected>
 *       <span class="tbm-suggest-label">Lisbon Airport</span>
 *       <span class="tbm-suggest-secondary">Lisboa, Portugal</span>
 *     </li> …
 *   </ul>
 * The listbox is position:absolute; left:0; right:0; top:100%, so it
 * overlays the content below without pushing the form down and
 * without causing h-overflow (width = the label width, box-sizing
 * border-box). Active/hovered option: navy background, white text
 * (the secondary line goes translucent white); the gold left border
 * was NOT used, so the active state is one consistent treatment.
 * z-index 1200 sits above the form content, above the sticky header
 * (z-index 100 in v16.css) and — since V16.2.3 — above the Leaflet
 * route map panes (Leaflet's panes top out at z-index 1000, and the
 * map sits below the address fields in Step 1). The dropdown is
 * transient (it closes on selection, blur, Escape, Tab or a tap on
 * the map), so overlaying the header while open is acceptable; what
 * must never happen is the map painting over the dropdown.
 * The parent label/.tbm-field gets position:relative here;
 * pro.js also sets it inline if computed position is still static,
 * so a non-label server template still anchors correctly. The grid
 * layout of the Step 1 fields is untouched (position:relative does
 * not change grid placement). Rounded corners match the inputs
 * (var(--radius-input) = 10px).
 * HEIGHT vs CONTINUE BUTTON (390px, estimated from the V16.1 QA
 * measurements — Step 1 panel 692px tall, form top ~415px at scroll
 * 0): pickup input bottom ≈ 505px, search ("Find my ride") button
 * top ≈ 1050px, so ~545px of clearance; drop-off ≈ 475px. The list
 * caps at 6 items with max-height 240px (≈ 4–5 options visible at
 * ~50px each: 8px + 8px padding + ~18px primary + ~16px secondary;
 * the 6th scrolls), i.e. 244px tall including the 4px top margin —
 * roughly half the clearance, so the open dropdown cannot reach the
 * button from either address field. In the Step 2 tour journey row
 * it overlays the vehicle rows below (expected overlay behaviour;
 * it closes on selection, blur, Escape or Tab). Live-browser
 * verification of the exact numbers is still required at staging.
 * ===================================================================== */
.tbm-pro[data-tbm-ui] .tbm-pro-form label:has(> input.tbm-autocomplete),
.tbm-pro[data-tbm-ui] .tbm-pro-form .tbm-field:has(> input.tbm-autocomplete),
.tbm-pro[data-tbm-ui] .tbm-v16-tour-journey-pickup {
  position: relative;
}
.tbm-suggest-list {
  position: absolute; left: 0; right: 0; top: 100%;
  box-sizing: border-box; max-width: 100%;
  margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--border); border-radius: var(--radius-input);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  z-index: 1200; max-height: 240px; overflow-y: auto; overflow-x: hidden;
}
.tbm-suggest-option {
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.tbm-suggest-label { display: block; font-size: 14px; line-height: 1.3; color: var(--navy); }
.tbm-suggest-secondary { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.tbm-suggest-option:hover,
.tbm-suggest-option.is-active,
.tbm-suggest-option[aria-selected="true"] {
  background: var(--navy); color: var(--white);
}
.tbm-suggest-option:hover .tbm-suggest-label,
.tbm-suggest-option.is-active .tbm-suggest-label,
.tbm-suggest-option[aria-selected="true"] .tbm-suggest-label { color: var(--white); }
.tbm-suggest-option:hover .tbm-suggest-secondary,
.tbm-suggest-option.is-active .tbm-suggest-secondary,
.tbm-suggest-option[aria-selected="true"] .tbm-suggest-secondary { color: rgba(255, 255, 255, .75); }
.tbm-suggest-option.is-disabled { cursor: default; color: var(--muted); font-size: 13px; }
.tbm-suggest-option.is-disabled:hover { background: transparent; color: var(--muted); }
/* Visually-hidden live region for the result-count announcement. */
.tbm-suggest-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =====================================================================
 * V16.2.3 — COMPACT EMPTY BOOKING SUMMARY (pro.js tags .is-empty)
 * Root cause (measured live on staging 2026-11-30, 390 px): the
 * collapsed summary is already compact (70 px: head 44 + padding 24
 * + border 2; the body is display:none via the plugin's
 * tbm-booking.css collapse rule, not this sheet). The empty area
 * appears when the customer taps "View breakdown" with no journey:
 * the expanded body is 195.6 px — a date/time/pax meta line built
 * from the form's shipping defaults (today, a default time, 1
 * passenger) even though no journey exists, the v_sum_empty text,
 * and a "Total —" row — plus dead space from the empty route <p>
 * (4 px margin) and the empty rows <div> (10 px top padding). The
 * D8 90 px slot padding below the summary is NOT the cause and is
 * untouched. Fix: pro.js leaves route/meta empty and tags .is-empty
 * until a real journey exists; these rules hide the empty rows/total
 * and zero the dead space, so the expanded empty body collapses to
 * the v_sum_empty text alone (~21 px + the head). Once a journey
 * exists the class is removed and every line renders as before.
 * Specificity: body prefix (0,3,1+) beats the plugin sheet's plain
 * class rules; the collapse rule itself (body display:none unless
 * .is-expanded) lives in tbm-booking.css and is not touched.
 * ===================================================================== */
body .tbm-pro[data-tbm-ui] .tbm-v12-summary-route:empty,
body .tbm-pro[data-tbm-ui] .tbm-v12-summary-meta:empty {
  display: none;
  margin: 0;
}
body .tbm-pro[data-tbm-ui] .tbm-v12-summary-rows:empty {
  padding: 0;
}
body .tbm-pro[data-tbm-ui] .tbm-v12-summary.is-empty .tbm-v12-summary-rows,
body .tbm-pro[data-tbm-ui] .tbm-v12-summary.is-empty .tbm-v12-summary-total {
  display: none;
}

/* =====================================================================
 * V16.2.3 — LIVE ROUTE PREVIEW MAP (Leaflet 1.9.4 + OSM tiles)
 * Markup (built by pro.js buildRouteMap(), Step 1, immediately before
 * the "Find my ride" button; taxi forms only):
 *   <div class="tbm-route-map-wrap">
 *     <p class="tbm-route-map-placeholder" data-route-placeholder>
 *       Select your pickup and drop-off locations to preview your route.
 *     </p>
 *     <div class="tbm-route-map-bar" data-route-bar hidden>
 *       Distance <strong>8.0 km</strong> · Duration <strong>13 min</strong>
 *     </div>
 *     <div class="tbm-route-map" id="tbm-route-map" hidden></div>
 *     <p class="tbm-route-map-note" data-route-note hidden></p>
 *   </div>
 * Two states, one wrapper. GATED (V16.2.3 fit fix): the whole wrap
 * starts hidden (wrap.hidden, set by pro.js) so Step 1 at load renders
 * exactly as the §16.2.2 baseline and fits; it is revealed once the
 * customer focuses/types in a location field and is never hidden
 * again. PLACEHOLDER (no valid route yet): only the compact
 * instruction strip is in flow — the Leaflet box is hidden —
 * so Step 1 stays near its old height and still fits without the map
 * shown. LOADED: the strip hides and the bar + map box show. The
 * strip text is the state message (placeholder / loading /
 * unavailable); the note below the box carries the manual-entry
 * notes (v_map_manual_note / v_map_manual_unverified).
 * Height: 180 px mobile, 260 px desktop. The bar sits ABOVE the map
 * so distance/duration are visible without scrolling. Navy/gold only
 * (var(--navy) line + markers, var(--gold-bright) marker letters); no
 * orange/amber anywhere. The suggest dropdown (z-index 1200) sits
 * above the map; pro.js also closes it on map pointerdown.
 * Leaflet's own CSS (enqueued by the server) supplies the tile pane,
 * controls and attribution styling; these rules only size the box,
 * style the strip/bar/note and the A/B divIcon markers (Leaflet's
 * default divIcon is a white box — background/border are reset here).
 * ===================================================================== */
.tbm-route-map-wrap {
  margin: 10px 0 12px;
}
/* V16.2.3 fit fix: the gated wrap must take no space at load. */
.tbm-route-map-wrap[hidden] {
  display: none;
}
/* FIX ROUND 7 — Decision 4 (map layout-shift): reserve the loaded
   height as soon as the wrap is revealed, so the map loading ~1.2 s
   after typing does NOT push the submit button down. The wrap is
   still hidden (display:none) at load so Step 1 fits; once engage()
   reveals it, it immediately occupies the full loaded height
   (bar + map + wrap margins = 26 + 260 + 22 = 308px desktop,
   26 + 180 + 18 = 224px mobile). The placeholder is a skeleton of
   the same height (bar + map = 286px desktop / 206px mobile) with
   its text vertically centred, so the strip-to-map transition swaps
   content inside already-reserved space and the button never moves.
   The manual-entry note (below the map, ~27px, only when the route
   was server-geocoded from typed labels) can still add ~27px in
   that edge case; it is not reserved, to avoid permanent empty
   space in the common verified-selection case. */
.tbm-route-map-wrap:not([hidden]) {
  min-height: 308px;
}
.tbm-route-map-placeholder {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  min-height: 286px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tbm-route-map-placeholder[hidden] {
  display: none;
}
.tbm-route-map-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--navy);
}
.tbm-route-map-bar[hidden] {
  display: none;
}
.tbm-route-map-stat > span {
  color: var(--muted);
  margin-right: 4px;
}
.tbm-route-map-stat > strong {
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}
.tbm-route-map {
  position: relative;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #eef2f7;
}
.tbm-route-map[hidden] {
  display: none;
}
.tbm-route-map-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.tbm-route-map-note[hidden] {
  display: none;
}
/* A/B divIcon markers: navy disc, gold letter. */
.tbm-route-marker {
  background: transparent;
  border: 0;
}
.tbm-route-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}
@media (max-width: 768px) {
  .tbm-route-map {
    height: 180px;
  }
  .tbm-route-map-wrap {
    margin: 8px 0 10px;
  }
  /* FIX ROUND 7 — Decision 4: mobile reserve (bar 26 + map 180 +
     wrap margins 18 = 224px; placeholder skeleton 206px). */
  .tbm-route-map-wrap:not([hidden]) {
    min-height: 224px;
  }
  .tbm-route-map-placeholder {
    min-height: 206px;
  }
}

/* =====================================================================
 * V16.3 — REVIEW REDESIGN (Phase 4) + SUMMARY WIDGET (Phase 5)
 * (2026-12-01; owner brief). Step 5 structure, confirmed live
 * (before-capture v163-before-capture.json, EN@390/320 + DE@390):
 *   [data-step-panel="5"] > h2 + 4 x .tbm-v12-review-section
 *     (journey / vehicle / extras / payment, each with
 *     .tbm-v12-review-section-head > h3 + .tbm-v12-review-edit
 *     [data-goto-step]) + .tbm-v12-breakdown (rows incl. .is-total)
 *     + .tbm-v12-submitbar (.tbm-v12-submit-total + submit button
 *     [data-v12-action="final"]) + .tbm-v12-submit-fine +
 *     .tbm-pro-msg (Step 5 status line).
 * The server template is NOT on disk (plugin shortcode), so the
 * structure is restyled, not re-marked-up: the only markup change
 * is in pro.js renderReview (vehicle image + "No extras selected").
 * All selectors below are scoped to [data-step-panel="5"] or
 * .tbm-v12-summary, so Steps 1–4, the homepage and fleet pages are
 * untouched. They sit LAST in this file, so at equal specificity
 * they win over the fix-round-3/4 and V16.2 review-compaction rules
 * by order; no !important (the staging Customizer CSS contains no
 * rule touching review-section / submitbar / pay-option /
 * breakdown / submit-fine / submit-total — verified 2026-11-30).
 * Expected Step 5 growth (estimate, parent QA to measure live):
 *   EN@390 644 -> ~748px (still fits 844), DE@390 693 -> ~797px
 *   and EN@320 698 -> ~802px (scroll cleanly, inside the owner's
 *   Step-5-may-scroll allowance). No content is hidden or clipped.
 * ===================================================================== */

/* --- (A–D) Numbered review sections ---------------------------------- */
/* The panel counts its four review sections; each section gets a navy
 * number disc in a left rail. Numbers are pure CSS counters — no new
 * strings, so all five languages render identically. The disc sits in
 * the section's own left padding, so the h3 + Edit head row and the
 * body text align on the same 44px rail. */
.tbm-pro[data-tbm-ui] [data-step-panel="5"] { counter-reset: v16-review; }
body .tbm-pro[data-tbm-ui] .tbm-v12-review-section {
  counter-increment: v16-review;
  position: relative;
  padding: 8px 12px 8px 44px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
body .tbm-pro[data-tbm-ui] .tbm-v12-review-section::before {
  content: counter(v16-review);
  position: absolute; left: 12px; top: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  font-size: 13px; font-weight: 800; line-height: 24px; text-align: center;
}

/* --- (B) Selected Vehicle — larger thumbnail -------------------------- */
/* pro.js renderReview (V16.3) wraps the vehicle body in
   .tbm-v12-review-vehicle with the server image (same URL as the
   Step 2 card) at 112x63 — about 3.5x the old 56x36 thumbnail area,
   still 16:9, object-fit: cover. No image from the server => no
   <img>, the name/capacity/price render exactly as before. The
   existing per-section Edit link (data-goto-step="2") is unchanged. */
body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle { display: flex; gap: 12px; align-items: flex-start; }
body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-img {
  width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; display: block;
}
body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-text { flex: 1 1 auto; min-width: 0; }
body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-text p { margin: 0 0 2px; }
body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-text p:first-child { font-size: 15px; }

/* --- (C) Extras — "No extras selected" -------------------------------- */
/* pro.js renderReview (V16.3) renders the empty state as
   <p class="tbm-v12-review-no-extras">No extras selected</p> (new key
   v_review_no_extras) instead of a bare "—". Muted italic, so it
   reads as an explicit empty state, not a missing value. Only
   selected extras are ever listed (unchanged). */
body .tbm-pro[data-tbm-ui] .tbm-v12-review-no-extras { color: var(--muted); font-style: italic; }

/* --- (D) Payment Method ------------------------------------------------ */
/* The options are server-gated (pro.js renderPayment renders "Pay
   online securely" ONLY when cfg.online_methods is non-empty — the
   live Stripe/Card+Link integration; this redesign does NOT enable,
   disable or reconfigure any payment method). Cash stays the default
   with its "No payment is taken now." note; the online note ("You'll
   continue to secure checkout after sending your request.") and the
   payment note ("Online checkout: … Final available methods are
   shown at checkout.") are unchanged in wording — the note text
   comes from the server (cfg.online_methods). What changes here is
   presentation: clear radio cards with a visible gold checked state.
   The :has() checked rule is progressive enhancement (modern
   browsers); without it the radio dot still shows the selection. */
body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
body .tbm-pro[data-tbm-ui] .tbm-payment-option {
  border: 1px solid var(--border); border-radius: var(--radius-input);
  background: var(--surface);
}
body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option:has(input:checked),
body .tbm-pro[data-tbm-ui] .tbm-payment-option:has(input:checked) {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold-bright);
}

/* --- (E) Fare Breakdown — one prominent total -------------------------- */
/* The breakdown is the ONLY total on Step 5 after this redesign:
   the submit-bar total (same number, directly below) and the
   "Your booking" widget (same number again) are both removed (see
   below + Phase 5). Rows stay as rendered by refreshTotals()
   (vehicle fare + extras + total, all server values — no fare,
   tax or fee is invented or changed). */
body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown {
  border-top: 1px solid var(--border);
  padding-top: 6px; margin-top: 6px;
}
body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 4px; }
body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total strong { font-size: 20px; color: var(--navy); }

/* --- (F) Final Action — one large gold button --------------------------- */
/* The submit button keeps its server label ("Request this ride" /
   translated) and its [data-v12-action="final"] binding. It is now
   full-width, 52px, 17px — the single primary action on the step.
   The duplicate total line in the bar is hidden (the breakdown
   "Trip total" directly above is the single total); the element
   stays in the DOM and refreshTotals() still writes to it, so no
   JS changes. The fine print under the button is untouched. */
body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar .tbm-v12-submit-total { display: none; }
body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar button[type="submit"] {
  min-height: 52px; padding: 13px 19px; font-size: 17px; font-weight: 800;
  background: var(--gold-bright); color: var(--navy); width: 100%;
  border: 1px solid transparent; border-radius: var(--radius-btn);
}
body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar button[type="submit"]:disabled { opacity: 0.7; cursor: wait; }

/* --- §16.3.1 — Payment-option labels: word-boundary wrapping --------- */
/* The plugin's tbm-booking.css sets `overflow-wrap: anywhere` on
   .tbm-v12-review-section (so long typed addresses/references never
   force overflow), and overflow-wrap is inherited — so the Step 5
   payment radio labels inherited `anywhere` and broke mid-word at
   320px (EN "Pay onlin/e", PT "segurança"→"segura/nça", DE
   "Online"→"Onlin/e", "vorgenommen." split). `break-word` keeps
   wrapping at word boundaries and only breaks a single token that
   alone would overflow the line. The review-section rule itself is
   left untouched, so long addresses/references elsewhere in the
   review still wrap anywhere. (QA v16-1630 §6.3; probe JSONs
   confirmed computed overflow-wrap:anywhere on the labels.) */
body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
body .tbm-pro[data-tbm-ui] .tbm-payment-option { overflow-wrap: break-word; }

/* Step 5 status line (loading + error states). pro.js step5Msg()
   writes here ("Saving your request…" while submitting; the error
   text + retry note on failure, with .is-error since V16.3). The
   base rule is deliberately unboxed: while empty the element adds
   no visible height (and :empty hides it entirely when the template
   renders it whitespace-free); on error it reads as a red-tinted
   status box. (aria-live on this element lives in the server
   template, which is not on disk — follow-up for the template
   owner.) */
body .tbm-pro[data-tbm-ui] [data-step-panel="5"] .tbm-pro-msg:empty { display: none; }
body .tbm-pro[data-tbm-ui] [data-step-panel="5"] .tbm-pro-msg {
  margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--navy);
}
body .tbm-pro[data-tbm-ui] [data-step-panel="5"] .tbm-pro-msg.is-error {
  display: block; padding: 10px 12px;
  border: 1px solid #FCA5A5; border-radius: var(--radius-input);
  background: #FEF2F2; color: #991B1B;
}

/* --- Phase 5 — "Your booking" widget ---------------------------------- */
/* VERDICT (measured live, before-capture): on Step 5 the widget is
   REDUNDANT — it sits directly below the Review panel (mobile slot,
   316x70 collapsed at EN@390) and repeats the same journey, vehicle,
   extras and total the Review sections show (three displays of
   €14.60 on one screen: breakdown total + submit-bar total +
   widget). It is REQUIRED on Steps 1–4, where it is the only
   running total (collapsed to the head + "View breakdown" toggle;
   the empty state already collapses to the v_sum_empty text only,
   V16.2.3). So: hide it while the Review step is open — pro.js
   showStep() sets body.tbm-review-open exactly for step 5 — and
   leave it untouched everywhere else. The widget node is the same
   element in both placements (mobile slot / desktop aside), so one
   rule covers both. showSuccess() already hides the slot after
   submission; this rule only removes the in-flow duplicate. */
body.tbm-review-open .tbm-v12-summary.tbm-v12-summary { display: none; }

@media (max-width: 768px) {
  /* V16.3 Review — mobile: tighter section padding, smaller number
     disc, review vehicle image 96x54, vehicle name 14px, total 19px.
     The submit button stays 52px / 17px at every width. */
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section { padding: 6px 12px 6px 40px; margin-bottom: 6px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-section::before { left: 10px; top: 8px; width: 22px; height: 22px; font-size: 12px; line-height: 22px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-img { width: 96px; height: 54px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-text p:first-child { font-size: 14px; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-breakdown-row.is-total strong { font-size: 19px; }
}
@media (max-width: 360px) {
  /* V16.3 Review — 320px: review vehicle image 88x50, still 16:9. */
  body .tbm-pro[data-tbm-ui] .tbm-v12-review-vehicle-img { width: 88px; height: 50px; }
  /* §16.3.1 — DE@320 final-submit label ("Diese Fahrt anfragen→")
     wrapped to 2 lines at 17px/800 (238×72px): label 180.9 + gap 8 +
     arrow 14.3 ≈ 203px vs 198px content width. 15px keeps it on one
     line at 52px (label ≈180px, ~18px slack measured in the VM's wide
     fallback font; Inter/Roboto on real phones is narrower, so live
     slack is larger). Padding/min-height unchanged; verified in a
     width-constrained local reproduction (238px button: 17px→72px,
     15px→52px, single line). (QA v16-1630 §6.2.) */
  body .tbm-pro[data-tbm-ui] .tbm-v12-submitbar button[type="submit"] { font-size: 15px; }
}
@media (max-width: 430px) {
  /* §16.3.3 — payment-option grid scope widened 360px -> 430px (QA
     v16-1632 §3, gating): the §16.3.2 "390 has room" assumption was
     wrong — min-content sums don't predict flex distribution. Measured
     in the full live container chain (label widths reproduce live QA
     exactly: 208px at 320, 262px at 390; same per-word Range probe):
     the flex row breaks words at 375px in EN/PT/DE ("securely",
     "segurança", "bezahlen"), at 390px in EN/DE, at 395px in EN/DE,
     and at 400/405px in DE ("bezahlen" span 56/58px vs ~59px word);
     the widest flex-break width is 405px. At 410/412px flex is clean
     only at 0px slack (DE span == 59px word) and at 414/415px at 1px
     slack — not shippable margin. Flex is first provably safe with
     real margin at 430px (DE span 64px vs 59px word, 5px slack;
     440px: 67px, 8px slack; also clean at 480/560/720). So the grid
     now covers every QA phone width (320/360/375/390/414/430) and
     flex resumes at 431px+ (verified: display=flex at 440px, zero
     breaks). 430px is already the codebase's phone boundary (plugin
     stepper rule uses max-width: 430px); the grid does NOT reach
     tablet widths. Grid declarations unchanged from §16.3.2; the
     §16.3.1 DE-button 15px rule and the review-vehicle 88x50 rule
     stay at <=360px (no defect measured for either above 360px).
     (Scripts v1633-measure-paylabels.js + v1633-measure-fine.js.) */
  /* §16.3.2 — 320px payment-option labels: grid stack (radio | title /
     note). CORRECTED root cause (QA v16-1631 §4.2; the §16.3.1
     overflow-wrap diagnosis was wrong): the plugin lays the label out
     as a flex ROW — [radio 20px][title <span>][note <small>] side by
     side — squeezing the title span to 38px at 320px, so no
     overflow-wrap value can stop a word longer than its container
     from breaking (EN "onlin/e", PT "segura/nça", DE "Onlin/e",
     "vorgenommen." split; geometry pixel-identical with break-word).
     The layout must change: a 2-column grid puts the radio in a
     20px column and stacks title + note in a 152px text column, so
     every word fits and wraps only at word boundaries. Scope was
     <=360px in §16.3.2; widened to <=430px by §16.3.3 (see note
     above) — the "flex has room above 360px" claim was wrong (QA
     v16-1632 §3). Radio keeps its 20px + 1px top offset (top-aligned with
     the title's first line); the §16.3.1 break-word override stays
     (harmless, correct once the text has room). Measured in a
     width-constrained local reproduction (live plugin + theme CSS,
     208px labels, real EN/PT/DE/FR strings, same per-word Range
     probe as QA): CURRENT breaks in EN/PT/DE (span 38-49px), grid
     breaks=[] in all 4 languages (span/note 152px); option heights
     EN -15px, DE -44px, PT +1px, FR +2px (script
     v1632-measure-paylabels.js). (QA v16-1631 §4.3.) */
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas: "radio title" "radio note";
    gap: 2px 10px;
    align-items: start;
  }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option > input[type="radio"],
  body .tbm-pro[data-tbm-ui] .tbm-payment-option > input[type="radio"] { grid-area: radio; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option > span,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option > span { grid-area: title; min-width: 0; }
  body .tbm-pro[data-tbm-ui] .tbm-v12-pay-option > small,
  body .tbm-pro[data-tbm-ui] .tbm-payment-option > small { grid-area: note; min-width: 0; }
}
