/* =========================================================================
   Marginseye Travel – landing page styles (v2)
   - Everything is scoped under .mst-root so the theme is not affected.
   - Layout responds to the width of the page area (container queries),
     not only the screen, so nothing is cut off inside narrow theme columns.
   ========================================================================= */

.mst-root {
  --mst-navy: #0f2a4a;
  --mst-navy-2: #17406b;
  --mst-accent: #f2a516;
  --mst-accent-dark: #b87700;
  --mst-ink: #1d2733;
  --mst-muted: #5b6776;
  --mst-line: #e1e7ee;
  --mst-soft: #f4f7fa;
  --mst-good: #157a3e;
  --mst-bad: #a61b1b;
  --mst-wa: #1fa855;
  --mst-radius: 14px;
  --mst-shadow: 0 6px 22px rgba(15, 42, 74, .08);
  --mst-pad: clamp(16px, 4cqi, 28px);
  container-type: inline-size;
  container-name: mst;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--mst-ink);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

/* ---------- resets (zero specificity so components win) ---------- */
:where(.mst-root) *, :where(.mst-root) *::before, :where(.mst-root) *::after { box-sizing: border-box; }
:where(.mst-root) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, pre) { margin: 0; padding: 0; }
:where(.mst-root) :where(ul, ol) { list-style: none; }
:where(.mst-root) a { color: inherit; text-decoration: none; }
:where(.mst-root) :where(img, svg) { max-width: 100%; display: block; }
:where(.mst-root) :where(button, input, select, textarea) { font: inherit; color: inherit; margin: 0; }
:where(.mst-root) fieldset { border: 0; min-width: 0; }
/* Theme heading fonts, sizes and transforms must not leak in */
.mst-root :is(h1, h2, h3, h4) { font-family: inherit; letter-spacing: -0.01em; text-transform: none; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.mst-root a.mst-btn, .mst-root button.mst-btn { text-decoration: none; text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; }
.mst-root :is(p, li, dd, dt, span, small, strong, a, label) { overflow-wrap: break-word; }
.mst-root [hidden] { display: none !important; }
/* Theme link and button styles must not leak in */
.mst-root a { color: inherit; text-decoration: none; }
.mst-root :is(button, .mst-btn, .mst-chip, .mst-tab, .mst-intent, .mst-tag, .mst-link-btn, .mst-pill) { text-transform: none; letter-spacing: normal; font-family: inherit; text-shadow: none; }

/* ---------- layout helpers ---------- */
.mst-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--mst-pad); }
.mst-section { padding: clamp(40px, 7cqi, 72px) 0; }
.mst-alt { background: var(--mst-soft); }
.mst-head { margin-bottom: clamp(20px, 3.5cqi, 32px); max-width: 760px; }
.mst-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--mst-accent-dark); margin-bottom: 8px; }
.mst-h2 { font-size: clamp(24px, 3.4cqi, 36px); font-weight: 800; color: var(--mst-navy); margin-bottom: 10px; }
.mst-h3 { font-size: clamp(17px, 1.9cqi, 19px); font-weight: 800; color: var(--mst-navy); }
.mst-lead { color: var(--mst-muted); font-size: clamp(15.5px, 1.6cqi, 17px); }
.mst-fine { font-size: 13px; color: var(--mst-muted); }
.mst-center { text-align: center; }
.mst-mt { margin-top: 16px; }
.mst-nowrap { white-space: nowrap; }
.mst-strong { font-weight: 800; color: var(--mst-navy); }
.mst-grow { flex: 1 1 auto; }
.mst-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Auto-fitting grids: as many columns as fit, never narrower than the minimum,
   and a single full-width column on small screens. */
.mst-auto { display: grid; gap: clamp(14px, 2cqi, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--mst-min, 260px)), 1fr)); }
.mst-auto > * { min-width: 0; }
.mst-auto-220 { --mst-min: 220px; }
.mst-auto-240 { --mst-min: 240px; }
.mst-auto-280 { --mst-min: 280px; }
.mst-auto-300 { --mst-min: 300px; }

.mst-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4cqi, 48px); align-items: center; }
.mst-split-book { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }

/* ---------- buttons ---------- */
.mst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; white-space: nowrap; max-width: 100%; }
.mst-btn:hover { transform: translateY(-1px); }
.mst-btn:focus-visible, .mst-root :is(input, select, textarea, summary, .mst-chip, .mst-tab, .mst-intent):focus-visible { outline: 3px solid var(--mst-accent); outline-offset: 2px; }
.mst-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.mst-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mst-btn-primary { background: var(--mst-accent); color: #1b1300; }
.mst-btn-primary:hover { background: #ffb52a; }
.mst-btn-navy { background: var(--mst-navy); color: #fff; }
.mst-btn-navy:hover { background: var(--mst-navy-2); }
.mst-btn-line { background: #fff; color: var(--mst-navy); border-color: var(--mst-line); }
.mst-btn-line:hover { border-color: var(--mst-navy); }
.mst-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.mst-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.mst-btn-wa { background: var(--mst-wa); color: #fff; }
.mst-btn-wa:hover { background: #18914a; }
.mst-btn-sm { min-height: 42px; padding: 9px 14px; font-size: 14px; }
.mst-btn-icon { flex: 0 0 auto; width: 46px; padding: 0; }
.mst-btn-block { display: flex; width: 100%; }
.mst-link-btn { background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; color: var(--mst-bad); font-size: 13px; font-weight: 700; cursor: pointer; }
.mst-link-btn svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.mst-hero { background: radial-gradient(1100px 480px at 85% -10%, #2b5d92 0%, transparent 60%), linear-gradient(135deg, #0b2140 0%, #0f2a4a 55%, #17406b 100%); color: #fff; padding: clamp(36px, 7cqi, 72px) 0 clamp(32px, 6cqi, 64px); }
.mst-hero-copy { min-width: 0; }
.mst-crumbs { font-size: 13px; color: #b9cde3; margin-bottom: 14px; }
.mst-crumbs a { text-decoration: underline; }
.mst-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; color: #cfe0f3; margin-bottom: 18px; }
.mst-brand-mark { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--mst-accent); color: #1b1300; display: grid; place-items: center; font-weight: 900; }
.mst-hero h1 { font-size: clamp(28px, 5.2cqi, 52px); line-height: 1.1; font-weight: 800; color: #fff; margin-bottom: 14px; }
.mst-hero h1 em { font-style: normal; color: var(--mst-accent); }
.mst-sub { font-size: clamp(15.5px, 1.9cqi, 18px); color: #d6e3f1; max-width: 580px; margin-bottom: 22px; }
.mst-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: #cfe0f3; }
.mst-badges li { display: inline-flex; align-items: center; gap: 7px; }
.mst-badges svg { width: 17px; height: 17px; color: var(--mst-accent); }
.mst-intents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.mst-intents > span { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fb9d6; }
.mst-intent { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.mst-intent:hover { background: rgba(255, 255, 255, .16); }
.mst-intent svg { width: 16px; height: 16px; color: var(--mst-accent); }
.mst-hero-card { background: #fff; color: var(--mst-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); min-width: 0; }
.mst-hero-card .mst-art { aspect-ratio: 16 / 7; }
.mst-hero-card-body { padding: 18px 20px 20px; }
.mst-hero-card .mst-h3 { margin-bottom: 10px; }
.mst-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; font-size: 15px; }
.mst-mini dd { font-weight: 800; color: var(--mst-navy); text-align: right; white-space: nowrap; }
.mst-hero-card .mst-fine { margin-top: 10px; }

/* ---------- vehicle art ---------- */
.mst-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #f2f5f9 0%, #e3e9f0 100%); display: grid; place-items: center; overflow: hidden; }
.mst-art img { width: 100%; height: 100%; object-fit: cover; }
.mst-art svg { width: 86%; height: auto; }
.mst-cat { position: absolute; top: 10px; left: 10px; background: rgba(15, 42, 74, .92); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.mst-cat-inline { position: static; align-self: flex-start; }
.mst-rep { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: var(--mst-muted); background: rgba(255, 255, 255, .88); padding: 2px 8px; border-radius: 6px; }

/* ---------- tiles (services, transfers, contact) ---------- */
.mst-tile { background: #fff; border: 1px solid var(--mst-line); border-radius: var(--mst-radius); padding: 20px; box-shadow: var(--mst-shadow); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mst-tile p { color: var(--mst-muted); font-size: 15px; }
.mst-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: #fff3d6; color: var(--mst-accent-dark); display: grid; place-items: center; }
.mst-ico svg { width: 21px; height: 21px; }
.mst-sprice { font-size: 14px; font-weight: 800; color: var(--mst-accent-dark); }
.mst-big { font-size: 24px; font-weight: 800; color: var(--mst-navy); }
.mst-big small { font-size: 14px; color: var(--mst-muted); font-weight: 600; }
.mst-transfer .mst-btn { margin-top: auto; align-self: flex-start; }

/* ---------- fleet ---------- */
.mst-fleet-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.mst-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mst-chip { border: 1px solid var(--mst-line); background: #fff; color: var(--mst-ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.mst-chip[aria-pressed="true"] { background: var(--mst-navy); border-color: var(--mst-navy); color: #fff; }
.mst-toggle { display: inline-flex; background: #e6ecf3; border-radius: 12px; padding: 4px; max-width: 100%; }
.mst-toggle button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--mst-muted); white-space: nowrap; }
.mst-toggle button[aria-pressed="true"] { background: #fff; color: var(--mst-navy); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.mst-toggle-wide { display: flex; width: 100%; max-width: 520px; }
.mst-toggle-wide button { flex: 1 1 0; white-space: normal; }
.mst-card { background: #fff; border: 1px solid var(--mst-line); border-radius: var(--mst-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--mst-shadow); min-width: 0; scroll-margin-top: 90px; }
.mst-card-hl { outline: 3px solid var(--mst-accent); }
.mst-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mst-card .mst-h3 a:hover { text-decoration: underline; }
.mst-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--mst-muted); }
.mst-specs li { display: inline-flex; align-items: center; gap: 5px; }
.mst-specs svg { width: 15px; height: 15px; }
.mst-best { font-size: 14.5px; }
.mst-price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--mst-line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.mst-price strong { font-size: 22px; color: var(--mst-navy); }
.mst-price small { font-size: 13px; color: var(--mst-muted); }
.mst-na { font-size: 14px; color: var(--mst-muted); font-style: italic; }
.mst-card-actions { display: flex; gap: 8px; }
.mst-card-actions .mst-btn:first-child { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
.mst-kw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mst-navy-2); }
a.mst-kw:hover { text-decoration: underline; }
.mst-kw svg { width: 14px; height: 14px; }

/* ---------- packages ---------- */
.mst-pkg .mst-card-body { gap: 12px; }
.mst-ticks { display: grid; gap: 6px; font-size: 14px; }
.mst-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.mst-ticks svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--mst-good); }
.mst-save { font-size: 12.5px; font-weight: 800; color: var(--mst-good); background: #e6f5ec; padding: 3px 9px; border-radius: 999px; }

/* ---------- booking builder and cart ---------- */
.mst-panel { background: #fff; border: 1px solid var(--mst-line); border-radius: var(--mst-radius); padding: clamp(16px, 2.6cqi, 24px); box-shadow: var(--mst-shadow); min-width: 0; }
.mst-cartpanel { position: sticky; top: 24px; scroll-margin-top: 80px; }
#mst-book { scroll-margin-top: 60px; }
.mst-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 8px; }
.mst-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--mst-line); border-radius: 12px; background: #fff; color: var(--mst-ink); font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.2; }
.mst-tab svg { width: 22px; height: 22px; color: var(--mst-accent-dark); }
.mst-tab[aria-selected="true"] { border-color: var(--mst-navy); background: var(--mst-navy); color: #fff; }
.mst-tab[aria-selected="true"] svg { color: var(--mst-accent); }
.mst-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; }
.mst-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mst-span { grid-column: 1 / -1; }
.mst-field label { font-size: 13px; font-weight: 700; }
.mst-root :is(.mst-field input, .mst-field select, .mst-field textarea) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d2dd; border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.3; box-shadow: none; }
.mst-root .mst-field textarea { min-height: 70px; resize: vertical; }
.mst-root :is(.mst-field input, .mst-field select, .mst-field textarea):focus { outline: none; border-color: var(--mst-navy-2); box-shadow: 0 0 0 3px rgba(23, 64, 107, .16); }
.mst-linepreview { margin: 16px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--mst-soft); }
.mst-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; font-size: 14px; }
.mst-kv > span:first-child { min-width: 0; }
.mst-kv > :last-child { white-space: nowrap; }
.mst-kv.mst-good { color: var(--mst-good); }
.mst-total { border-top: 1px solid var(--mst-line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.mst-total strong { font-size: 20px; color: var(--mst-navy); }
.mst-err-inline { color: var(--mst-bad); font-size: 14px; font-weight: 600; }
.mst-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.mst-pillcount { font-size: 12.5px; font-weight: 800; background: var(--mst-soft); color: var(--mst-navy); padding: 4px 10px; border-radius: 999px; }
.mst-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 8px; color: var(--mst-muted); }
.mst-empty svg { width: 34px; height: 34px; color: #b6c2cf; }
.mst-lines { display: grid; gap: 10px; margin-bottom: 12px; }
.mst-line { border: 1px solid var(--mst-line); border-radius: 12px; padding: 12px 14px; }
.mst-line-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mst-line-top > div { min-width: 0; }
.mst-break summary { cursor: pointer; font-size: 13px; color: var(--mst-navy-2); font-weight: 700; margin-top: 6px; }
.mst-break[open] summary { margin-bottom: 4px; }
.mst-lines-compact .mst-line { padding: 10px 12px; }
.mst-totals { padding: 12px 0 4px; border-top: 1px solid var(--mst-line); margin-bottom: 12px; }
.mst-totals .mst-fine { font-size: 12.5px; }
.mst-due { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #fff7e3; border: 1px solid #f6dc9b; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 700; }
.mst-due strong { font-size: 22px; color: var(--mst-navy); }
.mst-note { background: #eef5ff; color: #19406b; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.mst-fieldset { margin-top: 16px; display: grid; gap: 8px; }
.mst-fieldset legend { font-size: 14px; font-weight: 800; color: var(--mst-navy); margin-bottom: 8px; padding: 0; }
.mst-radio { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--mst-line); border-radius: 12px; padding: 12px; cursor: pointer; }
.mst-radio:has(input:checked) { border-color: var(--mst-navy); background: #f3f7fc; }
.mst-radio input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--mst-navy); }
.mst-radio span { display: flex; flex-direction: column; min-width: 0; }
.mst-radio small { color: var(--mst-muted); font-size: 13px; }
.mst-disabled { opacity: .55; cursor: not-allowed; }
.mst-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.mst-check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--mst-navy); }
.mst-check a { text-decoration: underline; }
.mst-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mst-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.mst-msg.mst-ok, .mst-status.mst-ok { display: block; background: #e8f7ee; color: #145c33; }
.mst-msg.mst-err, .mst-status.mst-err { display: block; background: #fdecec; color: #8a1f1f; }
.mst-done { display: flex; flex-direction: column; gap: 10px; }
.mst-done-ico { width: 52px; height: 52px; border-radius: 50%; background: #e8f7ee; color: var(--mst-good); display: grid; place-items: center; }
.mst-done-ico svg { width: 26px; height: 26px; }
.mst-bank { white-space: pre-wrap; background: var(--mst-soft); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.mst-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--mst-soft); font-size: 14px; }
.mst-status svg { width: 18px; height: 18px; }
.mst-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #c9d6e4; border-top-color: var(--mst-navy); animation: mst-spin 1s linear infinite; flex: 0 0 auto; }
@keyframes mst-spin { to { transform: rotate(360deg); } }

/* ---------- terms, FAQ, popular searches ---------- */
.mst-acc { background: #fff; border: 1px solid var(--mst-line); border-radius: var(--mst-radius); padding: 0 18px; box-shadow: var(--mst-shadow); min-width: 0; }
.mst-acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--mst-navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mst-acc summary::-webkit-details-marker { display: none; }
.mst-acc summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--mst-accent-dark); flex: 0 0 auto; }
.mst-acc[open] summary::after { content: "–"; }
.mst-acc ul { display: grid; gap: 9px; padding-bottom: 16px; }
.mst-acc li { position: relative; padding-left: 16px; font-size: 14px; }
.mst-acc li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--mst-accent); }
.mst-acc > p { padding-bottom: 16px; color: var(--mst-ink); font-size: 15px; }
.mst-faq { display: grid; gap: 10px; max-width: 900px; }
.mst-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mst-tag { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--mst-line); font-size: 13.5px; font-weight: 600; color: var(--mst-navy-2); }
.mst-tag:hover { border-color: var(--mst-navy-2); }

/* ---------- corporate call-to-action ---------- */
.mst-cta { background: linear-gradient(135deg, #0f2a4a, #17406b); color: #fff; border-radius: 20px; padding: clamp(22px, 4cqi, 36px); align-items: center; }
.mst-cta p { color: #d6e3f1; }
.mst-cta ul { display: grid; gap: 8px; margin-top: 14px; }
.mst-cta li { display: flex; gap: 8px; align-items: flex-start; color: #eaf2fb; font-size: 15px; }
.mst-cta li svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--mst-accent); }
.mst-on-dark { color: #fff; }
.mst-cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mst-cta-actions .mst-btn { white-space: normal; text-align: center; }
.mst-foot { text-align: center; color: var(--mst-muted); font-size: 13px; padding-top: 28px; }

/* ---------- floating buttons and toast ---------- */
.mst-float { position: fixed; right: 16px; bottom: 16px; z-index: 9990; width: 54px; height: 54px; border-radius: 50%; background: var(--mst-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.mst-float svg { width: 28px; height: 28px; }
.mst-pill { position: fixed; left: 16px; bottom: 16px; z-index: 9990; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 100px); padding: 12px 16px; border: 0; border-radius: 999px; background: var(--mst-navy); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); cursor: pointer; }
.mst-pill svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mst-pill span { background: var(--mst-accent); color: #1b1300; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.mst-toast { position: fixed; left: 50%; bottom: 84px; z-index: 9991; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; background: #13263d; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mst-toast.mst-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- server-rendered fallback (before the script runs) ---------- */
.mst-ssr { padding: 24px var(--mst-pad); }
.mst-ssr h1 { font-size: clamp(26px, 4cqi, 40px); margin-bottom: 12px; }
.mst-ssr h2 { font-size: 22px; margin: 24px 0 8px; }
.mst-ssr h3 { font-size: 17px; margin: 12px 0 4px; }
.mst-ssr ul { list-style: disc; padding-left: 20px; }
.mst-ssr a { text-decoration: underline; }

/* =========================================================================
   Responsive: based on the width available to the page (container queries)
   ========================================================================= */
@container mst (max-width: 900px) {
  .mst-split, .mst-split-book { grid-template-columns: minmax(0, 1fr); }
  .mst-cartpanel { position: static; }
  .mst-hero-card { max-width: 560px; }
}
@container mst (max-width: 560px) {
  .mst-fields { grid-template-columns: minmax(0, 1fr); }
  .mst-fleet-bar { flex-direction: column; align-items: stretch; }
  .mst-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(-1 * var(--mst-pad)); padding-left: var(--mst-pad); padding-right: var(--mst-pad); scrollbar-width: none; }
  .mst-chips::-webkit-scrollbar { display: none; }
  .mst-chip { flex: 0 0 auto; }
  .mst-toggle { display: flex; }
  .mst-toggle button { flex: 1 1 0; }
  .mst-row .mst-btn { flex: 1 1 100%; }
  .mst-hero .mst-row .mst-btn { flex: 1 1 calc(50% - 5px); }
  .mst-hero .mst-row .mst-btn-ghost { flex-basis: 100%; }
  .mst-intent { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .mst-badges { gap: 6px 14px; font-size: 13px; }
  .mst-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mst-tab { flex-direction: row; justify-content: flex-start; padding: 10px 12px; }
  .mst-tab svg { width: 18px; height: 18px; }
}
@container mst (max-width: 380px) {
  .mst-hero .mst-row .mst-btn { flex-basis: 100%; }
  .mst-intent { flex-basis: 100%; }
  .mst-tabs { grid-template-columns: minmax(0, 1fr); }
}

/* Fallback for older browsers without container queries: use the screen width */
@supports not (container-type: inline-size) {
  @media (max-width: 900px) {
    .mst-split, .mst-split-book { grid-template-columns: minmax(0, 1fr); }
    .mst-cartpanel { position: static; }
  }
  @media (max-width: 560px) {
    .mst-fields { grid-template-columns: minmax(0, 1fr); }
    .mst-fleet-bar { flex-direction: column; align-items: stretch; }
    .mst-row .mst-btn, .mst-intent { flex: 1 1 100%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mst-root *, .mst-root *::before, .mst-root *::after { transition: none !important; animation: none !important; }
}
@media print {
  .mst-float, .mst-pill, .mst-toast { display: none !important; }
}
