/* TRAVEL ORDERS: the request form, the order page and the list.
   Every rule is prefixed .to- and sits on the public page tokens. */
.to-page { max-width: 1080px; container-type: inline-size; }
.to-head { margin: 8px 0 20px; }
.to-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .to-layout { grid-template-columns: minmax(0, 1fr); } }
/* Fits at 268px (Safari Page Zoom 150%): nothing wider than its box. */
.to-page { overflow-wrap: anywhere; }
.to-page img { max-width: 100%; height: auto; }
.to-page .et-note .et-btn { white-space: normal; }
.to-form h2, .to-side h2, .to-card h2 { font-size: 1.1rem; margin: 0 0 12px; }
.to-form h2 + .form-grid { margin-bottom: 22px; }
.f-field--wide { grid-column: 1 / -1; }
.to-opt { font-weight: 400; color: var(--c-muted, #6e6a66); font-size: .85em; }
.to-fine { color: var(--c-muted, #6e6a66); font-size: .92rem; margin: 14px 0; line-height: 1.5; }
.to-errors ul { margin: 0; padding-left: 18px; }
.to-honey { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.to-side .pg-card { margin-bottom: 16px; }
.to-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.to-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.to-steps b { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--c-ink, #1d1a17); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.to-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.to-product { display: block; padding: 18px; text-decoration: none; color: inherit; }
.to-product strong { display: block; font-size: 1.05rem; margin: 8px 0 4px; }
.to-product small { color: var(--c-muted, #6e6a66); line-height: 1.45; display: block; }
.to-product .et-i, .to-product svg { width: 26px; height: 26px; }

/* The order page */
.to-status { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 6px 0 4px; }
.to-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--c-bg-alt, #ffffff); }
.to-badge--paid, .to-badge--delivered, .to-badge--completed { background: #e8f3ec; color: #1f7a4d; }
.to-badge--quoted, .to-badge--payment_claimed { background: #ffffff; color: #7a5a20; }
.to-badge--cancelled, .to-badge--expired { background: #fbeceb; color: #c4281c; }
.to-help { margin: 0 0 18px; line-height: 1.5; }
.to-strip { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: step; }
.to-strip li { padding: 10px 8px; border-top: 3px solid var(--c-line, #e5e5e7); font-size: .85rem; color: var(--c-muted, #6e6a66); }
.to-strip li.is-done { border-top-color: var(--c-ink, #1d1a17); color: var(--c-ink, #1d1a17); }
.to-strip li.is-now { border-top-color: var(--c-gold, #d4ad5e); color: var(--c-ink, #1d1a17); font-weight: 600; }
@media (max-width: 560px) { .to-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.to-card { margin-bottom: 16px; }
.to-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.to-dl dt { color: var(--c-muted, #6e6a66); }
.to-dl dd { margin: 0; }
@media (max-width: 480px) { .to-dl { grid-template-columns: 1fr; gap: 2px; } .to-dl dd { margin-bottom: 8px; } }
.to-price { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.to-price td { padding: 7px 0; border-bottom: 1px solid var(--c-line, #e5e5e7); }
.to-price td:last-child { text-align: right; white-space: nowrap; }
.to-price tr.to-total td { border-bottom: 0; font-weight: 700; font-size: 1.05rem; padding-top: 12px; }
.to-pay { margin-top: 10px; }
.to-pay .f-field { margin-top: 10px; }
.to-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.to-docs li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.to-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.to-timeline time { color: var(--c-muted, #6e6a66); margin-right: 10px; }
.to-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.to-list { width: 100%; border-collapse: collapse; }
.to-list th, .to-list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-line, #e5e5e7); vertical-align: top; }
.to-list th { font-size: .85rem; color: var(--c-muted, #6e6a66); font-weight: 600; }
.to-note { white-space: pre-line; }

/* The live price on the form, the live dot on the order page */
.to-pricebox { border-left: 4px solid var(--c-line, #e5e5e7); }
.to-pricebox.is-instant { border-left-color: #1f7a4d; }
.to-pricebox.is-manual { border-left-color: var(--c-gold, #d4ad5e); }
.to-pricebox .to-price { margin-bottom: 4px; }
.to-live { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted, #6e6a66); padding-left: 14px; position: relative; }
.to-live::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #1f7a4d; opacity: .5; transition: opacity .3s; }
.to-live.is-on::before { opacity: 1; }
.to-or { margin: 16px 0 8px; font-size: .95rem; color: var(--c-muted, #6e6a66); }

/* Pay now, or reserve and pay on the day */
.to-paychoice { display: grid; gap: 10px; margin: 0 0 18px; }
.to-paychoice label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-line, #e5e5e7); border-radius: 12px; cursor: pointer; line-height: 1.45; }
.to-paychoice input { margin-top: 4px; }

/* Optional parts of a form, folded behind one tap (2026-10-22). */
.to-more { margin: 0 0 20px; border: 1px solid var(--c-line, #e5e5e7); border-radius: 12px; padding: 0 14px; }
.to-more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
.to-more > summary::-webkit-details-marker { display: none; }
.to-more > summary::after { content: '+'; float: right; font-weight: 400; color: var(--c-muted, #6e6a66); }
.to-more[open] > summary::after { content: '\2212'; }
.to-more[open] { padding-bottom: 14px; }

/* Crypto: one big QR, the exact amount, and a live "waiting" pulse. */
.cx-pay { text-align: center; border: 1px solid var(--c-line, #e5e5e7); border-radius: 16px; padding: 22px 16px 18px; background: var(--c-bg-alt, #f5f7fa); margin: 6px 0 12px; }
.cx-lead { font-weight: 700; margin: 0 0 14px; }
.cx-qr { width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; background: #fff; padding: 14px; border-radius: 14px; box-shadow: 0 6px 24px rgba(15, 26, 44, .10); }
.cx-qr svg { width: 100%; height: 100%; display: block; }
.cx-net { display: inline-block; margin: 12px 0 4px; padding: 3px 12px; border-radius: 999px; background: var(--c-primary-soft, #eef4ff); color: var(--c-link, #1d4ed8); font-size: .82rem; font-weight: 700; }
.cx-amount { margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; justify-content: center; }
.cx-amount .cx-label { flex-basis: 100%; font-size: .8rem; color: var(--c-muted, #4f5a6b); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.cx-amount b { font-size: 1.6rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cx-addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 12px; }
.cx-addr code { word-break: break-all; font-size: .85rem; background: #fff; border: 1px solid var(--c-line, #e5e5e7); border-radius: 8px; padding: 6px 10px; max-width: 100%; }
.cx-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0; font-size: .9rem; color: var(--c-muted, #4f5a6b); }
.cx-radar { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--c-success, #1f7a4d); flex: none; }
.cx-radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c-success, #1f7a4d); animation: cx-ping 1.6s ease-out infinite; }
@keyframes cx-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.cx-other { margin-top: 14px; }
.cx-other > summary { cursor: pointer; font-weight: 600; color: var(--c-link, #1d4ed8); padding: 6px 0; }

/* Payment received: a full-screen tick that draws itself. */
.cx-done { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15, 37, 87, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.cx-done.is-on { opacity: 1; }
.cx-done-card { background: #fff; border-radius: 22px; padding: 32px 26px 26px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(15, 26, 44, .3); transform: translateY(18px) scale(.94); transition: transform .5s cubic-bezier(.2, .9, .3, 1.25); }
.cx-done.is-on .cx-done-card { transform: none; }
.cx-done h2 { margin: 14px 0 4px; font-size: 1.5rem; color: var(--c-success, #1f7a4d); }
.cx-done p { margin: 6px 0; color: var(--c-muted, #4f5a6b); }
.cx-done-amount { font-size: 1.25rem; font-weight: 800; color: var(--c-ink, #0f1a2c) !important; font-variant-numeric: tabular-nums; }
.cx-done-ref { font-size: .8rem; letter-spacing: .04em; }
.cx-tick { width: 112px; height: 112px; overflow: visible; }
.cx-ring { fill: var(--c-success-bg, #e8f3ec); stroke: var(--c-success, #1f7a4d); stroke-width: 6; stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: center; }
.cx-check { fill: none; stroke: var(--c-success, #1f7a4d); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.cx-done.is-on .cx-ring { animation: cx-draw .7s .15s ease-out forwards, cx-pop .45s .85s ease-out; }
.cx-done.is-on .cx-check { animation: cx-draw .45s .8s ease-out forwards; }
@keyframes cx-draw { to { stroke-dashoffset: 0; } }
@keyframes cx-pop { 50% { transform: rotate(-90deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
    .cx-radar::after, .cx-done.is-on .cx-ring, .cx-done.is-on .cx-check { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   THE ORDER PAGE, REDRAWN (2026-10-28): a picture card of the trip, a
   stepper, the price, one payment method open at a time with the real
   card and wallet marks, a summary that stays in view on a desktop and a
   pay bar that stays under the thumb on a phone.
   ========================================================================== */
.to-page { --to-blue: var(--et-coral, #2563eb); --to-blue-soft: var(--et-coral-soft, #eef4ff);
           --to-ink: var(--et-ink, #0f1a2c); --to-muted: var(--et-muted, #4f5a6b);
           --to-line: var(--et-line, #e5e5e7); --to-soft: var(--et-bg-soft, #f5f7fa);
           --to-ok: var(--et-success, #1f7a4d); --to-ok-soft: var(--et-success-soft, #e8f3ec);
           --to-bad: var(--et-danger, #c4281c); --to-bad-soft: var(--et-danger-soft, #fbeceb);
           --to-r: var(--et-r-md, 18px); --to-sh: 0 1px 2px rgba(15, 26, 44, .05), 0 8px 24px rgba(15, 26, 44, .06); }
.to-page .et-i { width: 1.1em; height: 1.1em; flex: none; }
.to-head .pg-title { margin-bottom: 6px; }

/* Stepper */
.to-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 4px 0 18px; }
.to-strip li { border-top: 0; padding: 0 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; font-size: .78rem; line-height: 1.25; }
.to-strip li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--to-line); z-index: 0; }
.to-strip li.is-done + li::before { background: var(--to-blue); }
.to-strip__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--to-line); color: var(--to-muted); }
.to-strip li.is-done .to-strip__dot { background: var(--to-blue); border-color: var(--to-blue); color: #fff; }
.to-strip li.is-now .to-strip__dot { border-color: var(--to-blue); color: var(--to-blue); box-shadow: 0 0 0 5px var(--to-blue-soft); }
.to-strip li.is-now { color: var(--to-ink); font-weight: 700; }
.to-strip li.is-done { color: var(--to-ink); }
@media (max-width: 560px) { .to-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .to-strip li { font-size: .7rem; } }

/* The trip card */
.tr-card { background: #fff; border: 1px solid var(--to-line); border-radius: var(--to-r); box-shadow: var(--to-sh); overflow: hidden; margin: 0 0 18px; }
.tr-card--hotel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
@media (max-width: 720px) { .tr-card--hotel { grid-template-columns: 1fr; } }
.tr-photo { position: relative; min-height: 190px; background: var(--to-soft); }
.tr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-photo__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--to-blue); }
.tr-photo__ph .et-i { width: 48px; height: 48px; }
@media (max-width: 720px) { .tr-photo { aspect-ratio: 16 / 9; min-height: 0; } }
.tr-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--to-ink); font-size: .78rem; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 26, 44, .12); }
.tr-tag--inline { position: static; margin-left: auto; background: var(--to-blue-soft); color: var(--to-blue); box-shadow: none; }
.tr-body { padding: 18px 20px 20px; min-width: 0; }
.tr-stars { display: flex; gap: 2px; margin: 0 0 4px; color: #f5a524; }
.tr-title { font-size: 1.3rem; line-height: 1.25; margin: 0 0 6px; }
.tr-sub { display: flex; gap: 6px; align-items: flex-start; color: var(--to-muted); margin: 0 0 14px; font-size: .92rem; }
.tr-sub .et-i { margin-top: 3px; color: var(--to-blue); }
.tr-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--to-soft); margin: 0 0 14px; }
.tr-dates div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-dates small { color: var(--to-muted); font-size: .76rem; }
.tr-dates b { font-size: .98rem; }
.tr-dates__out { text-align: right; align-items: flex-end; }
.tr-nights { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--to-line); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--to-soft); font-size: .85rem; line-height: 1.3; max-width: 100%; }
.tr-chips li .et-i { color: var(--to-blue); }
.tr-chips li.is-good { background: var(--to-ok-soft); color: var(--to-ok); }
.tr-chips li.is-good .et-i { color: var(--to-ok); }
.tr-chips li.is-warn { background: var(--to-bad-soft); color: var(--to-bad); }
.tr-chips li.is-warn .et-i { color: var(--to-bad); }
.tr-chips small { color: var(--to-muted); }
.tr-card--flight { padding: 18px 20px 20px; }
.tr-airline { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.tr-airline img, .tr-airline__ph { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--to-soft); display: grid; place-items: center; color: var(--to-blue); padding: 4px; }
.tr-airline div { display: flex; flex-direction: column; }
.tr-airline small { color: var(--to-muted); }
.tr-leg { border-top: 1px solid var(--to-line); padding: 12px 0; }
.tr-leg__date { display: flex; gap: 6px; align-items: center; color: var(--to-muted); font-size: .85rem; margin: 0 0 8px; }
.tr-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tr-route > div:not(.tr-line) { display: flex; flex-direction: column; }
.tr-route b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tr-route span { font-weight: 700; }
.tr-route small { color: var(--to-muted); font-size: .8rem; }
.tr-route__to { text-align: right; align-items: flex-end; }
.tr-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; color: var(--to-blue); position: relative; padding-bottom: 16px; }
.tr-line i { height: 2px; background: repeating-linear-gradient(90deg, var(--to-line) 0 6px, transparent 6px 10px); }
.tr-line small { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: var(--to-muted); font-size: .75rem; }
.tr-card--other { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.tr-card--other .tr-body { padding: 0; }
.tr-badge-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--to-blue-soft); color: var(--to-blue); flex: none; }
.tr-badge-ico .et-i { width: 26px; height: 26px; }
.tr-kicker { margin: 0 0 8px; font-weight: 700; }

/* The price */
.to-card { border-radius: var(--to-r); box-shadow: var(--to-sh); }
.to-price tr.to-total td { font-size: 1.25rem; }
.to-price tr.to-total small { display: block; font-size: .78rem; font-weight: 500; color: var(--to-muted); }
.to-held { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--to-blue-soft); color: var(--to-blue); margin: 10px 0; font-size: .92rem; }
.to-held b { font-variant-numeric: tabular-nums; }
.to-held.is-over { background: var(--to-bad-soft); color: var(--to-bad); }
.to-paidline { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--to-ok-soft); color: var(--to-ok); }

/* Payment methods */
.to-pay { margin-top: 18px; }
.to-pay h3 { font-size: 1.05rem; margin: 0 0 12px; }
.pm-list { display: flex; flex-direction: column; gap: 10px; }
.pm-list.is-tz .pm--mobile { order: -2; }
.pm-list.is-tz .pm--parts { order: -1; }
.pm { border: 1.5px solid var(--to-line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.pm[open] { border-color: var(--to-blue); box-shadow: 0 0 0 4px var(--to-blue-soft); }
.pm-head { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico txt badge" "ico marks marks"; align-items: center; gap: 4px 12px; padding: 14px 16px; }
.pm-head::-webkit-details-marker { display: none; }
.pm-ico { grid-area: ico; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--to-soft); color: var(--to-ink); align-self: start; }
.pm[open] .pm-ico { background: var(--to-blue); color: #fff; }
.pm-ico .et-i { width: 20px; height: 20px; }
.pm-txt { grid-area: txt; display: flex; flex-direction: column; min-width: 0; }
.pm-txt b { font-size: 1rem; }
.pm-txt small { color: var(--to-muted); font-size: .82rem; }
.pm-badge { grid-area: badge; padding: 3px 9px; border-radius: 999px; background: var(--to-ok-soft); color: var(--to-ok); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pm-marks { grid-area: marks; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pm-mark { display: inline-grid; place-items: center; height: 26px; min-width: 40px; padding: 0 7px; border: 1px solid var(--to-line); border-radius: 7px; background: #fff; }
.pm-mark svg { height: 16px; width: auto; display: block; }
.pm-mark--mastercard svg, .pm-mark--stripe svg { height: 18px; }
/* Each mark's viewBox is cropped to its own shape (measured with getBBox),
   so wide wordmarks and round marks share one height. */
.pm-mark--visa svg { height: 11px; }
.pm-mark--applepay svg { height: 19px; }
.pm-mark--googlepay svg { height: 14px; }
.pm-mark--tether svg, .pm-mark--bitcoin svg, .pm-mark--binance svg { height: 17px; }
.pm-net { display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; }
.pm-net--mixx { background: #ffd200; color: #1b1b1b; }
.pm-net--halo { background: #f26722; color: #fff; }
.pm-net--airtel { background: #e40000; color: #fff; }
.pm-body { padding: 14px 16px 16px; border-top: 1px solid var(--to-line); }
.pm-body .to-actions { flex-direction: column; align-items: stretch; }
.pm-body .to-actions .to-fine { margin: 2px 0 0; text-align: center; }
.pm-go { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; min-height: 52px; }
.pm-secure { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--to-muted); font-size: .82rem; text-align: center; }
.pm-secure .pm-mark { height: 18px; border: 0; padding: 0; min-width: 0; background: transparent; }
.pm-secure b { color: #635bff; margin-left: -2px; }
.pm-lead { margin: 0 0 10px; color: var(--to-muted); }
.pm-coins { display: grid; gap: 8px; }
.pm-coin { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid var(--to-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: var(--to-ink); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.pm-coin:hover, .pm-coin:focus-visible { border-color: var(--to-blue); background: var(--to-blue-soft); }
.pm-coin span { flex: 1; }
.pm-coin .pm-mark { border: 0; min-width: 28px; padding: 0; background: transparent; }
.pm-coin .pm-mark svg { height: 22px; }
.pm-coin > .et-i { color: var(--to-muted); transform: rotate(-90deg); }
.to-dl--bank { padding: 12px 14px; border-radius: 12px; background: var(--to-soft); margin-bottom: 8px; }
.to-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--to-muted); font-size: .82rem; }
.to-trust li { display: inline-flex; align-items: center; gap: 6px; }
.to-trust .et-i { color: var(--to-ok); }

/* Pay together, folded into one compact card */
.to-bundle { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--to-line); border-radius: 14px; background: var(--to-soft); }
.to-bundle__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--to-blue); flex: none; }
.to-bundle__txt { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .9rem; }
.to-bundle__txt label { display: flex; gap: 6px; align-items: center; }
.to-bundle__txt small { color: var(--to-muted); }

/* Booking details, folded */
.to-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.to-fold > summary::-webkit-details-marker { display: none; }
.to-fold > summary h2 { margin: 0; }
.to-fold > summary .et-i { transition: transform .2s; color: var(--to-muted); }
.to-fold[open] > summary .et-i { transform: rotate(180deg); }
.to-fold[open] > summary { margin-bottom: 14px; }
.to-docs li span { display: inline-flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }

/* The side: a summary that stays in view, promise, help, timeline */
.to-side h2 { display: flex; gap: 8px; align-items: center; }
.to-side h2 .et-i { color: var(--to-blue); }
.to-side .pg-card { border-radius: var(--to-r); }
.to-sum { text-align: center; background: linear-gradient(180deg, var(--to-blue-soft), #fff 70%); }
.to-sum__label { margin: 0; color: var(--to-muted); font-size: .85rem; }
.to-sum__total { margin: 2px 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.to-sum__ref { margin: 0 0 12px; color: var(--to-muted); font-size: .82rem; }
.to-sum__go { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.to-sum__marks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
@media (min-width: 861px) { .to-side { position: sticky; top: calc(var(--nav-h, 48px) + 16px); } }
@media (max-width: 860px) { .to-sum { display: none; } }
.to-timeline { gap: 0; }
.to-timeline li { position: relative; padding: 0 0 12px 20px; display: flex; flex-direction: column; }
.to-timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--to-blue); }
.to-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1px; background: var(--to-line); }
.to-timeline time { font-size: .78rem; margin: 0; }

/* The pay bar under the thumb (phones) */
.to-paybar { display: none; }
@media (max-width: 860px) {
    .to-paybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; position: sticky; z-index: 40;
                 bottom: calc(10px + env(safe-area-inset-bottom)); margin: 18px -4px 0; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .96);
                 backdrop-filter: blur(10px); border: 1px solid var(--to-line); box-shadow: 0 10px 30px rgba(15, 26, 44, .18); }
    body.has-tabbar .to-paybar { bottom: calc(var(--tab-h, 62px) + 10px + env(safe-area-inset-bottom)); }
    /* One bar: with the pay bar on the page the tab bar is hidden (elite.css). */
    body.has-actionbar .to-paybar { bottom: calc(10px + env(safe-area-inset-bottom)); }
    /* The chat button rises above the pay bar instead of covering its button. */
    body:has(.to-paybar) .al-fab, body:has(.to-paybar) .al-fab.is-lifted { bottom: calc(94px + env(safe-area-inset-bottom)); }
    @media (max-width: 359px) { .to-paybar .et-btn { flex: 1 1 100%; justify-content: center; } }
    .to-paybar div { display: flex; flex-direction: column; line-height: 1.15; }
    .to-paybar small { color: var(--to-muted); font-size: .75rem; }
    .to-paybar b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
    .to-paybar .et-btn { display: inline-flex; align-items: center; gap: 8px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .pm, .to-fold > summary .et-i, .pm-coin { transition: none; } }

/* ==========================================================================
   THE FLIGHT PAY SCREEN (2026-10-29): step 3 of the booking flow, drawn on
   the order page of a flight waiting for its payment (.to-page.is-fb).
   Prefix .fb-. Brand tokens only. The payment rows (.pm) are the same
   <details> as before, re-skinned as radio rows and ordered by country.
   ========================================================================== */
.to-page.is-fb { max-width: 1080px; }
.fb-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; margin: 0 0 4px; border-bottom: 1px solid var(--to-line); }
.fb-back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--to-line); background: #fff; color: var(--to-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; text-decoration: none; padding: 0; }
.fb-back .et-i { width: 18px; height: 18px; }
.fb-back:hover, .fb-back:focus-visible { border-color: var(--to-blue); color: var(--to-blue); }
.fb-head__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.fb-head__txt b { font-size: 1.05rem; }
.fb-head__txt small { color: var(--to-muted); font-size: .8rem; overflow-wrap: anywhere; }
.fb-head .to-live { flex: none; }
.fb-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: .74rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.fb-tag--grey { background: var(--to-soft); color: var(--to-muted); }
.fb-tag--ok { background: var(--to-ok-soft); color: var(--to-ok); }
.fb-tag--warn { background: #fff3df; color: #8a5a00; }
.fb-tag--best { background: var(--to-blue-soft); color: var(--to-blue); }
.fb-stepper { list-style: none; margin: 0 0 14px; padding: 10px 0; display: flex; gap: 6px; border-bottom: 1px solid var(--to-line); }
.fb-stepper li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--to-muted); }
.fb-stepper li b { width: 22px; height: 22px; border-radius: 50%; background: var(--to-line); color: var(--to-muted); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; flex: none; }
.fb-stepper li b .et-i { width: 12px; height: 12px; }
.fb-stepper li.is-done b { background: var(--to-ok); color: #fff; }
.fb-stepper li.is-now { color: var(--to-ink); }
.fb-stepper li.is-now b { background: var(--to-blue); color: #fff; }
.fb-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: .84rem; font-weight: 600; color: var(--to-ok); text-align: center; }
.fb-secure .et-i { width: 16px; height: 16px; flex: none; }
.fb-secure b { font-weight: 700; }

/* The total */
/* The pay page's Total card. Scoped to the pay page: the travellers page
   has a plain <b class="fb-total"> in its Continue bar. */
.is-fb .fb-total { background: #fff; border: 1px solid var(--to-line); border-radius: var(--to-r); box-shadow: var(--to-sh); padding: 16px 16px 14px; margin: 0 0 12px; }
.fb-total__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--to-muted); font-size: .84rem; }
.fb-info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--to-muted); color: var(--to-muted); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; text-decoration: none; flex: none; font-style: italic; }
.fb-info:hover, .fb-info:focus-visible { border-color: var(--to-blue); color: var(--to-blue); }
.fb-total__big { margin: 6px 0 2px; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--to-ink); overflow-wrap: anywhere; }
.fb-total__usd { margin: 0 0 10px; color: var(--to-muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.fb-breakdown { margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--to-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: .84rem; }
.fb-breakdown dt { color: var(--to-muted); }
.fb-breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.fb-total__note { margin: 10px 0 0; color: var(--to-muted); font-size: .8rem; line-height: 1.45; }

/* The trip, the credit toggle */
.fb-trip { background: #fff; border: 1px solid var(--to-line); border-radius: var(--to-r); box-shadow: var(--to-sh); padding: 14px 16px; margin: 0 0 12px; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-row b { font-size: .98rem; }
.tk-row a { font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fb-trip .tr-card { margin: 10px 0 0; box-shadow: none; border: 0; border-radius: 0; padding: 0; }
.fb-trip .tr-card--flight { padding: 0; }
.fb-trip .tr-airline { margin: 0 0 8px; }
.fb-trip .tr-chips { margin-top: 8px; }
.fb-trip__tags { margin: 10px 0 0; }
.fb-trip__pax { margin: 10px 0 0; color: var(--to-muted); font-size: .84rem; line-height: 1.45; }
.fb-credit { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--to-line); border-radius: var(--to-r); box-shadow: var(--to-sh); padding: 12px 14px; margin: 0 0 12px; cursor: pointer; }
.fb-credit__ico { width: 34px; height: 34px; border-radius: 10px; background: #fff3df; color: #8a5a00; display: grid; place-items: center; flex: none; }
.fb-credit__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; }
.fb-credit__txt small { color: var(--to-muted); font-size: .8rem; }
.fb-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--to-line); position: relative; flex: none; cursor: pointer; margin: 0; }
.fb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.fb-switch:checked { background: var(--to-blue); }
.fb-switch:checked::after { transform: translateX(16px); }

/* How to pay: the card and its country picker */
.fb-methods { padding: 0 !important; overflow: hidden; }
.fb-methods__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.fb-methods__head h2 { margin: 0; font-size: 1rem; }
.fb-country { display: inline-flex; align-items: center; gap: 4px; color: var(--to-muted); font-size: .82rem; white-space: nowrap; }
.fb-country select { font: inherit; font-weight: 700; color: var(--to-ink); border: 0; background: transparent; padding: 2px 0; cursor: pointer; max-width: min(130px, 40vw); }
.fb-methods > .et-note, .fb-methods > .to-actions { margin: 0 16px 10px; }
.fb-methods .to-pay { margin: 0; }
.fb-methods .to-pay > .to-fine, .fb-methods .to-bundle { margin-left: 16px; margin-right: 16px; }

/* The rows: a mark, the name, a radio; the open one shows its form */
.pm-list.is-fb { gap: 0; }
.pm-list.is-fb .pm { border: 0; border-top: 1px solid var(--to-line); border-radius: 0; box-shadow: none; }
.pm-list.is-fb .pm[open] { border-top-color: var(--to-line); box-shadow: none; }
.pm-list.is-fb .pm[open] > .pm-head { background: var(--to-blue-soft); }
.pm-list.is-fb .pm-head { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mk txt rd" "mk marks rd"; gap: 2px 10px; padding: 11px 14px; align-items: center; }
.pm-list.is-fb .pm-head:hover { background: var(--to-soft); }
.pm-mk { grid-area: mk; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; }
.pm-mk .pm-mark { min-width: 40px; }
.pm-mk .pm-net { min-width: 40px; height: 24px; font-size: .68rem; padding: 0 7px; }
.pm-list.is-fb .pm-txt b { font-size: .92rem; }
.pm-list.is-fb .pm-txt small { font-size: .78rem; }
.pm-list.is-fb .pm-marks { margin-top: 2px; gap: 4px; }
.pm-list.is-fb .pm-marks .pm-mark { height: 18px; min-width: 28px; padding: 0 4px; }
.pm-list.is-fb .pm-marks .pm-mark svg { height: 11px; }
.pm-list.is-fb .pm-marks .pm-mark--visa svg { height: 8px; }
.pm-list.is-fb .pm-marks .pm-mark--applepay svg { height: 13px; }
.pm-list.is-fb .pm-marks .pm-mark--googlepay svg { height: 10px; }
.pm-list.is-fb .pm-marks--text { display: none; }
.pm-list.is-fb .pm-badge { display: none; }
.pm-rd { grid-area: rd; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd6e2; flex: none; background: #fff; }
.pm[open] .pm-rd { border-color: var(--to-blue); background: radial-gradient(var(--to-blue) 45%, #fff 50%); }
.pm-list.is-fb .pm-body { padding: 12px 14px 16px; border-top: 0; background: #fff; }
.pm-word { display: inline-grid; place-items: center; height: 16px; min-width: 30px; padding: 0 5px; border-radius: 4px; color: #fff; font-style: normal; font-size: .52rem; font-weight: 800; letter-spacing: .01em; }
.pm-word--unionpay { background: #0f2557; }
.pm-word--jcb { background: #0e4c96; }
.pm-word--amex { background: #2e77bc; }
.pm-mark--unionpay, .pm-mark--jcb, .pm-mark--amex { padding: 0 2px; }
.pm-net--wallet { background: #0f1a2c; color: #fff; }
.pm-net--parts { background: var(--to-blue-soft); color: var(--to-blue); }
.pm-net--bank { background: var(--to-soft); color: var(--to-muted); border: 1px solid var(--to-line); }
/* Country first: Tanzania sees its wallets, then parts, card, USDT, bank;
   Kenya, Uganda and Vietnam see card, USDT, bank; everyone else adds
   mobile money last. The rows themselves never move or change. */
.pm-list.is-fb .pm { order: 50; }
.pm-list.is-fb[data-country="TZ"] .pm--mobile { order: 10; }
.pm-list.is-fb[data-country="TZ"] .pm--parts { order: 20; }
.pm-list.is-fb[data-country="TZ"] .pm--card { order: 30; }
.pm-list.is-fb[data-country="TZ"] .pm--wallet { order: 31; }
.pm-list.is-fb[data-country="TZ"] .pm--crypto { order: 40; }
.pm-list.is-fb[data-country="TZ"] .pm--bank { order: 50; }
.pm-list.is-fb[data-country="KE"] .pm--mobile, .pm-list.is-fb[data-country="KE"] .pm--parts,
.pm-list.is-fb[data-country="UG"] .pm--mobile, .pm-list.is-fb[data-country="UG"] .pm--parts,
.pm-list.is-fb[data-country="VN"] .pm--mobile, .pm-list.is-fb[data-country="VN"] .pm--parts { display: none; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--card { order: 10; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--wallet { order: 11; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--crypto { order: 20; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--bank { order: 30; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--mobile { order: 40; }
.pm-list.is-fb:not([data-country="TZ"]) .pm--parts { order: 45; }

/* Pay in parts offered above the wallet limit, the quiet recheck, the trust row */
.fb-parts { background: #fff8e6; border: 1px solid #e9c46a; border-radius: var(--to-r); padding: 12px 14px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fb-parts b { color: #8a5a00; }
.fb-parts p { margin: 0; font-size: .84rem; line-height: 1.45; }
.fb-parts__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.fb-parts__btns .et-btn { display: inline-flex; align-items: center; justify-content: center; }
.fb-quiet { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: var(--to-muted); font-size: .8rem; line-height: 1.45; }
.fb-trust { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: .74rem; font-weight: 600; }
.fb-trust li { background: #fff; border: 1px solid var(--to-line); border-radius: 12px; padding: 8px 6px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.fb-trust a { color: inherit; text-decoration: none; }
.fb-trust a:hover { color: var(--to-blue); }

/* The pay bar: one button for the open method, on every screen */
.is-fb .fb-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; margin: 16px 0 0; padding: 10px 14px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--to-line); box-shadow: 0 10px 30px rgba(15, 26, 44, .18); display: flex; flex-direction: column; gap: 6px; }
body.has-tabbar .fb-bar { bottom: calc(var(--tab-h, 62px) + 10px + env(safe-area-inset-bottom)); }
/* One bar: with the pay bar on the page the tab bar is hidden (elite.css). */
body.has-actionbar .fb-bar { bottom: calc(10px + env(safe-area-inset-bottom)); }
body:has(.fb-bar) .al-fab, body:has(.fb-bar) .al-fab.is-lifted { bottom: calc(136px + env(safe-area-inset-bottom)); }
.fb-bar__go { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 800; border-radius: 12px; }
.fb-bar__go[disabled] { opacity: .7; cursor: default; }
.fb-bar__help { margin: 0; text-align: center; color: var(--to-muted); font-size: .78rem; line-height: 1.4; }
.fb-bar__help:empty { display: none; }
@media (min-width: 861px) { .is-fb .fb-bar { max-width: calc(100% - 344px); } }
/* Ticket desk · live */
.tk-desk { background: #fff; border: 1px solid var(--to-line); border-radius: var(--to-r); box-shadow: var(--to-sh); padding: 14px 16px; margin: 0 0 12px; }
.tk-desk .tk-row { margin: 0 0 10px; }
.tk-tl { list-style: none; margin: 0; padding: 0; }
.tk-tl li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px; padding: 0 0 18px; }
.tk-tl li:last-child { padding-bottom: 0; }
.tk-tl li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: 2px; width: 2px; background: var(--to-line); }
.tk-tl li.is-done:not(:last-child)::before { background: #9fd3b5; }
.tk-tl__dot { width: 22px; height: 22px; margin: 1px auto 0; border-radius: 50%; background: var(--to-line); color: var(--to-muted); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.tk-tl__dot .et-i { width: 12px; height: 12px; }
.tk-tl li.is-done .tk-tl__dot { background: var(--to-ok); color: #fff; }
.tk-tl li.is-now .tk-tl__dot { background: var(--to-blue); color: #fff; box-shadow: 0 0 0 4px var(--to-blue-soft); }
.tk-tl li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .92rem; line-height: 1.4; }
.tk-tl li > div small { color: var(--to-muted); font-size: .8rem; overflow-wrap: anywhere; }
.tk-open { margin: 0 0 16px; }
.tk-open .et-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .fb-switch::after { transition: none; } }
/* Measured on the order page itself (container queries, 2026-10-29). */
@container (max-width: 449px) {
    .to-paybar .et-btn, .fb-bar__go { flex: 1 1 100%; justify-content: center; }
    .to-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .to-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Long test-pay label: wrap inside a rounded box instead of spilling out of a pill. */
.to-testpay { white-space: normal; border-radius: 16px; line-height: 1.25; text-align: center; }
