/* Checkout page (/reserve, static/reserve.php). Sits on top of style.css and borrows the
   trip page's mosaic-hero look: cream page, light header, Nobel titles, Glacial body,
   deep green #0E5642 for ink accents and #54dd4a for the one primary action. */

body.reserve-body { background: #faf9f4; color: #0b1f1a; }
body.reserve-body header { border-bottom: 1px solid #e6e8e1; }

.rs { padding: 0 0 72px; }
.rs-wrap { max-width: 1120px; }

/* ── Top bar: back link, progress, secure mark ─────────────────────────────── */
.rs-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px 12px;
    padding: 16px 0 6px;
}
.rs-backlink, .rs-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0E5642;
}
.rs-backlink svg { width: 16px; height: 16px; }
.rs-backlink:hover { text-decoration: none; }
.rs-backlink:hover span { text-decoration: underline; text-underline-offset: 3px; }
.rs-backlink { grid-row: 1; grid-column: 1; justify-self: start; }
.rs-secure { grid-row: 1; grid-column: 2; justify-self: end; color: #51605b; font-weight: 400; }
.rs-secure svg { width: 16px; height: 16px; color: #0E5642; }

.rs-steps {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #7a8783;
}
.rs-steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rs-steps li + li { flex: 1 1 auto; }
.rs-steps li + li::before {
    content: '';
    flex: 1 1 auto;
    min-width: 14px;
    height: 2px;
    margin: 0 4px 0 12px;
    border-radius: 2px;
    background: #dfe4dc;
}
.rs-steps li.is-done + li::before { background: #0E5642; }
.rs-step-dot {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #cfd6cf;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #7a8783;
}
.rs-step-dot svg { width: 14px; height: 14px; }
.rs-steps .is-done .rs-step-dot { background: #0E5642; border-color: #0E5642; color: #fff; }
.rs-steps .is-now .rs-step-dot { background: #54dd4a; border-color: #54dd4a; color: #002d0c; box-shadow: 0 0 0 4px rgba(84,221,74,0.22); }
.rs-steps .is-now, .rs-steps .is-done { color: #0b1f1a; font-weight: 700; }

/* ── Title block ──────────────────────────────────────────────────────────── */
.rs-head { padding: 18px 0 18px; }
.rs-kicker {
    margin: 0 0 10px;
    color: #0E5642;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.2;
}
.rs-title {
    margin: 0;
    font-family: 'Nobel', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: clamp(36px, 4.4vw, 54px);
    line-height: 1.02;
    color: #0b1f1a;
}
/* Glacial has no proper @ sign, so an email address in the lede uses the fallback face. */
.rs-lede strong { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.94em; }
.rs-lede { margin: 12px 0 0; max-width: 620px; color: #475569; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.5; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.rs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rs-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.rs-side { order: -1; min-width: 0; }
.rs-grid > .rs-perk { order: -2; }

.rs-card {
    background: #fff;
    border: 1px solid #e3e6df;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px rgba(15,23,42,0.06);
}
.rs-block { padding: 20px 18px; }
.rs-block--plain { padding: 10px 4px 0; }

.rs-block-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #0b1f1a;
}
.rs-num {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0E5642;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.rs-block-sub { margin: -6px 0 16px; color: #51605b; font-size: 15px; line-height: 1.45; }
.rs-flights { display: flex; align-items: flex-start; gap: 8px; color: #0b1f1a; }
.rs-flights svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: #0E5642; }
.rs-h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.2; font-weight: 700; color: #0b1f1a; }

/* ── The refund perk at the top ───────────────────────────────────────────── */
.rs-perk {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(14,86,66,0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, #f2fbf1 0%, #ffffff 100%);
}
/* A class's display beats the hidden attribute, so say it: the late and refund boxes swap. */
.rs-perk[hidden] { display: none; }
.rs-perk-ico {
    flex: 0 0 auto; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #0E5642; color: #fff;
}
.rs-perk-ico svg { width: 22px; height: 22px; }
.rs-perk-text { display: grid; gap: 3px; min-width: 0; }
.rs-perk-text strong { font-size: 17px; line-height: 1.3; color: #0b1f1a; }
.rs-perk-text span { font-size: 14.5px; line-height: 1.45; color: #3f4d48; }


/* ── Departure options ────────────────────────────────────────────────────── */
.rs-deps { display: grid; gap: 10px; }
.rs-dep {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #dfe4dc;
    border-radius: 14px;
    background: #fcfcfa;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rs-dep:hover { border-color: rgba(14,86,66,0.45); }
.rs-dep input { position: absolute; opacity: 0; pointer-events: none; }
.rs-dep-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #b9c3bd;
    background: #fff;
    display: inline-grid;
    place-items: center;
    transition: border-color 0.15s ease;
}
.rs-dep-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0E5642;
    transform: scale(0);
    transition: transform 0.15s ease;
}
.rs-dep input:checked + .rs-dep-radio { border-color: #0E5642; }
.rs-dep input:checked + .rs-dep-radio::after { transform: scale(1); }
.rs-dep input:focus-visible + .rs-dep-radio { outline: 3px solid rgba(84,221,74,0.7); outline-offset: 2px; }
.rs-dep:has(input:checked) { border-color: #0E5642; background: #f2fbf1; box-shadow: 0 6px 18px rgba(14,86,66,0.10); }
.rs-dep-text { display: grid; gap: 2px; min-width: 0; }
.rs-dep-date { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: #0b1f1a; }
.rs-dep-sub { font-size: 13.5px; line-height: 1.35; color: #64748b; }
.rs-dep-price { font-size: 15px; font-weight: 700; color: #0b1f1a; white-space: nowrap; }

@media (max-width: 479px) {
    /* Same price on every date, and it is in the summary above: the date gets the room. */
    .rs-dep--date .rs-dep-price { display: none; }
    .rs-dep--date { grid-template-columns: auto minmax(0, 1fr); }
}

/* ── Room and insurance ───────────────────────────────────────────────────── */
.rs-opt-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 16px; line-height: 1.3; font-weight: 700; color: #0b1f1a; }
.rs-block-sub + .rs-opt-h { margin-top: 0; }
.rs-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    color: #0E5642;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.rs-opt-note { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.45; color: #64748b; }
.rs-lines > div[hidden], .rs-ticks > li[hidden] { display: none; }

.rs-info { margin: 12px 0 0; border: 1px solid #dfe4dc; border-radius: 14px; background: #fcfcfa; }
.rs-info > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #0E5642;
}
.rs-info > summary::-webkit-details-marker { display: none; }
.rs-info > summary::after { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; color: #0E5642; }
.rs-info[open] > summary::after { content: '\2013'; }
.rs-info > summary:focus-visible { outline: 2px solid #0E5642; outline-offset: -2px; border-radius: 14px; }
.rs-info-body { padding: 0 16px 16px; font-size: 14.5px; line-height: 1.5; color: #334155; }
.rs-info-body p { margin: 0 0 10px; }
.rs-info-body p:last-child { margin-bottom: 0; }
.rs-info-body h4 { margin: 16px 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; }
.rs-info-body ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.rs-info-body a { color: #0E5642; text-decoration: underline; text-underline-offset: 3px; }

/* The insurance step is a requirement, not an extra: an amber callout says so, and the
   payment form waits until one of the two ways to get it is picked. */
.rs-tag--must { background: #fdecc8; border-color: #e9c46a; color: #7a4b00; }
.rs-must {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e9c46a;
    border-left: 5px solid #d99a00;
    border-radius: 12px;
    background: #fff8e6;
    color: #4a3200;
}
.rs-must svg { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; color: #b97f00; }
.rs-must strong { display: block; font-size: 16px; line-height: 1.3; color: #3a2700; }
.rs-must p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; }
.rs-must + .rs-opt-h { margin-top: 20px; }
.rs-opt-h { flex-wrap: wrap; }
.rs-pick { font-size: 13px; font-weight: 700; color: #a15c00; }
.rs-pick[hidden] { display: none; }
.rs-need { margin: 0 0 12px; }

/* ── Step one: who is climbing ────────────────────────────────────────────── */
.rs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rs-fields { display: grid; gap: 12px; }
.rs-field { display: grid; gap: 6px; }
.rs-field span { font-size: 14px; font-weight: 700; color: #0b1f1a; }
.rs-field input {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1.5px solid #dfe4dc; border-radius: 12px; background: #fff;
    font: inherit; font-size: 16px; color: #0b1f1a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rs-field input:focus { outline: none; border-color: #0E5642; box-shadow: 0 0 0 3px rgba(84,221,74,0.35); }
.rs-who-err { margin: 12px 0 0; }
.rs-who-err[hidden], .rs-who-form[hidden], .rs-who-done[hidden] { display: none; }
.rs-continue { display: flex; width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 10px; box-shadow: none; font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.rs-continue:disabled { opacity: 0.7; cursor: progress; }
.rs-who-done { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #0E5642; border-radius: 14px; background: #f2fbf1; }
.rs-who-ico { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0E5642; color: #fff; }
.rs-who-ico svg { width: 22px; height: 22px; }
.rs-who-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rs-who-text strong { font-size: 16px; color: #0b1f1a; overflow-wrap: anywhere; }
.rs-who-text span { font-size: 14px; color: #51605b; overflow-wrap: anywhere; }
.rs-who-change { flex: 0 0 auto; padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #0E5642; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rs-who.is-missing { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,0.12); }
@media (min-width: 640px) { .rs-fields { grid-template-columns: 1fr 1fr; } }
.rs-need[hidden] { display: none; }
.rs-block--must.is-missing { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,0.12); }
.rs-pay { position: relative; }
.rs-guard { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rs-guard[hidden] { display: none; }

/* ── Payment ──────────────────────────────────────────────────────────────── */
.rs-checkout { min-height: 420px; }
.rs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 420px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    border: 1.5px dashed #dfe4dc;
    border-radius: 14px;
    background: #fcfcfa;
}
.rs-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #dfe4dc;
    border-top-color: #0E5642;
    animation: rs-spin 0.8s linear infinite;
}
@keyframes rs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rs-spinner { animation: none; } }

.rs-msg { margin: 0; padding: 14px 16px; border-radius: 12px; background: #f1f5f2; font-size: 15px; line-height: 1.45; }
.rs-msg.is-error { background: #fef3f2; color: #8f1d13; border: 1px solid #f7d2ce; }
.rs-msg a { color: inherit; text-decoration: underline; }

.rs-trust {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e9ece5;
    display: grid;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #51605b;
}
.rs-trust li { display: flex; align-items: center; gap: 10px; }
.rs-trust svg { flex: 0 0 auto; width: 18px; height: 18px; color: #0E5642; }
.rs-trust a { color: #0E5642; text-decoration: underline; text-underline-offset: 3px; }
.rs-stars { flex: 0 0 auto; display: inline-flex; gap: 1px; }
.rs-stars svg { width: 15px; height: 15px; fill: #f5b301; }

/* ── What happens next ────────────────────────────────────────────────────── */
.rs-next { list-style: none; margin: 0; padding: 0; display: grid; }
.rs-next li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 30px; }
.rs-next li:last-child { padding-bottom: 0; }
.rs-next li[hidden] { display: none; }
.rs-next li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0E5642;
    box-sizing: border-box;
}
.rs-next li::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #dfe4dc;
}
.rs-next li:last-child::after { display: none; }
.rs-next strong { font-size: 15px; line-height: 1.3; color: #0b1f1a; }
.rs-next span { font-size: 15px; line-height: 1.45; color: #51605b; }

.rs-help { margin: 4px 4px 0; font-size: 15px; color: #51605b; }
.rs-help a { color: #0E5642; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── Order summary ────────────────────────────────────────────────────────── */
.rs-sum { overflow: hidden; }
.rs-sum-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px 0; }
.rs-sum-img {
    flex: 0 0 auto;
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}
.rs-sum-headline { min-width: 0; }
.rs-sum-name { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; color: #0b1f1a; }
.rs-sum-tag { margin: 3px 0 0; font-size: 13.5px; line-height: 1.35; color: #64748b; }
.rs-sum-when {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    color: #0E5642;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
}
.rs-sum-when svg { width: 15px; height: 15px; }

.rs-more { margin: 12px 16px 0; }
.rs-more > summary {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #0E5642;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rs-more > summary::-webkit-details-marker { display: none; }
.rs-more-open, .rs-more[open] .rs-more-closed { display: none; }
.rs-more[open] .rs-more-open { display: inline; }
.rs-more.is-fixed > summary { display: none; }

.rs-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.rs-facts li { display: flex; align-items: flex-start; gap: 12px; }
.rs-facts svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: #0E5642; }
.rs-facts span { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.35; color: #64748b; }
.rs-facts strong { font-size: 15px; line-height: 1.3; color: #0b1f1a; }

.rs-price-h {
    margin: 16px 16px 0;
    padding: 16px 0 0;
    border-top: 1px solid #e9ece5;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}
.rs-incl { margin: 12px 16px 0; padding: 12px 14px; border: 1px solid #dbe4ef; border-radius: 14px; background: #f7fcf6; }
.rs-incl--no { margin-top: 8px; background: #fbfaf6; border-color: #e6e4da; }
.rs-incl h4 { margin: 0 0 8px; font-size: 14px; line-height: 1.3; color: #0b1f1a; }
.rs-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.35; color: #1f2937; }
.rs-ticks li { display: flex; align-items: flex-start; gap: 9px; }
.rs-ticks svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: #0E5642; }
.rs-ticks--no { color: #51605b; }
.rs-dash { flex: 0 0 auto; width: 10px; height: 2px; margin: 9px 3px 0; border-radius: 2px; background: #9aa6a1; }

.rs-lines { margin: 16px 16px 0; padding: 14px 0 0; border-top: 1px solid #e9ece5; display: grid; gap: 12px; }
.rs-lines--first { margin-top: 0; padding-top: 12px; border-top: 0; }
.rs-lines--rest { margin-top: 14px; padding-top: 0; border-top: 0; }
.rs-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rs-lines dt { font-size: 15px; line-height: 1.3; color: #0b1f1a; }
.rs-lines dt small { display: block; margin-top: 1px; font-size: 13px; color: #64748b; }
.rs-lines dd { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; color: #0b1f1a; }

.rs-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 14px 16px 18px;
    padding: 14px 0 0;
    border-top: 2px solid #0b1f1a;
    font-size: 17px;
    font-weight: 700;
}
.rs-total strong { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.01em; }
/* The refund deadline sits under "Due today", across the card's full width. */
.rs-total { flex-wrap: wrap; row-gap: 0; }
.rs-total .rs-total-note { flex: 1 0 100%; margin-top: 6px; font-size: 13px; line-height: 1.35; font-weight: 400; color: #64748b; }
.rs-fine { margin: 10px 16px 16px; font-size: 12.5px; line-height: 1.4; color: #7a8783; }

/* ── Confirmation ─────────────────────────────────────────────────────────── */
.rs-confirm { max-width: 720px; margin: 0 auto; padding: 26px 0 0; display: grid; gap: 16px; }
.rs-confirm-head { text-align: center; padding: 0 0 6px; }
.rs-confirm-head .rs-lede { margin-left: auto; margin-right: auto; }
.rs-confirm-badge {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #54dd4a;
    color: #002d0c;
    box-shadow: 0 0 0 8px rgba(84,221,74,0.2);
    animation: rs-pop 0.5s cubic-bezier(.2,.9,.3,1.3) both;
}
.rs-confirm-badge svg { width: 34px; height: 34px; }
.rs-confirm-badge--wait { background: #f6c453; color: #4a3200; box-shadow: 0 0 0 8px rgba(246,196,83,0.25); }
@keyframes rs-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rs-confirm-badge { animation: none; } }

/* The trip, as a ticket: the photo with the name and dates on it, then who and how. */
.rs-ticket { overflow: hidden; }
.rs-ticket-photo { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #e2e8f0; }
.rs-ticket-head { padding: 18px 18px 18px; }
.rs-ticket-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #0E5642; }
.rs-ticket-name {
    margin: 0;
    font-family: 'Nobel', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: #0b1f1a;
}
.rs-ticket-head .rs-sum-when { margin-top: 12px; }
.rs-ticket-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-ticket-facts li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-top: 1px solid #e9ece5; }
.rs-ticket-facts li:nth-child(odd) { border-right: 1px solid #e9ece5; }
.rs-ticket-facts svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: #0E5642; }
.rs-ticket-facts span { display: grid; gap: 1px; min-width: 0; }
.rs-ticket-facts small { font-size: 12.5px; line-height: 1.3; color: #64748b; }
.rs-ticket-facts strong { font-size: 15px; line-height: 1.3; color: #0b1f1a; overflow-wrap: anywhere; }

/* Payment summary */
.rs-confirm .rs-block-h { margin-bottom: 4px; }
.rs-confirm .rs-lines { margin-left: 0; margin-right: 0; }
.rs-confirm .rs-total { margin: 14px 0 0; align-items: center; }
.rs-total small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #64748b; }
.rs-line-paid dd { display: inline-flex; align-items: center; gap: 8px; }
.rs-pill {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    color: #0E5642;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.rs-ref { margin: 14px 0 0; font-size: 12.5px; line-height: 1.4; color: #7a8783; overflow-wrap: anywhere; }

/* What happens next: one row per thing, when it happens above what it is. */
.rs-todo { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.rs-todo li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid #e9ece5; }
.rs-todo li:first-child { border-top: 0; padding-top: 6px; }
.rs-todo li:last-child { padding-bottom: 0; }
.rs-todo-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e6f5e4;
    color: #0E5642;
}
.rs-todo-ico svg { width: 22px; height: 22px; }
.rs-todo small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0E5642; }
.rs-todo strong { display: block; margin-top: 2px; font-size: 16.5px; line-height: 1.3; color: #0b1f1a; }
.rs-todo p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #51605b; }

.rs-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rs-confirm-actions .trip-btn { flex: 1 1 200px; min-height: 54px; border-radius: 8px; }
.rs-btn-quiet { background: #fff; color: #0b1f1a; border: 1.5px solid #0E5642; font-size: 15px; }
.rs-btn-quiet:hover { background: #eef9ee; }
.rs-confirm > .rs-msg { margin-top: 4px; }

/* ── Phones: the price breakdown comes after the choices that change it ────── */
/* The summary's two halves and the steps all become items of the one page grid, so the
   order is: refund panel, trip, the choices, price breakdown, payment, what happens next. */
@media (max-width: 979.98px) {
    .rs-main, .rs-side, .rs-sum { display: contents; }
    .rs-sum-trip, .rs-sum-price {
        min-width: 0;
        background: #fff;
        border: 1px solid #e3e6df;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px rgba(15,23,42,0.06);
        overflow: hidden;
    }
    .rs-sum-trip { order: -1; padding-bottom: 14px; }
    .rs-sum-price { order: 1; }
    .rs-sum-price .rs-price-h { margin-top: 0; border-top: 0; }
    .rs-after-price { order: 2; }
    .rs-wide { display: none; }
}
@media (min-width: 980px) { .rs-narrow { display: none; } }

/* ── Wider screens ────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .rs-top { grid-template-columns: 1fr auto 1fr; padding-top: 20px; }
    .rs-steps { grid-row: 1; grid-column: 2; width: min(420px, 46vw); font-size: 14px; }
    .rs-secure { grid-column: 3; }
    .rs-block { padding: 24px; }
    .rs-ticket-head { padding: 22px 26px 22px; }
    .rs-ticket-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rs-ticket-facts li { border-right: 1px solid #e9ece5; padding: 16px 18px; }
    .rs-ticket-facts li:last-child { border-right: 0; }
    .rs-confirm { gap: 20px; padding-top: 34px; }
}

@media (min-width: 980px) {
    .rs-head { padding: 26px 0 24px; }
    .rs-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
    .rs-main { gap: 20px; }
    .rs-grid > .rs-perk { order: 0; grid-column: 1; grid-row: 1; }
    .rs-main { grid-column: 1; grid-row: 2; margin-top: -8px; }
    .rs-side { order: 0; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 20px; }
    .rs-block { padding: 28px; }
    .rs-block--plain { padding: 12px 4px 0; }
    .rs-sum-top { display: block; padding: 0; }
    .rs-sum-img { width: 100%; height: 200px; border-radius: 0; }
    .rs-sum-headline { padding: 18px 20px 0; }
    .rs-sum-name { font-size: 22px; }
    .rs-more { margin: 4px 20px 0; }
    .rs-lines, .rs-total, .rs-price-h, .rs-incl { margin-left: 20px; margin-right: 20px; }
    .rs-total { margin-bottom: 22px; }
    .rs-fine { margin: 10px 20px 20px; }
}
/* The display font has no proper "@": email addresses use the plain sans-serif. */
.rs-who-text span, .rs-field input[type="email"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
/* The full insurance requirements fold out inside the yellow "Required" box. */
.rs-must > div { min-width: 0; flex: 1 1 auto; }
.rs-must .rs-info { margin: 10px 0 0; border: 0; border-radius: 0; background: none; }
.rs-must .rs-info > summary { padding: 4px 0; justify-content: flex-start; gap: 8px; font-size: 14.5px; color: #7a4b00; text-decoration: underline; text-underline-offset: 3px; }
.rs-must .rs-info > summary::after { font-size: 18px; color: #7a4b00; text-decoration: none; }
.rs-must .rs-info-body { padding: 0 0 2px; color: #3a2700; }
.rs-must .rs-info-body h4:first-child { margin-top: 6px; }
.rs-must .rs-info-body h4 { color: #7a4b00; }
