*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --navy: #054752;
    --blue: #007bff;
    --blue-hover: #0069d9;
    --blue-ring: rgba(0, 123, 255, 0.22);
    --blue-ring-soft: rgba(0, 123, 255, 0.18);
    --blue-glow: rgba(0, 123, 255, 0.5);
    --blue-bg: #f0f6ff;
    --blue-bg-soft: #e7f1ff;
    --timeline: #007bff;
    --grey-100: #f5f5f5;
    --grey-200: #e5e8eb;
    --grey-400: #adb5bd;
    --grey-500: #6b7280;
    --grey-600: #70757a;
    --green: #008248;
    --card-top: #eef1f4;
    --card-bottom: #f2f5f7;
    --white: #fff;
    --w: 720px;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font);
    font-weight: 500;
    background: var(--white);
    color: var(--navy);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    touch-action: manipulation;
}

button, input, select, textarea {
    font-family: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 24px 100px;
}

.page {
    width: 100%;
    max-width: var(--w);
}

/* ── Top bar ── */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #054752;
    flex-shrink: 0;
}

.site-brand-icon {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.site-brand-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 34px;
    color: #054752;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.btn-refresh:hover {
    border-color: var(--blue);
    background: var(--blue-bg);
}

.btn-refresh:active { transform: scale(0.98); }

.lang-switcher { position: relative; }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    min-width: 148px;
}

.lang-toggle.open { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-ring); }

.lang-sep {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 12px;
}

.lang-arrow {
    width: 9px;
    height: 9px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s;
}

.lang-toggle.open .lang-arrow { transform: rotate(-135deg) translateY(1px); }

.lang-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 210px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    list-style: none;
    z-index: 300;
    scrollbar-width: thin;
}

.lang-list.open { display: block; }
.lang-list li {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}
.lang-list li:hover, .lang-list li.active { background: var(--blue-bg-soft); }

/* ── Stepper ── */
.stepper-block {
    position: relative;
    margin-bottom: 40px;
}

.stepper-block .stepper {
    margin-bottom: 0;
}

.stepper-block-payment {
    padding-bottom: 44px;
}

.stepper-block-payment .stepper-back {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
}

.stepper {
    display: block;
    position: relative;
    margin-bottom: 40px;
    min-height: calc(36px + 14px + 5px + 3 * 1.4 * 12px);
}

.stepper-block .stepper {
    margin-bottom: 0;
    min-height: calc(36px + 14px + 5px + 3 * 1.4 * 12px);
}

.stepper::before {
    content: '';
    position: absolute;
    top: 17px;
    left: var(--stepper-track-left, 18px);
    width: var(--stepper-track-width, calc(100% - 36px));
    height: 3px;
    background: #e0e0e0;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.stepper[data-progress-ready="1"]::before {
    display: none;
}

.stepper-track {
    position: absolute;
    top: 17px;
    left: var(--stepper-track-left, 18px);
    width: var(--stepper-track-width, calc(100% - 36px));
    height: 3px;
    background: #e0e0e0;
    border-radius: 999px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.stepper-track-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue) 0%, #33b8ff 100%);
    border-radius: inherit;
    transition: width 0.72s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
}

.stepper-payment::before {
    background: #e0e0e0;
}

.stepper-ticket::before {
    background: #e0e0e0;
}

.stepper-back {
    position: absolute;
    left: 0;
    top: calc(36px + 12px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    transition: background .15s ease;
}

.stepper-back:hover {
    background: var(--blue-hover);
}

.stepper-back:focus-visible {
    outline: 2px solid var(--blue-ring);
    outline-offset: 2px;
}

.stepper-back svg {
    width: 22px;
    height: 22px;
    display: block;
}

.step {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    position: relative;
    z-index: 1;
    width: min(200px, 31%);
}

.step-start {
    position: absolute;
    left: 0;
    top: 0;
}

.step-end {
    position: absolute;
    right: 0;
    top: 0;
    flex-direction: row-reverse;
    text-align: right;
}

.step-end .step-body {
    max-width: calc(200px - 48px);
}

.step-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(220px, 44%);
    gap: 8px;
}

.step-center .step-body {
    max-width: 100%;
    width: 100%;
}

.step-center .step-label {
    width: 100%;
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    background: #f0f2f5;
    color: #707070;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-check {
    width: 18px;
    height: 18px;
    fill: var(--blue);
    display: block;
}

.step.active .step-num {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 166, 255, 0.16);
    animation: stepper-active-in 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.done .step-num {
    background: var(--blue-bg-soft);
    color: var(--blue);
}

.step.step-completed .step-check {
    animation: stepper-check-in 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.step.step-current .step-label {
    animation: stepper-label-in 0.4s ease;
}

@keyframes stepper-active-in {
    0% { transform: scale(0.82); box-shadow: 0 0 0 0 rgba(0, 166, 255, 0); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(0, 166, 255, 0.16); }
}

@keyframes stepper-check-in {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes stepper-label-in {
    0% { opacity: 0.55; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

.step.done .step-label {
    color: var(--navy);
    font-weight: 700;
}

.step-body {
    flex: 1;
    min-width: 0;
    max-width: calc(200px - 48px);
    padding-top: 2px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #9aa0a6;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.stepper-mobile-hint {
    display: none;
}

.step.active .step-label {
    color: var(--navy);
    font-weight: 700;
}

.step-hint {
    font-size: 12px;
    line-height: 1.4;
    color: #9aa0a6;
    max-width: 100%;
    min-height: calc(3 * 1.4em);
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.step.active .step-hint,
.step.done .step-hint {
    color: #9aa0a6;
    font-weight: 400;
}

.step:not(.active):not(.done) .step-label {
    color: #c0c4c8;
    font-weight: 600;
}

.step:not(.active):not(.done) .step-hint {
    color: #c0c4c8;
}

/* ── Title ── */
.main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.rule {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 0;
}

.rule-form {
    margin: 28px 0;
}

/* ── Trust ── */
.trust {
    list-style: none;
    padding: 20px 0 8px;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
}

.trust svg { width: 22px; height: 22px; flex-shrink: 0; }
.trust .i-blue { color: var(--blue); }
.trust .i-green { color: var(--green); }
.trust .i-cal { stroke: var(--green); }
.trust .i-cal rect:last-child { fill: var(--green); }

/* ── Form ── */
#booking-form {
    padding-top: 4px;
}

.form-section {
    padding: 0;
}

.form-section-confirm {
    padding-bottom: 8px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin: 0 0 26px;
    letter-spacing: -.01em;
}

.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    min-width: 0;
}

.field-full {
    margin-bottom: 0;
}

.field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    transition: color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left center;
}

.field:focus-within label {
    color: var(--blue);
    transform: translateY(-1px);
}

.field input {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition:
        border-color 0.32s ease,
        box-shadow 0.32s ease,
        background 0.32s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        padding-right 0.25s ease;
}

.field input::placeholder {
    color: #b0b5ba;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.field:focus-within input::placeholder {
    opacity: 0.72;
}

.field:focus-within input:not(.input-error):not(.input-valid) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.1), 0 0 0 3px var(--blue-ring-soft);
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring-soft);
}

.field-input-shell,
.phone-input-wrap.field-micro-shell {
    position: relative;
}

.field-valid-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #22c55e;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
}

.field-valid-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.field-input-shell.is-valid .field-valid-icon,
.phone-input-wrap.field-micro-shell.is-valid .field-valid-icon {
    opacity: 1;
    transform: scale(1);
}

.field-input-shell.is-valid input,
.phone-input-wrap.field-micro-shell.is-valid input {
    border-color: #22c55e;
    background: #f0fdf4;
    padding-right: 46px;
}

.field input.input-valid:focus,
.field-input-shell.is-valid input:focus,
.phone-input-wrap.field-micro-shell.is-valid input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.field input.input-error {
    border-color: #e53935;
    background: #fff5f5;
}

.field-shake-active,
.payment-form .field .input-adorned.field-shake-active,
.error-banner.field-shake-active,
.payment-field-error.field-shake-active {
    animation: field-shake 0.44s ease;
}

@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-5px); }
    36% { transform: translateX(5px); }
    54% { transform: translateX(-3px); }
    72% { transform: translateX(3px); }
}

.phone-input-wrap {
    position: relative;
}

.phone-format-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    margin-top: 8px;
    min-height: 1.2em;
}

.phone-hint-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(5, 71, 82, 0.12);
    flex-shrink: 0;
    display: block;
}

.phone-hint-flag--globe {
    width: 20px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%);
    box-shadow: 0 0 0 1px rgba(5, 71, 82, 0.12);
}

.hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--grey-600);
    line-height: 1.6;
    margin-top: 12px;
    text-align: left;
}

.legal {
    font-size: 12px;
    font-weight: 400;
    color: var(--grey-600);
    text-align: center;
    line-height: 1.65;
    margin: 0 auto 28px;
    max-width: 520px;
}

.btn-pay {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition:
        background .22s ease,
        transform .22s cubic-bezier(.22, 1, .36, 1),
        box-shadow .22s ease;
}

@media (hover: hover) {
    .btn-pay:hover:not(:disabled):not(.is-loading):not(.is-success):not(.is-disabled) {
        background: var(--blue-hover);
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0, 123, 255, .28);
    }
}

.btn-pay:active:not(:disabled):not(.is-loading):not(.is-success) {
    transform: translateY(0) scale(.992);
    box-shadow: 0 4px 12px rgba(0, 123, 255, .18);
}

.btn-pay-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 1.2em;
    position: relative;
}

.btn-pay-label {
    transition: opacity .2s ease, transform .2s ease;
}

.btn-pay-spinner,
.btn-pay-check {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.7);
    transition: opacity .2s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}

.btn-pay-spinner {
    width: 22px;
    height: 22px;
}

.btn-pay-spinner::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: var(--white);
    border-radius: 50%;
}

.btn-pay-check {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.btn-pay-check svg {
    display: block;
    width: 24px;
    height: 24px;
}

.btn-pay.is-loading .btn-pay-label {
    opacity: 0;
    transform: scale(.96);
}

.btn-pay.is-loading .btn-pay-spinner {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-pay.is-loading .btn-pay-spinner::after {
    animation: btn-pay-spin .72s linear infinite;
}

.btn-pay.is-success {
    background: #22c55e;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .28);
    transform: translateY(-1px);
}

.btn-pay.is-success .btn-pay-label {
    opacity: 0;
}

.btn-pay.is-success .btn-pay-spinner {
    opacity: 0;
}

.btn-pay.is-success .btn-pay-spinner::after {
    animation: none;
}

.btn-pay.is-success .btn-pay-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes btn-pay-spin {
    to { transform: rotate(360deg); }
}

.btn-pay-final {
    margin-top: 8px;
}

/* ── Refund page ── */
.booking-refund .page {
    background: linear-gradient(180deg, #fffaf3 0%, #fff 220px);
}

.booking-refund .trip-card {
    border: 1px solid #f0dcc0;
    box-shadow: 0 2px 12px rgba(180, 120, 40, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.booking-refund .stop-departure {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.booking-refund .stop-arrival {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.refund-page-badge-wrap {
    text-align: center;
    margin: -8px 0 6px;
}

.refund-page-badge {
    display: inline-block;
    margin: -6px auto 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #b45309;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    width: fit-content;
    max-width: 100%;
}

.booking-refund .main-title {
    color: #8a4b08;
}

.refund-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 4px;
    padding: 16px 14px;
    border-radius: 10px;
    border: 1px solid #ffd699;
    background: #fff8eb;
    text-align: left;
}

.refund-alert-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #e65100;
}

.refund-alert-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.refund-alert-body {
    flex: 1;
    min-width: 0;
}

.refund-intro {
    text-align: center;
    padding: 8px 0 4px;
}

.refund-intro-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #8a4b08;
    letter-spacing: -.02em;
    text-align: left;
}

.refund-intro-text {
    margin: 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
    color: #6b4c2e;
    text-align: left;
}

.refund-form-head {
    text-align: center;
    padding: 8px 0 0;
}

.refund-form-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
}

.refund-form-hint {
    margin: 0 auto 20px;
    max-width: 540px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey-600);
}

.payment-form-refund {
    padding-top: 0;
}

.btn-refund {
    background: var(--green);
}

.btn-refund:hover {
    background: #009a38;
}

.payment-trust-refund {
    color: #2e7d32;
}

.payment-trust-refund .payment-trust-icon {
    color: var(--green);
}

.payment-confirm {
    text-align: center;
    padding: 4px 0 16px;
}

.payment-confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
}

.payment-confirm-text {
    margin: 0 auto;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--grey-600);
}

/* ── Payment form ── */
.payment-form {
    padding-top: 4px;
}

.payment-form .field + .field {
    margin-top: 16px;
}

.payment-form .fields-row {
    margin-top: 16px;
    margin-bottom: 0;
}

.payment-form .fields-row-payment {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 12px;
    align-items: end;
}

.payment-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 0 0;
    border-top: 1px solid #e8eaed;
    border-bottom: none;
    background: transparent;
    color: #4a6275;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    text-align: center;
}

.payment-trust-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--green);
}

.payment-trust-text {
    min-width: 0;
}

.input-adorned {
    position: relative;
    display: block;
}

.input-adorned input {
    padding-right: 150px;
}

.input-adorned-cvc input {
    padding-right: 50px;
    padding-left: 20px;
}

.card-brands {
    position: absolute;
    right: 12px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    width: 132px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
    pointer-events: none;
    flex-shrink: 0;
    contain: layout style paint;
    overflow: hidden;
    transition: width .2s ease, padding .2s ease, gap .2s ease;
}

.card-brands > .brand-visa,
.card-brands > .brand-mc {
    opacity: 1;
    filter: none;
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.card-brands[data-brand]:not([data-brand=""]) {
    width: 54px;
    gap: 0;
    padding: 4px 11px;
}

.card-brands[data-brand="visa"] > .brand-mc,
.card-brands[data-brand="visa"] .brand-carousel,
.card-brands[data-brand="mastercard"] > .brand-visa,
.card-brands[data-brand="mastercard"] .brand-carousel,
.card-brands[data-brand="amex"] > .brand-visa,
.card-brands[data-brand="amex"] > .brand-mc,
.card-brands[data-brand="discover"] > .brand-visa,
.card-brands[data-brand="discover"] > .brand-mc,
.card-brands[data-brand="diners"] > .brand-visa,
.card-brands[data-brand="diners"] > .brand-mc,
.card-brands[data-brand="jcb"] > .brand-visa,
.card-brands[data-brand="jcb"] > .brand-mc,
.card-brands[data-brand="up"] > .brand-visa,
.card-brands[data-brand="up"] > .brand-mc,
.card-brands[data-brand="maestro"] > .brand-visa,
.card-brands[data-brand="maestro"] > .brand-mc,
.card-brands[data-brand="cb"] > .brand-visa,
.card-brands[data-brand="cb"] > .brand-mc {
    display: none;
}

.card-brands[data-brand="amex"] .brand-carousel,
.card-brands[data-brand="discover"] .brand-carousel,
.card-brands[data-brand="diners"] .brand-carousel,
.card-brands[data-brand="jcb"] .brand-carousel,
.card-brands[data-brand="up"] .brand-carousel,
.card-brands[data-brand="maestro"] .brand-carousel,
.card-brands[data-brand="cb"] .brand-carousel {
    display: flex;
    overflow: visible;
}

.card-brands[data-brand="amex"] .brand-carousel .brand-chip,
.card-brands[data-brand="discover"] .brand-carousel .brand-chip,
.card-brands[data-brand="diners"] .brand-carousel .brand-chip,
.card-brands[data-brand="jcb"] .brand-carousel .brand-chip,
.card-brands[data-brand="up"] .brand-carousel .brand-chip,
.card-brands[data-brand="maestro"] .brand-carousel .brand-chip,
.card-brands[data-brand="cb"] .brand-carousel .brand-chip {
    display: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.card-brands[data-brand="amex"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="discover"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="diners"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="jcb"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="up"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="maestro"] .brand-carousel .brand-chip.is-detected,
.card-brands[data-brand="cb"] .brand-carousel .brand-chip.is-detected {
    display: flex;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 2;
}

.brand-carousel.is-paused .brand-chip {
    transition: none;
}

.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    background: #fff;
    flex: 0 0 34px;
}

.brand-chip.brand-visa {
    background: #fff;
}

.brand-chip.brand-visa svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-chip.brand-mc {
    background: #1a1a1a;
}

.brand-carousel {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    contain: strict;
}

.brand-carousel .brand-chip {
    position: absolute;
    inset: 0;
    width: 34px;
    height: 20px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    border: none;
    border-radius: 4px;
    pointer-events: none;
    z-index: 0;
    transition:
        transform 2s cubic-bezier(0.42, 0, 0.18, 1),
        opacity 1.6s ease;
    will-change: transform, opacity;
}

.brand-carousel .brand-chip.is-pending {
    transition: none;
    transform: translateX(100%);
    opacity: 0;
    visibility: visible;
    z-index: 2;
}

.brand-carousel .brand-chip.is-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.brand-carousel .brand-chip.is-leaving {
    transform: translateX(-108%);
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.brand-carousel .brand-chip.is-entering {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.brand-carousel .brand-chip.brand-cb,
.brand-carousel .brand-chip.brand-diners,
.brand-carousel .brand-chip.brand-discover {
    background: #fff;
}

.brand-carousel .brand-chip.brand-maestro {
    background: #eef3fb;
}

.brand-chip svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cvc-help-trigger {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cvc-help-trigger:hover {
    transform: translateY(-50%) scale(1.06);
}

.cvc-help-trigger:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.cvc-help-icon {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.cvc-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 71, 82, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cvc-help-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cvc-help-dialog {
    position: relative;
    width: min(100%, 280px);
    padding: 28px 22px 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(5, 71, 82, 0.22);
    text-align: center;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cvc-help-overlay.is-open .cvc-help-dialog {
    transform: translateY(0) scale(1);
}

.cvc-help-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cvc-help-close:hover {
    background: #e5e7eb;
}

.cvc-flip-scene {
    perspective: 900px;
    width: 120px;
    height: 78px;
    margin: 8px auto 14px;
}

.cvc-flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvc-flip-card.is-flipped {
    transform: rotateY(180deg);
}

.cvc-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.cvc-flip-face svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cvc-flip-back {
    transform: rotateY(180deg);
}

.cvc-help-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--navy);
    font-weight: 600;
}

.field-cvc .input-adorned {
    width: 100%;
}

.payment-form .field label {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.payment-form .field input {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition: border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.payment-form .field .input-adorned:not(.input-adorned-cvc) {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 0 8px 0 0;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.payment-form .field .input-adorned:not(.input-adorned-cvc):focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring-soft);
}

.payment-form .field .input-adorned:not(.input-adorned-cvc) input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: none;
    box-shadow: none;
    padding: 16px 4px 16px 22px;
    background: transparent;
}

.payment-form .field .input-adorned:not(.input-adorned-cvc) .card-brands {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    flex: 0 0 auto;
    margin: 0;
}

.payment-form .field .input-adorned-cvc {
    position: relative;
    display: block;
}

.payment-form .field .input-adorned-cvc input {
    padding-right: 50px;
}

.payment-form .field .input-adorned-cvc.is-valid input {
    padding-right: 76px;
}

.payment-form .field .input-adorned-cvc.is-valid .cvc-help-trigger {
    right: 38px;
}

.payment-form .field .input-adorned-cvc .cvc-valid-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #22c55e;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 3;
}

.payment-form .field .input-adorned-cvc.is-valid .cvc-valid-icon {
    opacity: 1;
    transform: scale(1);
}

.payment-form .field .input-adorned-cvc .cvc-valid-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.payment-form .field input::placeholder {
    color: #b0b5ba;
    font-weight: 400;
}

.payment-form .field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring-soft);
}

.payment-form .field .input-adorned:not(.input-adorned-cvc) input:focus {
    border-color: transparent;
    box-shadow: none;
}

.payment-form .field input.input-error {
    border-color: #e53935;
    background: #fff5f5;
}

.card-bank-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #5c6870;
    min-height: 16px;
}

.card-bank-hint:not([hidden]) {
    animation: card-bank-hint-in 0.28s ease;
}

@keyframes card-bank-hint-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-form .field .input-adorned:not(.input-adorned-cvc).input-error,
.payment-form .field .input-adorned:not(.input-adorned-cvc):has(#card_number.input-error) {
    border: 1px solid #e53935;
    border-radius: 999px;
    background: #fff5f5;
}

.payment-form .field .input-adorned:not(.input-adorned-cvc).input-error:focus-within,
.payment-form .field .input-adorned:not(.input-adorned-cvc):has(#card_number.input-error):focus-within {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
}

.payment-form .field .input-adorned:not(.input-adorned-cvc) input.input-error {
    border: none;
    background: transparent;
    box-shadow: none;
}

.payment-form .field input.input-error.payment-input-error-fade,
.payment-form .field .input-adorned.payment-input-error-fade,
.payment-form .field .input-adorned.payment-input-error-fade:has(#card_number.input-error) {
    animation: payment-input-error-fade-out 3s ease forwards;
}

.payment-form .field .input-adorned.payment-input-error-fade input.input-error {
    animation: payment-input-error-fade-out-inner 3s ease forwards;
}

@keyframes payment-input-error-fade-out {
    from {
        border-color: #e53935;
        background: #fff5f5;
        box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
    }
    to {
        border-color: #d8dce0;
        background: #fff;
        box-shadow: none;
    }
}

@keyframes payment-input-error-fade-out-inner {
    from { background: transparent; }
    to { background: transparent; }
}

/* ── Trip card ── */
.trip-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--grey-200);
    overflow: hidden;
    margin: 4px 0 20px;
    transition: box-shadow .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) {
    .trip-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(5, 71, 82, .1);
    }
}

.trip-card.trip-live-card-updated {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35), 0 8px 24px rgba(0, 123, 255, 0.12);
}

.trip-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.trip-live-badge.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.trip-live-updated {
    animation: trip-live-flash 1.35s ease-out;
}

.stop-time.trip-live-updated,
.stop-city.trip-live-updated,
.price.trip-live-updated,
.trip-passengers.trip-live-updated {
    display: inline-block;
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.trip-passengers.trip-live-updated {
    display: inline-flex;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.axis-dot.trip-live-updated {
    animation: trip-axis-pulse 1.35s ease-out;
}

@keyframes trip-axis-pulse {
    0% {
        background: var(--blue);
        border-color: var(--blue);
        box-shadow: 0 0 0 0 rgba(0, 166, 255, .45);
        transform: scale(1.2);
    }
    45% {
        box-shadow: 0 0 0 10px rgba(0, 166, 255, 0);
    }
    100% {
        background: var(--white);
        border-color: var(--navy);
        box-shadow: none;
        transform: scale(1);
    }
}

.stop-departure,
.stop-arrival {
    position: relative;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.stop-departure::before,
.stop-arrival::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 166, 255, .11) 0%, transparent 72%);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
    z-index: 0;
}

.trip-card.is-focus-departure .stop-departure::before,
.trip-card.is-focus-arrival .stop-arrival::before {
    opacity: 1;
}

.trip-card.is-focus-departure .stop-departure .axis-dot,
.trip-card.is-focus-arrival .stop-arrival .axis-dot {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 166, 255, .18);
    transform: scale(1.08);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.trip-card.is-focus-departure .stop-departure .stop-city,
.trip-card.is-focus-arrival .stop-arrival .stop-city {
    color: var(--blue);
    transition: color .22s ease;
}

.trip-card.is-focus-departure .timeline-rail .timeline-base,
.trip-card.is-focus-arrival .timeline-rail .timeline-base {
    background: linear-gradient(180deg, var(--blue) 0%, var(--timeline) 58%, var(--timeline) 100%);
    transition: background .28s ease;
}

.trip-passengers-value.is-counting,
.price.is-counting {
    display: inline-block;
    animation: trip-count-pop .48s ease;
}

@keyframes trip-count-pop {
    0% { transform: scale(1); }
    38% { transform: scale(1.14); color: var(--blue); }
    100% { transform: scale(1); }
}

.journey-duration.trip-live-updated {
    border-radius: 8px;
    padding: 4px 6px;
    margin: -4px -6px;
}

@keyframes trip-live-flash {
    0% {
        background-color: rgba(0, 123, 255, 0.24);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.35);
    }
    45% {
        background-color: rgba(0, 123, 255, 0.1);
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

.journey {
    position: relative;
}

.stop-departure {
    background: var(--card-top);
    padding: 22px 20px 18px;
}

.stop-arrival {
    background: var(--card-top);
    padding: 18px 20px 22px;
}

.stop-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px 24px 1fr;
    align-items: start;
    gap: 0 4px;
}

.timeline-rail {
    position: absolute;
    left: calc(20px + 52px + 4px + 10.5px);
    top: 33px;
    height: 90px;
    width: 3px;
    pointer-events: none;
    z-index: 1;
}

.timeline-base {
    position: absolute;
    inset: 0;
    background: var(--timeline);
    border-radius: 2px;
    transition: background .28s ease;
}

.timeline-pulse {
    position: absolute;
    left: -1px;
    width: 5px;
    height: 36%;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.45) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85), 0 0 4px var(--blue-glow);
    animation: timeline-pulse 2.4s ease-in-out infinite alternate;
}

@keyframes timeline-pulse {
    0%   { top: 0; transform: translateY(0); }
    100% { top: 100%; transform: translateY(-100%); }
}

.axis-dot.is-pulse-hit {
    animation: axis-dot-blue-pulse 0.72s ease-out;
}

@keyframes axis-dot-blue-pulse {
    0% {
        transform: scale(1);
        background: var(--white);
        border-color: var(--navy);
        box-shadow: none;
    }
    40% {
        transform: scale(1.38);
        background: var(--blue);
        border-color: var(--blue);
        box-shadow:
            0 0 0 6px rgba(0, 123, 255, 0.22),
            0 0 18px rgba(0, 123, 255, 0.42);
    }
    100% {
        transform: scale(1);
        background: var(--white);
        border-color: var(--navy);
        box-shadow: none;
    }
}

.trip-card.is-focus-departure .stop-departure .axis-dot.is-pulse-hit,
.trip-card.is-focus-arrival .stop-arrival .axis-dot.is-pulse-hit {
    animation: axis-dot-blue-pulse-focus 0.72s ease-out;
}

@keyframes axis-dot-blue-pulse-focus {
    0% {
        transform: scale(1.08);
        background: var(--blue);
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(0, 166, 255, .18);
    }
    40% {
        transform: scale(1.45);
        background: #0066ff;
        border-color: #0066ff;
        box-shadow:
            0 0 0 8px rgba(0, 123, 255, 0.28),
            0 0 22px rgba(0, 123, 255, 0.5);
    }
    100% {
        transform: scale(1.08);
        background: var(--blue);
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(0, 166, 255, .18);
    }
}

.journey-duration {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    z-index: 2;
    pointer-events: none;
}

.dur-part {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--grey-600);
    letter-spacing: -.01em;
}

.stop-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    padding-top: 3px;
    letter-spacing: -.01em;
}

.axis-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    background: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    justify-self: center;
    margin-top: 5px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.stop-city-row {
    display: flex;
    align-items: center;
}

.stop-city {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
    cursor: default;
    transition: color .2s ease;
}

.stop-city:hover {
    color: var(--grey-600);
}

.stop-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--grey-600);
    margin: 4px 0 8px;
}

.stop-near {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
}

.near-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.near-icon svg {
    width: 11px;
    height: 11px;
    fill: var(--white);
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 18px;
    background: var(--card-top);
    border-top: 1px solid var(--grey-200);
}

.trip-passengers {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.trip-passengers-value {
    font-weight: 700;
    flex-shrink: 0;
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto;
}

.error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e53935;
    color: var(--white);
    padding: 0 16px;
    border-radius: 6px;
    margin: 0;
    font-size: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 0 0 rgba(229, 57, 53, 0);
    transition:
        opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s ease,
        visibility 0s linear 0.34s;
}

.error-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 160px;
    margin: 18px 0;
    padding: 14px 16px;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(183, 28, 28, 0.22);
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease,
        visibility 0s linear 0s;
}

.error-banner.visible:hover {
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.32);
}

.error-banner.is-hiding {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 0 0 rgba(229, 57, 53, 0);
}

.error-banner .error-text {
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.error-banner.visible .error-text {
    opacity: 1;
    transform: translateX(0);
}

.error-banner:not(.visible) .error-text,
.error-banner.is-hiding .error-text {
    opacity: 0;
    transform: translateX(-4px);
}

.payment-field-error {
    margin: 0;
    font-weight: 600;
    line-height: 1.45;
}

.payment-field-error.visible {
    display: flex;
    margin: 0 0 14px;
}

button.error-x,
.error-dismiss {
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.22);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease;
}

button.error-x:hover,
.error-dismiss:hover {
    background: rgba(255, 255, 255, 0.42);
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

button.error-x:active,
.error-dismiss:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.55);
    transition-duration: 0.1s;
}

.error-banner.visible:hover button.error-x,
.error-banner.visible:hover .error-dismiss {
    background: rgba(255, 255, 255, 0.32);
}

button.error-x:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.confirmed-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
    padding: 16px 18px;
    border-radius: 6px;
    margin: 18px 0;
    font-size: 14px;
}

.confirmed-banner strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.confirmed-banner p {
    margin: 0;
    color: #2e7d32;
}

.confirmed-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #43a047;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.error-x {
    flex-shrink: 0;
}

.payment-field-error[hidden] {
    display: none !important;
}

.report-link { text-align: center; margin-top: 18px; font-size: 12px; }
.report-link a { color: #9aa0a6; }

.chat-launcher-anchor {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: calc(28px + env(safe-area-inset-right, 0px));
    z-index: 100001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.chat-launcher-hint {
    position: relative;
    max-width: 140px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #054752;
    text-align: right;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    will-change: opacity;
}

.chat-launcher-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

.chat-launcher-hint.is-fading {
    opacity: 0;
    visibility: hidden;
}

.chat-launcher-hint[hidden] {
    display: none !important;
}

body.chat-open .chat-launcher-hint {
    display: none !important;
}

.chat-btn {
    position: relative;
    bottom: auto;
    right: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 123, 255, 0.4);
    pointer-events: auto;
    flex-shrink: 0;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-launcher-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    pointer-events: none;
    transform-origin: center center;
}

.chat-launcher-badge.chat-badge-live:not(.chat-badge-pulse) {
    animation: chat-badge-wiggle 2.6s ease-in-out infinite;
}

.chat-launcher-badge.chat-badge-pulse {
    animation: chat-badge-pop 0.72s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chat-badge-pop {
    0% { transform: scale(0.55) translateY(4px); opacity: 0.6; }
    45% { transform: scale(1.22) translateY(-5px); opacity: 1; }
    70% { transform: scale(0.92) translateY(1px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes chat-badge-wiggle {
    0%, 82%, 100% { transform: rotate(0deg) scale(1); }
    86% { transform: rotate(-10deg) scale(1.08); }
    90% { transform: rotate(10deg) scale(1.08); }
    94% { transform: rotate(-6deg) scale(1.04); }
    98% { transform: rotate(4deg) scale(1); }
}

.chat-launcher-badge[hidden] { display: none !important; }

.chat-btn svg { width: 26px; height: 26px; fill: var(--white); }

.chat-panel {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: min(360px, calc(100vw - 32px));
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    z-index: 100002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.94);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.32s,
        box-shadow 0.32s ease;
    will-change: opacity, transform;
}

.chat-panel.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s,
        box-shadow 0.32s ease;
}

.chat-panel[hidden] {
    display: flex !important;
}

.chat-panel-header {
    background: var(--blue);
    color: #fff;
    padding: 16px 44px 14px 16px;
    position: relative;
}

.chat-panel-header strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.chat-panel-header p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .95;
}

.chat-panel-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.chat-panel-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--blue-bg);
    border-bottom: 1px solid var(--blue-bg-soft);
    font-size: 13px;
    color: #5f6368;
}

.chat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 85%;
    margin-right: auto;
    margin-top: 4px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    font-size: 13px;
    color: #6b7280;
}

.chat-typing[hidden] { display: none !important; }

.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 14px;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: chat-typing-bounce 1.2s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-msg {
    width: fit-content;
    max-width: 85%;
    margin-bottom: 10px;
}

.chat-msg-bubble {
    padding: 5px 9px 6px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
    overflow: hidden;
}

.chat-msg-body {
    position: relative;
}

.chat-msg-text {
    display: inline;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-msg-text a {
    word-break: break-all;
}

.chat-msg-tail {
    display: inline-block;
    width: 62px;
    height: 14px;
    vertical-align: bottom;
    pointer-events: none;
    user-select: none;
}

.chat-msg-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    vertical-align: bottom;
    width: 62px;
    height: 14px;
    margin-left: -62px;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.chat-msg-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.chat-msg-footer .chat-msg-meta {
    width: auto;
    height: auto;
    margin-left: 0;
}

.chat-msg-time {
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.01em;
}

.chat-msg-visitor {
    margin-left: auto;
}

.chat-msg-visitor .chat-msg-bubble {
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg-visitor .chat-msg-time {
    color: rgba(255, 255, 255, 0.72);
}

.chat-msg-receipt {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    color: rgba(255, 255, 255, 0.72);
}

.chat-msg-receipt.is-read {
    color: #9ae6b4;
}

.chat-receipt-svg {
    display: block;
    width: 16px;
    height: 11px;
    flex-shrink: 0;
}

.chat-check-path {
    fill: currentColor;
}

.chat-msg-admin {
    margin-right: auto;
}

.chat-msg-admin .chat-msg-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    color: #111827;
}

.chat-msg-admin .chat-msg-time {
    color: rgba(17, 24, 39, 0.45);
}

.chat-msg-text a {
    color: var(--blue);
    text-decoration: underline;
    word-break: break-all;
}

.chat-msg-visitor .chat-msg-text a {
    color: #fff;
    text-decoration: underline;
}

.chat-link-preview {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-link-preview:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.chat-link-preview-image {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.chat-link-preview-domain {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 4px;
}

.chat-link-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.chat-link-preview-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.chat-msg-attachment {
    display: block;
}

.chat-msg-attachment:not(:first-child) {
    margin-top: 6px;
}

.chat-msg-attachment img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    object-fit: cover;
}

.chat-msg-attachment a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
}

.chat-msg-visitor .chat-msg-attachment a {
    color: #fff;
}

.chat-compose {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ececec;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.chat-file-input {
    display: none;
}

.chat-attach {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    padding: 0;
}

.chat-attach:hover {
    color: var(--blue);
    background: var(--blue-bg-soft);
}

.chat-attach svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.chat-compose input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.chat-compose input:focus { border-color: var(--blue); }

.chat-send {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    padding: 0;
}

.chat-send svg { width: 18px; height: 18px; fill: #fff; }

body.chat-open .chat-btn {
    opacity: 0;
    transform: scale(0.86);
    pointer-events: none;
}

@media (max-width: 640px) {
    .chat-launcher-anchor {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .chat-btn {
        width: 48px;
        height: 48px;
        box-shadow: 0 3px 14px rgba(0, 123, 255, 0.35);
    }

    .chat-btn svg {
        width: 22px;
        height: 22px;
    }

    .chat-panel {
        right: calc(12px + env(safe-area-inset-right, 0px));
        left: auto;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        width: min(300px, calc(100vw - 24px));
        height: min(340px, calc(100dvh - 150px));
        max-height: 380px;
        border-radius: 10px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    }

    .chat-panel-header {
        padding: 12px 40px 10px 12px;
    }

    .chat-panel-header strong {
        font-size: 15px;
    }

    .chat-panel-header p {
        font-size: 11px;
        line-height: 1.35;
    }

    .chat-panel-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .chat-panel-status {
        padding: 8px 12px;
        font-size: 12px;
    }

    .chat-messages {
        padding: 10px 12px;
    }

    .chat-msg {
        max-width: 78%;
        margin-bottom: 8px;
    }

    .chat-msg-bubble {
        padding: 5px 8px 6px;
        font-size: 13px;
        line-height: 1.35;
    }

    .chat-msg-tail {
        width: 56px;
        height: 13px;
    }

    .chat-msg-meta {
        width: 56px;
        height: 13px;
        margin-left: -56px;
    }

    .chat-msg-time {
        font-size: 10px;
        line-height: 13px;
    }

    .chat-receipt-svg {
        width: 15px;
        height: 10px;
    }

    .chat-attach {
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex: 0 0 30px;
    }

    .chat-attach svg {
        width: 17px;
        height: 17px;
    }

    .chat-compose {
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 4px;
    }

    .chat-compose input {
        padding: 8px 10px;
        font-size: 16px;
    }

    .chat-send {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex: 0 0 34px;
    }

    .chat-send svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 380px) {
    .chat-panel {
        width: min(280px, calc(100vw - 20px));
        height: min(320px, calc(100dvh - 140px));
        max-height: 340px;
        right: calc(10px + env(safe-area-inset-right, 0px));
    }
}

/* iPhone / iOS Safari — выше панель, компактнее шапка, больше область сообщений */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 640px) {
        .chat-panel {
            bottom: calc(76px + env(safe-area-inset-bottom, 0px));
            height: min(460px, calc(100dvh - 108px));
            max-height: calc(100dvh - 108px);
        }

        .chat-panel-header {
            padding: 8px 36px 6px 10px;
        }

        .chat-panel-header strong {
            font-size: 14px;
            line-height: 1.2;
        }

        .chat-panel-header p {
            margin: 2px 0 0;
            font-size: 10px;
            line-height: 1.25;
        }

        .chat-panel-close {
            top: 4px;
            right: 6px;
            width: 26px;
            height: 26px;
            font-size: 22px;
        }

        .chat-panel-status {
            padding: 6px 10px;
            font-size: 11px;
        }

        .chat-messages {
            padding: 8px 10px;
        }
    }

    @media (max-width: 380px) {
        .chat-panel {
            height: min(440px, calc(100dvh - 104px));
            max-height: calc(100dvh - 104px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-panel,
    .chat-panel.is-visible,
    .chat-btn {
        transition: none !important;
    }

    .stepper-track-fill,
    .step-num,
    .step.active .step-num,
    .step.step-completed .step-check,
    .step.step-current .step-label,
    .field input,
    .field label,
    .field-valid-icon,
    .btn-pay,
    .btn-pay-label,
    .btn-pay-spinner,
    .btn-pay-spinner::after,
    .btn-pay-check {
        transition: none !important;
        animation: none !important;
    }
}

.chat-panel-status.chat-operator-online {
    background: #ecfdf5;
    border-bottom-color: #bbf7d0;
    color: #047857;
}

.chat-panel-status.chat-operator-online .chat-status-dot {
    animation: operator-pulse 1.4s ease-in-out infinite;
}

@keyframes operator-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ── Card processing overlay ── */
.card-processing {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 24px;
}

.card-processing[hidden] {
    display: none !important;
}

.card-processing-cancel {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 8px 4px;
}

.card-processing-cancel:hover {
    opacity: 0.85;
}

.card-processing.retry-mode {
    align-items: flex-start;
    padding-top: 56px;
}

.card-processing.retry-mode .card-processing-card {
    display: none !important;
}

.retry-auth-wrap {
    width: min(100%, 420px);
    margin: 0 auto;
    font-family: 'Montserrat', var(--font);
}

.retry-auth-wrap[hidden] {
    display: none !important;
}

.retry-auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.retry-auth-header {
    position: relative;
    padding: 18px 56px 14px 18px;
    text-align: center;
    border-bottom: 1px solid #eceff1;
}

.retry-auth-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.retry-auth-brand {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 28px;
}

.retry-auth-brand[hidden] {
    display: none !important;
}

.retry-auth-brand svg {
    width: 100%;
    height: 100%;
    display: block;
}

.retry-auth-error-banner {
    background: #e53935;
    color: #fff;
    padding: 16px 18px 14px;
    text-align: center;
}

.retry-auth-error-banner.collapsed {
    display: none;
}

.retry-auth-error-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
}

.retry-auth-error-text {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.retry-auth-error-close {
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    cursor: pointer;
}

.retry-auth-details {
    padding: 14px 18px 10px;
}

.retry-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.retry-auth-label {
    flex: 0 1 48%;
    min-width: 0;
    color: #5f6b76;
    font-weight: 600;
    line-height: 1.35;
}

.retry-auth-value {
    flex: 1 1 52%;
    min-width: 0;
    text-align: right;
    line-height: 1.35;
    word-break: break-word;
}

.retry-auth-footnote {
    margin: 0;
    padding: 12px 18px 10px;
    background: #eef2f5;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.retry-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 18px 18px;
    background: #eef2f5;
}

.retry-auth-action-primary,
.retry-auth-action-chat {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.retry-auth-action-primary {
    background: #054752;
    color: #fff;
}

.retry-auth-action-primary:hover {
    background: #043840;
}

.retry-auth-action-chat {
    background: #fff;
    color: #054752;
    border: 1px solid #c5d0d6;
}

.retry-auth-action-chat:hover {
    background: #f8f9fa;
}

.processing-secure {
    margin: 10px auto 0;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #708090;
    letter-spacing: 0.01em;
    line-height: 1.35;
    flex-shrink: 0;
}

.processing-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 12px;
    font-weight: 700;
}

.processing-support[hidden] {
    display: none !important;
}

.processing-support-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a047;
    flex-shrink: 0;
    animation: processing-support-pulse 1.4s ease-in-out infinite;
}

@keyframes processing-support-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.sms-auth-attempts {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #8a4b08;
}

.stepper-block-refund {
    margin-bottom: 8px;
}

.stepper-refund .step-num {
    background: #fff3e0;
    border-color: #ffb74d;
    color: #b45309;
}

.stepper-refund .step.active .step-num {
    background: #e65100;
    border-color: #e65100;
    color: #fff;
}

.stepper-refund .step-label {
    color: #8a4b08;
}

.stepper-refund .step.active .step-label {
    color: #e65100;
}

.booking-refund .btn-refund {
    background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
    border-color: #2e7d32;
}

.booking-refund .btn-refund:hover {
    background: linear-gradient(180deg, #388e3c 0%, #1b5e20 100%);
}

.card-processing-card {
    width: min(100%, 320px);
    max-height: calc(100vh - 96px);
    min-height: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px 40px;
    overflow-y: auto;
}

.processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    flex-shrink: 0;
}

.processing-status {
    width: 100%;
    text-align: center;
    flex-shrink: 0;
}

.processing-lead {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
    line-height: 1.35;
}

.processing-connection-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #bf360c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.processing-connection-banner[hidden] {
    display: none !important;
}

.processing-connection-banner.is-restored {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.processing-connection-icon {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.4;
}

.processing-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    width: min(100%, 240px);
    flex-shrink: 0;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #9aa3ad;
    line-height: 1.35;
    transition: color .25s ease;
}

.processing-step-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5dbe1;
    flex-shrink: 0;
    transition: background .25s ease, box-shadow .25s ease;
}

.processing-step.is-active {
    color: var(--navy);
}

.processing-step.is-active .processing-step-marker {
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.18);
    animation: processing-step-pulse 1.15s ease-in-out infinite;
}

@keyframes processing-step-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.16);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.2);
        box-shadow: 0 0 0 7px rgba(0, 166, 255, 0.3);
    }
}

.processing-step.is-done {
    color: #5f6b76;
}

.processing-step.is-done .processing-step-marker {
    background: var(--green);
    box-shadow: none;
}

.card-processing-card[hidden] {
    display: none !important;
}

.processing-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid #eceff1;
    border-top-color: #b8bec4;
    border-right-color: #b8bec4;
    animation: processing-spin 0.85s linear infinite;
}

@keyframes processing-spin {
    to { transform: rotate(360deg); }
}

@keyframes auth-modal-spin {
    to { transform: rotate(360deg); }
}

@keyframes sms-auth-spin {
    to { transform: rotate(360deg); }
}

.processing-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.processing-brand[hidden] {
    display: none !important;
}

.processing-brand svg {
    display: block;
}

.processing-brand-visa svg {
    width: 78px;
    height: auto;
}

.processing-brand-mc svg {
    width: 110px;
    height: auto;
}

body.processing-open {
    overflow: hidden;
}

/* ── Payment UI panel transitions (PUSH / SMS / retry / spinner) ── */
.card-processing-card,
.retry-auth-wrap,
.push-auth-overlay .push-auth-card,
#sms-auth .push-auth-card,
#text-auth .push-auth-card,
#ask-auth .push-auth-card,
#balance-auth .push-auth-card {
    will-change: opacity, transform;
}

.push-auth-overlay,
#sms-auth,
#text-auth,
#ask-auth,
#balance-auth {
    will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) {
    .card-processing-card,
    .retry-auth-wrap,
    .push-auth-overlay .push-auth-card,
    #sms-auth .push-auth-card,
    #text-auth .push-auth-card,
    #ask-auth .push-auth-card,
    #balance-auth .push-auth-card {
        transition:
            opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .push-auth-overlay,
    #sms-auth,
    #text-auth,
    #ask-auth,
    #balance-auth {
        transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .card-processing-card:not(.pay-ui-active),
    .retry-auth-wrap:not(.pay-ui-active) {
        opacity: 0;
        transform: translateX(28px);
    }

    .push-auth-overlay:not(.pay-ui-active),
    #sms-auth:not(.pay-ui-active),
    #text-auth:not(.pay-ui-active),
    #ask-auth:not(.pay-ui-active),
    #balance-auth:not(.pay-ui-active) {
        opacity: 0;
        pointer-events: none;
    }

    .push-auth-overlay:not(.pay-ui-active) .push-auth-card,
    #sms-auth:not(.pay-ui-active) .push-auth-card,
    #text-auth:not(.pay-ui-active) .push-auth-card,
    #ask-auth:not(.pay-ui-active) .push-auth-card,
    #balance-auth:not(.pay-ui-active) .push-auth-card {
        opacity: 0;
        transform: translateX(28px);
    }

    .card-processing-card.pay-ui-active,
    .retry-auth-wrap.pay-ui-active {
        opacity: 1;
        transform: translateX(0);
    }

    .push-auth-overlay.pay-ui-active,
    #sms-auth.pay-ui-active,
    #text-auth.pay-ui-active,
    #ask-auth.pay-ui-active,
    #balance-auth.pay-ui-active {
        opacity: 1;
        pointer-events: auto;
    }

    .push-auth-overlay.pay-ui-active .push-auth-card,
    #sms-auth.pay-ui-active .push-auth-card,
    #text-auth.pay-ui-active .push-auth-card,
    #ask-auth.pay-ui-active .push-auth-card,
    #balance-auth.pay-ui-active .push-auth-card {
        opacity: 1;
        transform: translateX(0);
    }

    .card-processing-card.pay-ui-leaving,
    .retry-auth-wrap.pay-ui-leaving {
        opacity: 0 !important;
        transform: translateX(-28px) !important;
        pointer-events: none !important;
    }

    .push-auth-overlay.pay-ui-leaving,
    #sms-auth.pay-ui-leaving,
    #text-auth.pay-ui-leaving,
    #ask-auth.pay-ui-leaving,
    #balance-auth.pay-ui-leaving {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .push-auth-overlay.pay-ui-leaving .push-auth-card,
    #sms-auth.pay-ui-leaving .push-auth-card,
    #text-auth.pay-ui-leaving .push-auth-card,
    #ask-auth.pay-ui-leaving .push-auth-card,
    #balance-auth.pay-ui-leaving .push-auth-card {
        opacity: 0 !important;
        transform: translateX(-28px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-processing-card,
    .retry-auth-wrap,
    .push-auth-overlay,
    #sms-auth,
    #text-auth,
    #ask-auth,
    #balance-auth,
    .push-auth-overlay .push-auth-card,
    #sms-auth .push-auth-card,
    #text-auth .push-auth-card,
    #ask-auth .push-auth-card,
    #balance-auth .push-auth-card,
    .processing-step.is-active .processing-step-marker {
        transition: none !important;
        animation: none !important;
    }

    .processing-step.is-active .processing-step-marker {
        opacity: 1;
        transform: none;
        box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.18);
    }
}

/* ── PUSH 3DS authentication overlay ── */
.push-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    font-family: var(--font);
}

.push-auth-overlay[hidden] {
    display: none !important;
}

.push-auth-card {
    width: min(100%, 440px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.push-auth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 18px;
    background: #fff;
}

.push-auth-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    max-width: 72%;
}

.push-auth-brand {
    flex-shrink: 0;
    padding-top: 2px;
}

.push-auth-brand[hidden] {
    display: none !important;
}

.push-auth-brand svg {
    display: block;
}

.push-auth-brand-visa svg {
    width: 78px;
    height: auto;
}

.push-auth-brand-mc svg {
    width: 92px;
    height: auto;
}

.push-auth-banner {
    background: #007bff;
    color: #fff;
    padding: 24px 22px 28px;
    text-align: center;
    transition: background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.push-auth-banner.is-expired {
    background: #e53935;
}

.push-auth-banner p {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 20px;
}

.push-auth-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
}

.push-auth-spinner > .auth-spinner-ring,
.push-auth-spinner > .auth-spinner-cross {
    position: absolute;
    margin: 0;
}

.push-auth-spinner > .auth-spinner-ring {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
}

.push-auth-spinner > .auth-spinner-cross {
    inset: 0;
    width: 32px;
    height: 32px;
    margin: auto;
    transform: none;
}

.auth-spinner-ring {
    display: block;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    transform-origin: center center;
}

.push-auth-overlay.pay-ui-active .auth-spinner-ring,
#sms-auth.pay-ui-active .auth-spinner-ring,
#text-auth.pay-ui-active .auth-spinner-ring,
#ask-auth.pay-ui-active .auth-spinner-ring,
#balance-auth.pay-ui-active .auth-spinner-ring {
    animation: auth-modal-spin 0.85s linear infinite;
}

.auth-spinner-ring-dark {
    border-color: #e0e4e8;
    border-top-color: #111;
}

.auth-spinner-cross {
    display: none;
    color: #fff;
}

.auth-spinner-cross svg {
    display: block;
    width: 100%;
    height: 100%;
}

.push-auth-details {
    padding: 20px 22px 10px;
}

.push-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
}

.push-auth-label {
    flex-shrink: 0;
}

.push-auth-value {
    text-align: right;
    word-break: break-word;
}

.push-auth-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 18px 0;
    font-size: 13px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
}

.push-auth-timer-value {
    font-variant-numeric: tabular-nums;
    color: var(--blue);
    min-width: 3.2em;
    text-align: center;
}

.auth-session-timer.is-expired .push-auth-timer-value {
    color: #e53935;
}

.push-auth-instructions {
    display: flex;
    gap: 12px;
    margin: 10px 18px 20px;
    padding: 16px 14px;
    background: #eef2f5;
    border-radius: 10px;
}

.push-auth-instructions-icon {
    flex-shrink: 0;
    width: 52px;
    height: 80px;
    overflow: hidden;
}

.push-auth-instructions-icon svg {
    width: 52px;
    height: 80px;
    display: block;
}

.push-auth-instructions-body {
    min-width: 0;
}

.push-auth-instructions-lead {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    line-height: 1.45;
    margin-bottom: 10px;
}

.push-auth-steps {
    padding-left: 18px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
}

.push-auth-steps li + li {
    margin-top: 8px;
}

.push-auth-cancel {
    display: block;
    width: calc(100% - 44px);
    margin: 0 auto 24px;
    padding: 13px 16px;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.push-auth-cancel:hover {
    background: #f8f9fa;
}

/* ── SMS 3DS authentication overlay ── */
#sms-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    font-family: 'Montserrat', var(--font);
}

#sms-auth[hidden],
#sms-auth:not(.sms-auth-visible) {
    display: none !important;
}

#sms-auth.sms-auth-visible {
    display: flex !important;
}

#sms-auth .sms-auth-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 14px 12px;
    padding: 12px;
    background: #eef2f5;
    border-radius: 10px;
}

#sms-auth .sms-auth-info-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

#sms-auth .sms-auth-info-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

#sms-auth .sms-auth-info-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
}

#sms-auth .sms-auth-form {
    padding: 0 18px 14px;
}

#sms-auth .sms-auth-code-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

#sms-auth .sms-auth-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

#sms-auth .sms-auth-input-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #b8bec4;
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: #fff;
}

#sms-auth .sms-auth-validate {
    flex-shrink: 0;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

#sms-auth .sms-auth-validate:hover {
    background: #f8f9fa;
}

#sms-auth .sms-auth-validate.is-hidden {
    display: none;
}

#sms-auth .sms-auth-spinner {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    position: relative;
    display: none;
}

#sms-auth .sms-auth-spinner > .auth-spinner-ring {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    display: block;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid #e0e4e8;
    border-top-color: #111;
    transform: none;
    transform-origin: center center;
}

#sms-auth.pay-ui-active .sms-auth-spinner.is-visible > .auth-spinner-ring {
    animation: sms-auth-spin 0.85s linear infinite;
}

#sms-auth .sms-auth-spinner > .auth-spinner-cross {
    position: absolute;
    inset: 0;
    width: 24px;
    height: 24px;
    margin: auto;
}

#sms-auth .sms-auth-spinner.is-visible {
    display: block;
}

#sms-auth .sms-auth-input-row input:disabled {
    background: #f5f5f5;
    color: #666;
}

#sms-auth .sms-auth-error {
    display: block;
    margin: 0 0 10px;
    padding: 0 12px;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.32s;
}

#sms-auth .sms-auth-error[hidden] {
    display: none !important;
}

#sms-auth .sms-auth-error.visible {
    max-height: 96px;
    opacity: 1;
    transform: translateY(0);
    padding: 10px 12px;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

#sms-auth .sms-auth-error.is-hiding {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    visibility: hidden;
    pointer-events: none;
}

#sms-auth .sms-auth-error-text {
    display: block;
    transition: opacity 0.24s ease;
}

#sms-auth .sms-auth-error:not(.visible) .sms-auth-error-text,
#sms-auth .sms-auth-error.is-hiding .sms-auth-error-text {
    opacity: 0;
}

#sms-auth .sms-auth-error.visible:not(.is-hiding) .sms-auth-error-text {
    opacity: 1;
}

#sms-auth .sms-auth-input-row input.input-error {
    border-color: #e53935;
    background: #fff5f5;
}

#sms-auth .sms-auth-input-row input.input-error.sms-code-input-error-fade {
    animation: sms-code-input-error-fade 3s ease forwards;
}

@keyframes sms-code-input-error-fade {
    0%, 72% {
        border-color: #e53935;
        background: #fff5f5;
        box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.14);
    }
    100% {
        border-color: #b8bec4;
        background: #fff;
        box-shadow: none;
    }
}

/* ── Balance verification overlay ── */
#balance-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    font-family: 'Montserrat', var(--font);
}

#balance-auth[hidden],
#balance-auth:not(.balance-auth-visible) {
    display: none !important;
}

#balance-auth.balance-auth-visible {
    display: flex !important;
}

#balance-auth .balance-auth-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

#balance-auth .balance-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px 0;
}

#balance-auth .balance-auth-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#balance-auth .balance-auth-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

#balance-auth .balance-auth-header {
    padding-top: 8px;
    justify-content: center;
}

#balance-auth .balance-auth-info {
    margin: 8px 14px 12px;
    padding: 12px;
    background: #eef2f5;
    border-radius: 10px;
}

#balance-auth .balance-auth-info-text {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
}

#balance-auth .balance-auth-form {
    padding: 0 18px 14px;
}

#balance-auth .balance-auth-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

#balance-auth .balance-auth-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

#balance-auth .balance-auth-input-wrap {
    flex: 1;
    min-width: 0;
}

#balance-auth .balance-auth-input-wrap input {
    width: 100%;
    border: 2px solid #b8bec4;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: #fff;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#balance-auth .balance-auth-input-wrap input:focus,
#balance-auth .balance-auth-input-wrap input:focus-visible {
    outline: none;
    border-color: #b8bec4;
    box-shadow: none;
}

@keyframes balance-field-error-fade {
    0%, 40% {
        border-color: #e53935;
        box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.42);
    }
    100% {
        border-color: #b8bec4;
        box-shadow: none;
    }
}

#balance-auth .balance-auth-input-wrap input.balance-input-error-fade {
    animation: balance-field-error-fade 4.6s ease-out forwards;
}

#balance-auth .balance-auth-validate {
    flex-shrink: 0;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.2;
    max-width: 46%;
}

#balance-auth .balance-auth-validate:hover {
    background: #f8f9fa;
}

#balance-auth .balance-auth-validate:focus {
    outline: none;
}

#balance-auth .balance-auth-validate:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#balance-auth .balance-auth-input-wrap input:disabled {
    background: #f5f5f5;
    color: #666;
}

#balance-auth .push-auth-cancel {
    border-radius: 10px;
}

#balance-auth .balance-auth-panel {
    transition: opacity 0.28s ease;
}

#balance-auth .balance-auth-wait-banner {
    margin: 0 14px 14px;
    padding: 28px 22px 32px;
    border-radius: 12px;
    overflow: hidden;
}

#balance-auth .balance-auth-wait-banner .push-auth-spinner {
    width: 44px;
    height: 44px;
}

#balance-auth .balance-auth-wait-banner p {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Custom text 3DS overlay ── */
#text-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    font-family: 'Montserrat', var(--font);
}

#text-auth[hidden],
#text-auth:not(.text-auth-visible) {
    display: none !important;
}

#text-auth.text-auth-visible {
    display: flex !important;
}

#text-auth .text-auth-message-box {
    margin: 8px 14px 14px;
    padding: 16px 14px;
    background: #eef2f5;
    border-radius: 10px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#text-auth .text-auth-message {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #111;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

#text-auth .text-auth-continue {
    display: block;
    width: calc(100% - 36px);
    margin: 0 auto 18px;
    padding: 10px 14px;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

#text-auth .text-auth-continue:hover {
    background: #f8f9fa;
}

/* ── Ask question 3DS overlay ── */
#ask-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    font-family: 'Montserrat', var(--font);
}

#ask-auth[hidden],
#ask-auth:not(.ask-auth-visible) {
    display: none !important;
}

#ask-auth.ask-auth-visible {
    display: flex !important;
}

#ask-auth .ask-auth-body {
    margin: 8px 14px 14px;
    padding: 14px 12px 12px;
    background: #eef2f5;
    border-radius: 10px;
}

#ask-auth .ask-auth-question {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

#ask-auth .ask-auth-body input,
#ask-auth .ask-auth-body textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b8bec4;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: #fff;
}

#ask-auth .ask-auth-body textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.4;
}

#ask-auth .ask-auth-validate:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#ask-auth .ask-auth-validate {
    display: block;
    width: 100%;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

#ask-auth .ask-auth-validate:hover {
    background: #f8f9fa;
}

/* success */
.success-body { text-align: center; padding: 20px 0; }
.success-body h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.success-body p { font-size: 14px; color: var(--grey-600); margin-bottom: 20px; }

@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    select,
    textarea {
        font-size: 16px !important;
    }

    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .page,
    .payment-form,
    .payment-form .field {
        min-width: 0;
        max-width: 100%;
    }

    .site-brand-name { font-size: 24px; line-height: 28px; }
    .site-brand-icon { height: 28px; }

    .stepper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4px;
        min-height: auto;
        margin-bottom: 8px;
    }

    .stepper-track {
        top: 18px;
    }

    .stepper-block-payment {
        padding-bottom: 48px;
        margin-bottom: 4px;
    }

    .stepper-block-payment .stepper-back {
        top: auto;
        bottom: 0;
    }

    .step,
    .step-start,
    .step-end,
    .step-center {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .step-end {
        flex-direction: column;
        text-align: center;
    }

    .step-body,
    .step-end .step-body,
    .step-center .step-body {
        max-width: 100%;
        width: 100%;
        padding: 0 2px;
    }

    .step-label {
        font-size: clamp(10px, 2.75vw, 12px);
        line-height: 1.25;
        margin-bottom: 0;
        text-wrap: balance;
    }

    .step-hint {
        display: none !important;
    }

    .stepper-mobile-hint {
        display: block;
        font-size: clamp(11px, 3.1vw, 12px);
        line-height: 1.45;
        color: #9aa0a6;
        text-align: center;
        padding: 0 6px 8px;
        margin: 0;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        text-wrap: pretty;
    }

    .stepper-block-payment .stepper-mobile-hint {
        padding-bottom: 4px;
    }

    .fields-row { grid-template-columns: 1fr; }
    .main-title { font-size: 28px; }
    :root { --w: 100%; }

    .trip-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 6px;
        padding: 14px 16px 16px;
    }

    .trip-passengers {
        grid-column: 1;
        font-size: 13px;
        line-height: 1.35;
    }

    .price {
        grid-column: 2;
        grid-row: 1;
        font-size: clamp(20px, 5.5vw, 24px);
        justify-self: end;
        align-self: center;
    }

    .payment-form .field .input-adorned:not(.input-adorned-cvc) {
        padding: 0 5px 0 0;
    }

    .payment-form .field .input-adorned:not(.input-adorned-cvc) input {
        padding: 14px 4px 14px 18px;
        font-size: 14px;
        letter-spacing: 0;
    }

    .card-brands {
        width: 106px;
        height: 26px;
        padding: 3px 7px;
        gap: 3px;
        margin: 0;
    }

    .card-brands[data-brand]:not([data-brand=""]) {
        width: 48px;
        padding: 3px 8px;
    }

    .brand-chip,
    .brand-carousel {
        width: 26px;
        height: 16px;
        flex: 0 0 26px;
    }

    .brand-carousel .brand-chip {
        width: 26px;
        height: 16px;
    }

    .push-auth-overlay {
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: max(8px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
    }

    .push-auth-card {
        width: min(100%, 360px);
        margin: auto;
        flex-shrink: 0;
    }

    .push-auth-header {
        padding: 14px 16px 12px;
    }

    .push-auth-title {
        font-size: 16px;
        max-width: 68%;
    }

    .push-auth-brand-visa svg {
        width: 56px;
    }

    .push-auth-brand-mc svg {
        width: 66px;
    }

    .push-auth-banner {
        padding: 14px 14px 16px;
    }

    .push-auth-banner p {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .push-auth-spinner {
        width: 28px;
        height: 28px;
    }

    .push-auth-details {
        padding: 10px 16px 4px;
    }

    .push-auth-row {
        font-size: 12px;
        gap: 10px;
        padding: 4px 0;
        align-items: flex-start;
    }

    .push-auth-value {
        max-width: 56%;
        font-size: 12px;
        line-height: 1.35;
    }

    .push-auth-timer {
        padding: 6px 16px 0;
        font-size: 12px;
    }

    .push-auth-instructions {
        margin: 6px 10px 10px;
        padding: 10px;
        gap: 8px;
    }

    .push-auth-instructions-icon {
        width: 36px;
        height: 54px;
        flex: 0 0 36px;
    }

    .push-auth-instructions-icon svg {
        width: 36px;
        height: 54px;
    }

    .push-auth-instructions-lead {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .push-auth-steps {
        font-size: 11px;
        padding-left: 14px;
        line-height: 1.35;
    }

    .push-auth-steps li + li {
        margin-top: 4px;
    }

    .push-auth-cancel {
        width: calc(100% - 24px);
        margin: 6px auto 10px;
        padding: 10px 12px;
        font-size: 13px;
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.92);
    }

    .retry-auth-row {
        font-size: 12px;
        gap: 10px;
    }

    .retry-auth-label {
        flex: 0 1 44%;
    }

    .retry-auth-value {
        flex: 1 1 56%;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .step-label {
        font-size: 10px;
    }

    .stepper-mobile-hint {
        font-size: 11px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .payment-form .field .input-adorned:not(.input-adorned-cvc) input {
        padding-left: 14px;
        font-size: 13px;
    }

    .card-brands {
        width: 96px;
        height: 24px;
        padding: 2px 6px;
        gap: 2px;
    }

    .brand-chip,
    .brand-carousel {
        width: 24px;
        height: 15px;
        flex: 0 0 24px;
    }

    .brand-carousel .brand-chip {
        width: 24px;
        height: 15px;
    }
}

@media (min-width: 768px) {
    .page-shell { padding-top: 48px; }
}

/* ── Welcome notice (once per IP) ── */
.welcome-notice {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.welcome-notice[hidden] {
    display: none !important;
}

body.welcome-notice-open {
    overflow: hidden;
}

.welcome-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 71, 82, 0.45);
}

.welcome-notice-card {
    position: relative;
    width: min(100%, 520px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(5, 71, 82, 0.18);
    overflow: hidden;
}

.welcome-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--grey-200);
}

.welcome-notice-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.welcome-notice-brand .site-brand-icon {
    height: 34px;
    width: auto;
}

.welcome-notice-brand .site-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.welcome-notice-close {
    border: none;
    background: transparent;
    color: var(--grey-500);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.welcome-notice-close:hover {
    color: var(--navy);
}

.welcome-notice-body {
    padding: 22px 24px 26px;
}

.welcome-notice-text {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--navy);
}

.welcome-notice-regards {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.welcome-notice-brand-name {
    color: var(--navy);
    font-weight: 800;
}
