/* The DEPARTURES STEP of /booking-shuttle (Shared Shuttle).
   Rebuilt 22 Aug 2026 in the Flixbus shape: the search bar in a white band
   on top, day tabs, one step at a time (outbound, then return), a Continue
   on every departure card, and the "Your booking" panel on the right.

   This page still wears the transfer flow's chrome: `.booking-page` and
   `.booking-layout` (booking_process.css), `.vsel-continue`, `.vsel-details`,
   `.vsel-cancel-banner`, the WhatsApp button (vehicle_select.css). What is
   below is ONLY what a DEPARTURE has and a vehicle does not. One type scale:
   px, like the files around it. */

/* ── Page shell ──────────────────────────────────────────────────────────── */
.shr-page { padding-top: 0; --shr-ink: #101828; --shr-muted: #667085; --shr-line: #e4e7ec; --shr-card-shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 20px rgba(16,24,40,.05); }
.shr-band { background: #fff; border-bottom: 1px solid var(--shr-line); box-shadow: 0 6px 24px rgba(16,24,40,.04); margin-bottom: 28px; position: relative; z-index: 5; }
.shr-band .container { padding-top: 18px; padding-bottom: 18px; }
.vsel-step.shr-page .booking-layout { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.shr-page .vsel-cancel-banner { display: flex; }

/* ── The search bar: the hero's fields (shuttle_form.css), laid out Flixbus-style ── */
.ssf-card { background: transparent; }
.ssf-empty { margin: 0; font-size: 14px; color: #8f9ca8; }
.ssf-trip { margin-bottom: 14px; }
.ssf-bar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, .8fr); gap: 10px; align-items: end; }
.ssf-bar .ssf-f-retdate[hidden] { display: none; }
.ssf-bar:not(:has(.ssf-f-retdate:not([hidden]))) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr); }
.shf-pax-pop:not([hidden]) { display: block; }
.ssf-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ssf-extra .shf-field { margin-top: 10px; }
.ssf-extra .shf-field[hidden] { display: none; }
.ssf-autowrap { position: relative; }

/* Inputs that survive for the waitlist and demand mini-forms. */
.ssf-label { display: block; font-size: 13px; font-weight: 600; color: #16181d; margin-bottom: 6px; }
.ssf-input {
    width: 100%; height: 46px; padding: 0 12px;
    border: 1px solid #d9e2e8; border-radius: 8px; background: #fff;
    font-family: inherit; font-size: 16px; color: #16181d;
}
.ssf-textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ssf-input:focus { outline: none; border-color: #16181d; }
.ssf-error { margin: 10px 0; font-size: 14px; color: #ef4444; font-weight: 600; }

/* The phone summary line (hidden on desktop: the bar is always open). */
.shr-sum-btn { display: none; }

/* ── The pinned outbound (return step) ───────────────────────────────────── */
.shr-picked {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; margin-bottom: 18px;
    background: #fff; border: 1px solid var(--shr-line); border-radius: 16px; box-shadow: var(--shr-card-shadow);
}
.shr-picked[hidden] { display: none; }
.shr-picked-ico { flex: 0 0 auto; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 14%, #fff); color: var(--color-primary); }
.shr-picked-ico svg { width: 18px; height: 18px; }
.shr-picked-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shr-picked-cap { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--shr-muted); }
.shr-picked-when { font-size: 16px; font-weight: 700; color: var(--shr-ink); }
.shr-picked-route { font-size: 14px; color: var(--shr-muted); }
.shr-picked-edit {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px;
    padding: 0 14px; border: 1px solid #cfd6de; border-radius: 999px; background: #fff;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--shr-ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.shr-picked-edit svg { width: 13px; height: 13px; }
.shr-picked-edit:hover { border-color: var(--shr-ink); background: #f8fafc; }

/* ── Day tabs: calendar tiles ────────────────────────────────────────────── */
.shr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.shr-tabs[hidden] { display: none; }
.shr-tab {
    flex: 0 1 150px; min-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    padding: 10px 14px 9px; border: 1px solid var(--shr-line); border-radius: 14px; background: #fff;
    font-family: inherit; color: var(--shr-ink); cursor: pointer; position: relative; overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shr-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background .15s; }
.shr-tab:hover { border-color: #9aa6b2; }
.shr-tab.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary) inset, var(--shr-card-shadow); }
.shr-tab.is-active::after { background: var(--color-primary); }
.shr-tab-wd { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--shr-muted); }
.shr-tab-d { font-size: 22px; font-weight: 700; line-height: 1.1; }
.shr-tab-m { font-size: 12.5px; font-weight: 500; color: var(--shr-muted); }
.shr-tab.is-active .shr-tab-wd, .shr-tab.is-active .shr-tab-m { color: var(--shr-ink); }
.shr-tab:focus-visible { outline: 2px solid var(--shr-ink); outline-offset: 2px; }

/* ── Step heading ────────────────────────────────────────────────────────── */
.shr-stephead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shr-steptitle { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--shr-ink); }
.shr-stepsub { margin: 3px 0 0; font-size: 14px; color: var(--shr-muted); }
.shr-count { flex: 0 0 auto; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--shr-line); font-size: 13px; font-weight: 600; color: var(--shr-muted); white-space: nowrap; }
.shr-count:empty { display: none; }
/* The below-minimum party notice: said above the list, the fix one tap away. */
.shr-paxnote { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; font-size: 14px; font-weight: 600; color: #92400e; }
.shr-paxnote[hidden] { display: none; }
.shr-paxnote-btn { flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid #92400e; border-radius: 10px; background: #fff; color: #92400e; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.shr-paxnote.is-flash { animation: shrFlash .9s ease-out; }
@keyframes shrFlash { 0% { box-shadow: 0 0 0 0 rgba(146,64,14,.45); } 100% { box-shadow: 0 0 0 12px rgba(146,64,14,0); } }
.vsel-group-note { margin: -6px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--shr-muted); }
.vsel-group-note[hidden] { display: none; }

/* ── Departure cards ─────────────────────────────────────────────────────── */
.shr-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.shr-card {
    position: relative; padding: 16px 20px 16px;
    background: #fff; border: 1px solid var(--shr-line); border-radius: 16px; box-shadow: var(--shr-card-shadow);
    cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shr-card:hover { border-color: #b8c2cc; box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 12px 28px rgba(16,24,40,.08); transform: translateY(-1px); }
.shr-card.is-selected { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary) inset, 0 12px 28px rgba(16,24,40,.08); }
.shr-card.is-soldout { cursor: default; box-shadow: none; }
.shr-card.is-soldout:hover { transform: none; border-color: var(--shr-line); }
.shr-card.is-soldout .shr-card-main { opacity: .5; }
.shr-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.shr-card-faces { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.shr-op { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--shr-ink); }
.shr-op-ico { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); }
.shr-op-ico svg { width: 17px; height: 17px; }
.shr-op-pill {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 14%, #fff);
    font-size: 12.5px; font-weight: 600; color: #16181d; white-space: nowrap;
}
.shr-card-main { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 0 24px; align-items: start; }
.shr-timecol { display: flex; flex-direction: column; gap: 4px; padding-right: 20px; border-right: 1px solid var(--shr-line); min-height: 52px; }
.shr-time { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--shr-ink); line-height: 1.15; white-space: nowrap; }
.shr-direct-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.shr-route { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 3px 0; min-width: 0; }
.shr-route::before { content: ''; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; background: #d9dfe6; border-radius: 2px; }
.shr-route-stop { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 0 12px; align-items: center; }
.shr-dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--shr-ink); background: #fff; }
.shr-dot-end { border-color: var(--color-primary); background: var(--color-primary); }
.shr-stop { font-size: 15px; font-weight: 500; color: var(--shr-ink); line-height: 1.35; }
.shr-pricecol { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-left: 20px; }
.shr-price { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--shr-ink); line-height: 1.1; white-space: nowrap; }
.shr-price-cap { font-size: 12.5px; color: var(--shr-muted); margin-top: 2px; }
.shr-price-total { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--shr-muted); white-space: nowrap; }
.shr-price-total b { font-weight: 700; color: var(--shr-ink); white-space: nowrap; }
.shr-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f4; }
.shr-card-spacer { flex: 1 1 auto; }
.shr-details {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px; margin-left: -8px;
    border: 0; background: transparent;
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--shr-ink); cursor: pointer; border-radius: 8px; transition: background .15s;
}
.shr-details svg { width: 16px; height: 16px; color: var(--shr-muted); }
.shr-details:hover { background: #f2f4f7; }
.shr-continue { height: 44px; padding: 0 18px 0 22px; gap: 8px; font-size: 15px; border-radius: 12px; }
.shr-continue svg { width: 16px; height: 16px; }
.shr-continue:disabled { opacity: .55; cursor: default; }
.shr-act {
    flex: 0 0 auto; padding: 0 14px; height: 40px;
    border: 1px solid #cfd6de; border-radius: 10px; background: #fff;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--shr-ink); cursor: pointer; white-space: nowrap;
}
.shr-act:hover { border-color: var(--shr-ink); }

/* Availability faces: small pills. */
.shr-face { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.shr-face--last      { color: #b42318; background: #fef3f2; }
.shr-face--soldout   { color: #667085; background: #f2f4f7; }
.shr-face--confirmed { color: #067647; background: #ecfdf3; }
.shr-face--confirming { position: relative; color: #b54708; background: #fffaeb; cursor: help; }
.shr-face-tip {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
    width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px;
    background: #16181d; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4;
    opacity: 0; pointer-events: none; transition: opacity .12s;
}
.shr-face--confirming:hover .shr-face-tip, .shr-face--confirming:focus .shr-face-tip { opacity: 1; }

/* Loading shells + the empty/error face. */
.shr-skel { pointer-events: none; }
.shr-skel-line { display: block; height: 14px; background: #eceff3; border-radius: 8px; animation: shrSkelPulse 1.2s ease-in-out infinite; }
.shr-skel .shr-card-main { display: flex; gap: 24px; align-items: center; }
@keyframes shrSkelPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.shr-state { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid #e5ebf1; border-radius: 14px; }
.shr-state-ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #f1f3f5; color: #5a6872; display: flex; align-items: center; justify-content: center; }
.shr-state-ico svg { width: 22px; height: 22px; }
.shr-state p { margin: 0 0 12px; font-size: 14px; color: #5a6872; line-height: 1.5; }
.ssf-empty-cta {
    display: inline-block; padding: 7px 14px;
    border: 1px solid #d9e2e8; border-radius: 8px; background: #fff;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #16181d; cursor: pointer;
}
.ssf-empty-cta:hover { border-color: #16181d; background: #f7f9fb; }

/* ── Inline waitlist mini-form ───────────────────────────────────────────── */
.ssf-wl { border: 1px solid #d9e2e8; border-top: none; border-radius: 0 0 12px 12px; margin-top: -12px; padding: 16px; background: #fafbfc; }
.ssf-wl-title { font-size: 14px; font-weight: 700; color: #16181d; margin-bottom: 10px; }
.ssf-wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ssf-wl-grid .ssf-input { height: 42px; }
.ssf-wl-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: #5a6872; }
.ssf-wl-consent input { margin-top: 2px; }
.ssf-wl-send { margin-top: 12px; padding: 0 18px; height: 40px; border: none; border-radius: 8px; background: #16181d; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ssf-wl-ok { font-size: 14px; color: #15844b; font-weight: 600; }

/* ── Private-transfer upsell (plan section 8) ────────────────────────────── */
.ssf-upsell { margin: 0 0 18px; }
.ssf-upsell[hidden] { display: none; }
.ssf-up-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 18px; background: #f7f9fb; border: 1px solid #d9e2e8; border-radius: 12px; }
.ssf-up-body  { flex: 1 1 260px; min-width: 0; }
.ssf-up-title { font-size: 15px; font-weight: 700; color: #16181d; }
.ssf-up-text  { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #4b5563; }
.ssf-up-compare { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.ssf-up-cmp { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: #6b7684; }
.ssf-up-cmp strong { font-size: 15px; font-weight: 700; color: #16181d; }
.ssf-up-btn { flex: 0 0 auto; padding: 0 20px; height: 44px; border: 1.5px solid #16181d; border-radius: 10px; background: #fff; color: #16181d; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.ssf-up-btn:hover:not(:disabled) { background: #16181d; color: #fff; }
.ssf-up-btn:disabled { opacity: .55; cursor: default; }

/* ── The demand-capture fallback ("Non trovi la tua partenza?") ──────────── */
.shp-request { background: #fff; border: 1px solid #e5ebf1; border-radius: 14px; padding: 22px; margin: 8px 0 28px; }
.shp-req-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; }
.shp-req-toggle-txt { min-width: 0; }
.shp-req-toggle-title { display: block; font-size: 14.5px; font-weight: 700; color: #16181d; }
.shp-req-toggle-sub { display: block; margin-top: 2px; font-size: 13px; color: #5a6872; }
.shp-req-toggle-chev { flex: 0 0 auto; color: #8f9ca8; }
.shp-req-toggle-chev svg { display: block; width: 18px; height: 18px; }
/* Collapsed, the demand form must not read as one more departure card: no
   card chrome, a hairline over it, quieter type (owner, 23 Aug 2026). */
.shp-request.is-collapsed { background: transparent; border: 0; border-top: 1px solid var(--shr-line); border-radius: 0; padding: 18px 4px 0; margin: 18px 0 28px; }
.shp-request.is-collapsed .shp-req-toggle { display: flex; }
.shp-request.is-collapsed .shp-req-toggle-title { font-size: 14px; font-weight: 600; color: var(--shr-ink); }
.shp-request.is-collapsed .shp-req-toggle-sub { font-size: 13px; color: var(--shr-muted); }
.shp-request.is-collapsed .shp-req-body { display: none; }
.shp-request-head h2, .shp-request-head h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #16181d; }
.shp-request-head p  { margin: 0 0 14px; font-size: 14px; color: #5a6872; line-height: 1.55; }
.shp-req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shp-req-full { grid-column: 1 / -1; }
.shp-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: #5a6872; }
.shp-consent input { margin-top: 2px; }
.shp-consent a { color: var(--color-primary); }
.shp-req-send { margin-top: 14px; padding: 0 22px; height: 44px; border: none; border-radius: 8px; background: #16181d; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shp-req-send:disabled { opacity: .5; cursor: default; }
.shp-req-success h3 { margin: 0 0 6px; font-size: 16px; color: #15844b; }
.shp-req-success p  { margin: 0; font-size: 14px; color: #5a6872; }

/* ── The departure DRAWER (23 Aug 2026): the shared .vsel-details component
   as a right-side panel on desktop, a full-height sheet on phones. Only this
   overlay is restyled (#shrDetailsOverlay); the transfer's popup is untouched. */
/* The overlay lives OUTSIDE .shr-page, so the page's custom properties must be
   restated here or every var(--shr-*) inside the drawer computes to nothing. */
#shrDetailsOverlay.shr-drawer { --shr-ink: #101828; --shr-muted: #667085; --shr-line: #e4e7ec; justify-content: flex-end; align-items: stretch; padding: 0; }
#shrDetailsOverlay.shr-drawer .vsel-details { max-width: 460px; width: 100%; max-height: none; height: 100%; border-radius: 0; box-shadow: -18px 0 60px rgba(0,0,0,.28); animation: shrDrawerIn .22s ease-out; }
@keyframes shrDrawerIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
#shrDetailsOverlay.shr-drawer .vsel-details-scroll { flex: 1 1 auto; padding: 24px 26px 12px; }
#shrDetailsOverlay.shr-drawer .vsel-details-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
#shrDetailsOverlay.shr-drawer .vsel-details-foot .vsel-details-close-btn { flex: 0 0 auto; padding: 0 18px; }
#shrDetailsOverlay.shr-drawer .vsel-details-foot .shr-continue { flex: 1 1 auto; justify-content: center; }
.shr-det-day { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--shr-muted); margin-bottom: 4px; }
.shr-det-route { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.shr-det-rail { width: 100%; }
.shr-det-rail .shr-stop { font-size: 16px; font-weight: 600; }
#shrDetUpsell .ssf-upsell { margin: 16px 0 0; }
/* the shared popup styles zero borders inside it: the route dots keep theirs */
#shrDetRoute .shr-dot { border: 2.5px solid var(--shr-ink); background: #fff; }
#shrDetRoute .shr-dot-end { border-color: var(--color-primary); background: var(--color-primary); }
/* the WhatsApp float must not sit on the drawer's Continue */
body.shr-drawer-open .wa-float { display: none; }
@media (max-width: 600px) {
    #shrDetailsOverlay.shr-drawer .vsel-details { max-width: none; animation: shrSheetIn .22s ease-out; }
    @keyframes shrSheetIn { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* ── The details popup's own rows ────────────────────────────────────────── */
.shr-det-map { display: block; width: 100%; height: auto; border-radius: 12px; margin-top: 16px; }
.shr-det-block { margin-top: 4px; }
.shr-det-lbl { font-size: 16px; font-weight: 700; color: #111827; }
.shr-det-sub { font-size: 14px; color: #6b7280; margin-top: 2px; }
.shr-det-maps { display: inline-block; margin-top: 4px; font-size: 13.5px; color: var(--color-primary); text-decoration: underline; }
.shr-det-note { margin-top: 12px; font-size: 14px; color: #4a5568; line-height: 1.5; }
.shr-det-cutoff { font-weight: 600; color: #b45309; }
.shr-det-block + .vsel-details-prices, .shr-det-note + .vsel-details-prices { margin-top: 16px; border-top: 1px solid #eef1f4; }

/* ── Tablet + phone ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* The bar folds behind the summary line; "Change" opens it. */
    .shr-band { margin-bottom: 16px; }
    .shr-band .container { padding-top: 0; padding-bottom: 0; }
    .shr-sum-btn {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
        width: 100%; min-height: 56px; padding: 10px 0;
        border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit;
    }
    .shr-sum-text { display: contents; }
    .shr-sum-line1 { grid-column: 1; grid-row: 1; min-width: 0; font-size: 15.5px; font-weight: 600; color: #16181d; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .shr-sum-line2 { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; font-size: 13px; font-weight: 500; color: #5a6872; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .shr-sum-edit { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e5ebf1; border-radius: 999px; color: #16181d; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
    .shr-sum-edit svg { width: 13px; height: 13px; }
    .shr-editor { padding: 4px 0 16px; border-top: 1px solid #e5ebf1; }
    .shr-editor.is-collapsed { display: none; }
    .ssf-bar, .ssf-bar:not(:has(.ssf-f-retdate:not([hidden]))) { grid-template-columns: 1fr 1fr; }
    .ssf-f-from, .ssf-f-to, .ssf-f-pax { grid-column: 1 / -1; }
    .shf-pax-pop { left: 0; right: 0; min-width: 0; }
    .ssf-extra { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .ssf-wl-grid, .shp-req-grid { grid-template-columns: 1fr; }
    .ssf-up-card { gap: 12px; }
    .ssf-up-btn  { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 600px) {
    .shr-card { padding: 14px 16px 14px; }
    /* time + price on one row, the route rail under them */
    .shr-card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time price" "route route"; gap: 12px 12px; }
    .shr-timecol { grid-area: time; padding-right: 0; border-right: 0; min-height: 0; }
    .shr-pricecol { grid-area: price; padding-left: 0; }
    .shr-route { grid-area: route; padding: 0; }
    .shr-time { font-size: 20px; }
    .shr-stop { font-size: 14.5px; }
    .shr-price { font-size: 21px; }
    .shr-price-total { white-space: normal; line-height: 1.3; }
    .shr-tabs { gap: 6px; }
    .shr-tab { padding: 8px 4px 8px; border-radius: 12px; }
    .shr-tab-d { font-size: 19px; }
    .shr-steptitle { font-size: 21px; }
    .shr-picked { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; align-items: start; }
    .shr-picked-ico { width: 34px; height: 34px; }
    .shr-picked-edit { grid-column: 2; justify-self: start; height: 44px; }
    .shr-sum-edit { padding: 10px 14px; }
    .shr-tab { flex: 1 1 0; min-width: 0; }
    .shr-continue { height: 42px; padding: 0 14px 0 18px; font-size: 14.5px; }
    .ssf-trip { display: flex; width: 100%; }
    .ssf-trip .shf-seg-btn { flex: 1 1 0; }
}
