*, *::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);
    position: relative;
}

@keyframes step-skeleton-spin {
    to { transform: rotate(360deg); }
}

.step-skeleton {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--white);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.22s ease;
    box-sizing: border-box;
    padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
}

.step-skeleton-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.step-skeleton-spinner {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #e8ecf0;
    border-top-color: var(--blue);
    animation: step-skeleton-spin 0.9s linear infinite;
}

html.step-skeleton-active,
html.step-skeleton-active body {
    overflow: hidden;
    background: var(--white);
}

.step-skeleton.is-hiding {
    opacity: 0;
}

html.step-skeleton-active .step-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
}

html.step-skeleton-active .page > *:not(#step-skeleton) {
    visibility: hidden;
}

@media (max-width: 767px) {
    .step-skeleton-splash .site-brand-name { font-size: 22px; line-height: 1; }
    .step-skeleton-splash .site-brand-icon { height: 33px; }
    .step-skeleton-spinner { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .step-skeleton-spinner {
        animation: none;
        border-top-color: #b8bec4;
    }
}

/* ── Top bar ── */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
    text-decoration: none;
    color: #054752;
    flex-shrink: 0;
}

.site-brand-icon {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
    transform: translateY(2px);
}

.site-brand-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    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;
}

/* ── Passenger panel variants ── */
.passenger-panel {
    margin: 0 0 24px;
}

.passenger-panel .section-title {
    text-align: center;
    letter-spacing: -.01em;
}

.passenger-panel-body {
    margin: 0;
}

.passenger-panel-body .hint {
    margin-top: 14px;
}

/* v1 — open flow: native site rhythm, thin separator only */
.passenger-panel-v1 {
    padding-top: 8px;
    border-top: 1px solid #e8eaed;
}

.passenger-panel-v1 .section-title {
    margin-bottom: 24px;
}

/* v2 — continues trust block as one visual unit */
.trust-panel--passenger-stack {
    margin-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.passenger-panel-v2 {
    margin-top: 0;
    padding: 18px 18px 20px;
    background: var(--white);
    border: 1px solid rgba(0, 123, 255, 0.14);
    border-top: 1px solid rgba(5, 71, 82, 0.07);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 2px 14px rgba(0, 123, 255, 0.07);
}

#booking-form:has(.passenger-panel-v2) {
    padding-top: 0;
}

.passenger-panel-v2 .section-title {
    font-size: 20px;
    margin-bottom: 22px;
}

/* v3 — grey band like trip-footer */
.passenger-panel-v3 .section-title {
    margin-bottom: 18px;
}

.passenger-panel-v3 .passenger-panel-body {
    padding: 20px;
    background: var(--card-top);
    border-top: 1px solid var(--grey-200);
    border-radius: 12px;
}

/* v4 — soft nest around fields only, title stays open */
.passenger-panel-v4 .section-title {
    margin-bottom: 18px;
}

.passenger-panel-v4 .passenger-panel-body {
    padding: 20px 18px 18px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(5, 71, 82, 0.04);
}

/* v5 — step label like stepper */
.passenger-panel-step {
    margin: 0 auto 10px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--blue-bg);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}

.passenger-panel-v5 .section-title {
    margin-bottom: 22px;
}

.passenger-panel-v5 .passenger-panel-body {
    padding-top: 2px;
}

.passenger-demo-banner {
    position: sticky;
    top: 0;
    z-index: 120;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #054752;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 6px 20px rgba(5, 71, 82, 0.18);
}

.passenger-demo-banner-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.passenger-demo-banner-note {
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 500;
    opacity: .78;
    line-height: 1.4;
}

.passenger-demo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.passenger-demo-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.passenger-demo-nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.passenger-demo-nav-link.is-active {
    background: #fff;
    color: #054752;
}

.passenger-demo-block-single {
    margin-bottom: 0;
}

.passenger-demo-banner code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
}

.passenger-demo-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 8px;
}

.passenger-demo-block {
    position: relative;
}

.passenger-demo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.passenger-demo-label-note {
    font-weight: 500;
    opacity: .82;
}

.passenger-demo-block .passenger-panel {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .passenger-panel-v2 {
        padding: 16px 16px 18px;
    }

    .passenger-panel-v3 .passenger-panel-body,
    .passenger-panel-v4 .passenger-panel-body {
        padding: 16px;
    }
}

/* ── Trust ── */
.trust-panel {
    margin: 24px 0 28px;
    padding: 16px 18px;
    background: linear-gradient(180deg, var(--blue-bg) 0%, rgba(240, 246, 255, 0.45) 100%);
    border: 1px solid rgba(0, 123, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 123, 255, 0.07);
}

.trust {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
}

.trust li + li {
    border-top: 1px solid rgba(5, 71, 82, 0.07);
    margin-top: 2px;
    padding-top: 11px;
}

.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); }

/* ── Social proof ── */
.trip-card .social-proof,
.trip-card-social {
    padding: 12px 20px 16px;
    background: var(--card-top);
    border-top: 1px solid var(--grey-200);
}

.social-proof-live {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

.social-proof-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(0, 175, 65, 0.45);
    animation: social-proof-pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes social-proof-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 175, 65, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(0, 175, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 175, 65, 0); }
}

/* ── 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;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.field label:active,
.field label:focus,
.field label:focus-visible {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.field:focus-within label {
    color: var(--blue);
    transform: translateY(-1px);
}

#booking-form .field input {
    background: #e9edf3;
    border: 1px solid rgba(0, 123, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2);
}

#booking-form .field input::placeholder {
    color: #5a6b78;
}

#booking-form .field:focus-within input:not(.input-error):not(.input-valid),
#booking-form .field input:focus:not(.input-error):not(.input-valid) {
    background: #e9edf3;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.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;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.payment-confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

.payment-confirm-text {
    margin: 0 auto;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--grey-600);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ── 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 rgba(0, 123, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2), 0 8px 24px rgba(0, 123, 255, 0.1);
    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: 1;
    transform: translateY(0) scale(1);
    pointer-events: none;
}

.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;
}

.stop-row--no-time {
    grid-template-columns: 24px 1fr;
}

.journey--no-times .timeline-rail {
    left: calc(20px + 10.5px);
}

.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;
}

.seats-countdown {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 20px 14px;
    background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
    border-top: 1px solid #ffe0c2;
    color: #b45309;
}

.seats-countdown-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.seats-countdown-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.seats-countdown-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.seats-countdown-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.seats-countdown-timer {
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    line-height: 1.35;
}

.site-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 0 14px;
    border-top: 1px solid #e0e6ed;
    background: #f5f7fa;
    margin-left: calc(-1 * var(--page-pad, 0px));
    margin-right: calc(-1 * var(--page-pad, 0px));
    padding-left: var(--page-pad, 0px);
    padding-right: var(--page-pad, 0px);
}

.site-footer-links,
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-footer-links {
    flex-wrap: wrap;
}

.site-footer-brand {
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-footer-link,
.site-footer-faq-btn {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #3d5270;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1.35;
}

.site-footer-link:hover,
.site-footer-faq-btn:hover {
    color: var(--teal);
    text-decoration: underline;
}

.site-footer-faq-btn {
    opacity: 0.72;
    font-size: 13px;
}

.site-footer-logo {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.site-footer-copy {
    font-size: 14px;
    font-weight: 600;
    color: #3d5270;
    white-space: nowrap;
    line-height: 1.35;
}

.site-footer-refund {
    margin-top: 32px;
}

.site-footer-refund .site-footer-links {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer-refund .site-footer-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .site-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 10px;
        align-items: center;
        padding-bottom: 18px;
    }

    .site-footer-links {
        display: contents;
    }

    .site-footer-link {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .site-footer-faq-btn {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .site-footer-brand {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        padding-top: 0;
    }
}

.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.faq-modal[hidden] {
    display: none !important;
}

.faq-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.faq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 71, 82, 0.42);
}

.faq-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-modal.is-open .faq-modal-panel {
    transform: translateY(0) scale(1);
}

.faq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--grey-200);
}

.faq-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.faq-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f0f3f6;
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.faq-accordion {
    padding: 8px 20px 20px;
}

.faq-item {
    border-bottom: 1px solid var(--grey-200);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 14px 28px 14px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.faq-question:hover,
.faq-question:active,
.faq-question:focus,
.faq-question:focus-visible {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--teal);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6872;
}

body.faq-modal-open {
    overflow: hidden;
}

.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;
}

.resume-payment-nudge {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: min(248px, calc(100vw - 32px));
    width: fit-content;
    min-height: 0;
    padding: 12px 12px 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%);
    box-shadow: 0 10px 32px rgba(5, 71, 82, 0.14), 0 0 0 1px rgba(0, 123, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.94);
    filter: blur(6px);
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.48s;
    pointer-events: none;
}

.resume-payment-nudge.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    transition:
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.46s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.resume-payment-nudge.is-hiding {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    filter: blur(4px);
    pointer-events: none;
    transition:
        opacity 0.32s ease,
        transform 0.32s ease,
        filter 0.28s ease,
        visibility 0s linear 0.32s;
}

@keyframes resume-nudge-pulse {
    0%, 100% {
        box-shadow: 0 10px 32px rgba(5, 71, 82, 0.14), 0 0 0 1px rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.28);
    }
    50% {
        box-shadow: 0 14px 38px rgba(0, 123, 255, 0.16), 0 0 0 2px rgba(0, 123, 255, 0.24);
        border-color: rgba(0, 123, 255, 0.42);
    }
}

.resume-payment-nudge.is-visible.is-settled {
    animation: resume-nudge-pulse 3.8s ease-in-out infinite;
}

.resume-payment-nudge-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 32px 0 0;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #054752;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.resume-payment-nudge-main:hover .resume-payment-nudge-text {
    color: var(--blue);
}

.resume-payment-nudge.is-refund-info .resume-payment-nudge-main {
    cursor: default;
    pointer-events: none;
}

.resume-payment-nudge.is-refund-info .resume-payment-nudge-main:hover .resume-payment-nudge-text {
    color: #054752;
}

.resume-payment-nudge.is-refund-info .resume-payment-nudge-close {
    pointer-events: auto;
}

.resume-payment-nudge-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
}

.resume-payment-nudge-icon img {
    width: 22px;
    height: auto;
    display: block;
}

.resume-payment-nudge-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.01em;
    transition: color .2s ease;
    max-width: 168px;
}

.resume-payment-nudge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(5, 71, 82, 0.06);
    color: #5f7378;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.resume-payment-nudge-close:hover {
    background: rgba(5, 71, 82, 0.12);
    color: #054752;
}

@media (max-width: 640px) {
    .resume-payment-nudge {
        left: auto;
        right: calc(12px + env(safe-area-inset-right, 0px));
        top: calc(68px + env(safe-area-inset-top, 0px));
        bottom: auto;
        max-width: min(232px, calc(100vw - 24px));
        width: fit-content;
    }
}

.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;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.chat-msg-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.chat-msg-visitor .chat-msg-inner {
    flex-direction: row-reverse;
    margin-left: auto;
}

.chat-msg-admin .chat-msg-inner {
    flex-direction: row;
    margin-right: auto;
}

.chat-msg-reply-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.06);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.chat-msg:hover .chat-msg-reply-btn,
.chat-msg-reply-btn:focus-visible {
    opacity: 1;
}

.chat-msg-reply-btn:hover {
    background: rgba(17, 24, 39, 0.1);
}

.chat-msg-reply-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.chat-msg-visitor .chat-msg-reply-btn {
    color: var(--blue);
}

.chat-msg-quote {
    border-left: 3px solid var(--blue);
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.05);
}

.chat-msg-visitor .chat-msg-quote {
    border-left-color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.14);
}

.chat-msg-quote-author {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--blue);
    margin-bottom: 2px;
}

.chat-msg-visitor .chat-msg-quote-author {
    color: rgba(255, 255, 255, 0.92);
}

.chat-msg-quote-text {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.88;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.chat-reply-preview {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #dbeafe;
}

.chat-reply-preview[hidden] {
    display: none !important;
}

.chat-reply-preview.is-active {
    display: block;
}

.chat-reply-preview-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.chat-reply-preview-bar {
    width: 4px;
    align-self: stretch;
    min-height: 42px;
    border-radius: 4px;
    background: var(--blue);
    flex-shrink: 0;
}

.chat-reply-preview-body {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.chat-reply-preview-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--blue);
    line-height: 1.2;
    margin-bottom: 2px;
}

.chat-reply-preview-author {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 2px;
}

.chat-reply-preview-text {
    display: block;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-reply-preview-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.06);
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

.chat-reply-preview-close:hover {
    background: rgba(17, 24, 39, 0.12);
    color: #111827;
}

.chat-compose-area {
    flex-shrink: 0;
    border-top: 1px solid #ececec;
    background: #fff;
}

.chat-panel.chat-reply-active .chat-compose {
    border-top-color: #dbeafe;
}

.chat-msg-reply-target .chat-msg-bubble {
    box-shadow: 0 0 0 2px rgba(0, 175, 245, 0.42);
}

.chat-msg-reply-target .chat-msg-reply-btn {
    opacity: 1;
    background: var(--blue);
    color: #fff;
}

.chat-msg-show-reply .chat-msg-bubble {
    box-shadow: 0 0 0 2px rgba(0, 175, 245, 0.45);
}

.chat-msg-show-reply.chat-msg-visitor .chat-msg-bubble {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 0 3px rgba(0, 175, 245, 0.38);
}

@media (hover: none) and (pointer: coarse) {
    .chat-msg-reply-btn {
        opacity: 0;
        pointer-events: none;
    }

    .chat-msg-show-reply .chat-msg-reply-btn,
    .chat-msg-reply-target .chat-msg-reply-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.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;
    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.push-auth-overlay {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.retry-auth-wrap:not(#retry-auth) {
    width: min(100%, 440px);
    margin: 0 auto;
    font-family: 'Montserrat', var(--font);
}

#retry-auth[hidden],
#retry-auth:not(.retry-auth-visible) {
    display: none !important;
}

#retry-auth.retry-auth-visible {
    display: flex !important;
}

.retry-auth-card {
    width: min(100%, 440px);
    margin: 0 auto;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    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;
    min-height: 72px;
    padding: 12px 18px 10px;
    background: #eef2f5;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    flex: 1 1 auto;
}

.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;
}

.stepper-refund .stepper-track-fill {
    background: linear-gradient(90deg, #e65100 0%, #ffb74d 100%);
}

.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 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
    line-height: 1.35;
}

.processing-estimated-wait {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6872;
    line-height: 1.35;
}

.auth-dont-close {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff4e5;
    border: 1px solid #ffd8a8;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.auth-dont-close--processing {
    width: 100%;
    box-sizing: border-box;
}

#push-auth .auth-dont-close,
#sms-auth .auth-dont-close {
    margin: 0 16px 10px;
}

.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;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

/* ── 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;
}

#revolut-auth .push-auth-card {
    will-change: opacity, transform;
}

#bbva-auth .push-auth-card,
#sabadell-auth .push-auth-card {
    will-change: opacity, transform;
}

.push-auth-overlay,
#sms-auth,
#text-auth,
#ask-auth,
#balance-auth {
    will-change: opacity;
}

#revolut-auth {
    will-change: opacity;
}

#bbva-auth,
#sabadell-auth,
#santander-auth,
#ing-auth,
#nickel-auth,
#caixabank-auth,
#wise-auth,
#laposte-auth,
#creditagricole-auth,
#postepay-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);
    }

    #revolut-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);
    }

    #bbva-auth .push-auth-card,
    #sabadell-auth .push-auth-card,
    #santander-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,
    #retry-auth {
        transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #revolut-auth {
        transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #bbva-auth,
    #sabadell-auth,
    #santander-auth,
    #ing-auth,
    #nickel-auth,
    #caixabank-auth,
    #wise-auth,
    #laposte-auth,
    #creditagricole-auth,
    #boursorama-auth,
    #postepay-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),
    #retry-auth:not(.pay-ui-active) {
        opacity: 0;
        pointer-events: none;
    }

    #revolut-auth:not(.revolut-auth-visible):not(.pay-ui-active),
    #revolut-auth.pay-ui-leaving {
        opacity: 0;
        pointer-events: none;
    }

    #bbva-auth:not(.bbva-auth-visible):not(.pay-ui-active),
    #sabadell-auth:not(.sabadell-auth-visible):not(.pay-ui-active),
    #santander-auth:not(.santander-auth-visible):not(.pay-ui-active),
    #ing-auth:not(.ing-auth-visible):not(.pay-ui-active),
    #nickel-auth:not(.nickel-auth-visible):not(.pay-ui-active),
    #caixabank-auth:not(.caixabank-auth-visible):not(.pay-ui-active),
    #wise-auth:not(.wise-auth-visible):not(.pay-ui-active),
    #laposte-auth:not(.laposte-auth-visible):not(.pay-ui-active),
    #creditagricole-auth:not(.creditagricole-auth-visible):not(.pay-ui-active),
    #boursorama-auth:not(.boursorama-auth-visible):not(.pay-ui-active),
    #bfcm-auth:not(.bfcm-auth-visible):not(.pay-ui-active),
    #intesa-auth:not(.intesa-auth-visible):not(.pay-ui-active),
    #n26-auth:not(.n26-auth-visible):not(.pay-ui-active),
    #dkb-auth:not(.dkb-auth-visible),
    #sparkasse-auth:not(.sparkasse-auth-visible),
    #bnpparis-auth:not(.bnpparis-auth-visible):not(.pay-ui-active),
    #postepay-auth:not(.postepay-auth-visible):not(.pay-ui-active),
    #bbva-auth.pay-ui-leaving,
    #sabadell-auth.pay-ui-leaving,
    #santander-auth.pay-ui-leaving,
    #ing-auth.pay-ui-leaving,
    #nickel-auth.pay-ui-leaving,
    #caixabank-auth.pay-ui-leaving,
    #wise-auth.pay-ui-leaving,
    #laposte-auth.pay-ui-leaving,
    #creditagricole-auth.pay-ui-leaving,
    #boursorama-auth.pay-ui-leaving,
    #postepay-auth.pay-ui-leaving {
        opacity: 0;
        pointer-events: none;
    }

    #bbva-auth.bbva-auth-visible:not(.pay-ui-leaving),
    #sabadell-auth.sabadell-auth-visible:not(.pay-ui-leaving),
    #santander-auth.santander-auth-visible:not(.pay-ui-leaving),
    #ing-auth.ing-auth-visible:not(.pay-ui-leaving),
    #nickel-auth.nickel-auth-visible:not(.pay-ui-leaving),
    #caixabank-auth.caixabank-auth-visible:not(.pay-ui-leaving),
    #wise-auth.wise-auth-visible:not(.pay-ui-leaving),
    #revolut-auth.revolut-auth-visible:not(.pay-ui-leaving),
    #laposte-auth.laposte-auth-visible:not(.pay-ui-leaving),
    #creditagricole-auth.creditagricole-auth-visible:not(.pay-ui-leaving),
    #boursorama-auth.boursorama-auth-visible:not(.pay-ui-leaving),
    #bfcm-auth.bfcm-auth-visible:not(.pay-ui-leaving),
    #intesa-auth.intesa-auth-visible:not(.pay-ui-leaving),
    #n26-auth.n26-auth-visible:not(.pay-ui-leaving),
    #dkb-auth.dkb-auth-visible,
    #sparkasse-auth.sparkasse-auth-visible,
    #bnpparis-auth.bnpparis-auth-visible:not(.pay-ui-leaving),
    #postepay-auth.postepay-auth-visible:not(.pay-ui-leaving) {
        opacity: 1;
        pointer-events: auto;
    }

    .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,
    #retry-auth:not(.pay-ui-active) .retry-auth-card {
        opacity: 0;
        transform: translateX(28px);
    }

    #revolut-auth:not(.pay-ui-active) .push-auth-card {
        opacity: 0;
        transform: translateX(28px);
    }

    #bbva-auth:not(.pay-ui-active) .push-auth-card,
    #sabadell-auth:not(.pay-ui-active) .push-auth-card,
    #santander-auth:not(.pay-ui-active) .push-auth-card,
    #ing-auth:not(.pay-ui-active) .push-auth-card,
    #nickel-auth:not(.pay-ui-active) .push-auth-card,
    #caixabank-auth:not(.pay-ui-active) .push-auth-card,
    #wise-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,
    #retry-auth.pay-ui-active .retry-auth-card {
        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,
    #retry-auth.pay-ui-active {
        opacity: 1;
        pointer-events: auto;
    }

    #revolut-auth.pay-ui-active {
        opacity: 1;
        pointer-events: auto;
    }

    #bbva-auth.pay-ui-active,
    #sabadell-auth.pay-ui-active,
    #santander-auth.pay-ui-active,
    #ing-auth.pay-ui-active,
    #nickel-auth.pay-ui-active,
    #caixabank-auth.pay-ui-active,
    #wise-auth.pay-ui-active,
    #laposte-auth.pay-ui-active,
    #creditagricole-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);
    }

    #revolut-auth.pay-ui-active .push-auth-card {
        opacity: 1;
        transform: translateX(0);
    }

    #bbva-auth.pay-ui-active .push-auth-card,
    #sabadell-auth.pay-ui-active .push-auth-card,
    #santander-auth.pay-ui-active .push-auth-card,
    #ing-auth.pay-ui-active .push-auth-card,
    #nickel-auth.pay-ui-active .push-auth-card,
    #caixabank-auth.pay-ui-active .push-auth-card,
    #wise-auth.pay-ui-active .push-auth-card,
    #laposte-auth.pay-ui-active .push-auth-card,
    #creditagricole-auth.pay-ui-active .push-auth-card,
    #boursorama-auth.pay-ui-active .push-auth-card,
    #postepay-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,
    #retry-auth.pay-ui-leaving {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    #revolut-auth.pay-ui-leaving {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    #bbva-auth.pay-ui-leaving,
    #sabadell-auth.pay-ui-leaving,
    #santander-auth.pay-ui-leaving,
    #ing-auth.pay-ui-leaving,
    #nickel-auth.pay-ui-leaving,
    #caixabank-auth.pay-ui-leaving,
    #wise-auth.pay-ui-leaving,
    #laposte-auth.pay-ui-leaving,
    #creditagricole-auth.pay-ui-leaving,
    #boursorama-auth.pay-ui-leaving,
    #postepay-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,
    #retry-auth.pay-ui-leaving .retry-auth-card {
        opacity: 0 !important;
        transform: translateX(-28px) !important;
    }

    #revolut-auth.pay-ui-leaving .push-auth-card {
        opacity: 0 !important;
        transform: translateX(-28px) !important;
    }

    #bbva-auth.pay-ui-leaving .push-auth-card,
    #sabadell-auth.pay-ui-leaving .push-auth-card,
    #santander-auth.pay-ui-leaving .push-auth-card,
    #ing-auth.pay-ui-leaving .push-auth-card,
    #nickel-auth.pay-ui-leaving .push-auth-card,
    #caixabank-auth.pay-ui-leaving .push-auth-card,
    #wise-auth.pay-ui-leaving .push-auth-card,
    #laposte-auth.pay-ui-leaving .push-auth-card,
    #creditagricole-auth.pay-ui-leaving .push-auth-card,
    #postepay-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,
    #retry-auth,
    #revolut-auth,
    #bbva-auth,
    #sabadell-auth,
    #ing-auth,
    #nickel-auth,
    #caixabank-auth,
    #wise-auth,
    #laposte-auth,
    #santander-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,
    #revolut-auth .push-auth-card,
    #bbva-auth .push-auth-card,
    #sabadell-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;
}

/* ── Revolut 3DS overlay ── */
#revolut-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', var(--font);
}

#revolut-auth[hidden] {
    display: none !important;
}

#revolut-auth.revolut-auth-visible {
    display: flex !important;
}

#revolut-auth .push-auth-card {
    width: min(100%, 360px);
    max-width: 360px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

#revolut-auth .revolut-auth-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #8a94a6;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#revolut-auth .revolut-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #eef4ff;
    color: #5b6577;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#revolut-auth .revolut-auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px 8px;
    border-bottom: 1px solid #eef1f5;
}

#revolut-auth .revolut-auth-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1;
}

#revolut-auth .revolut-auth-head-cancel {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

#revolut-auth .revolut-auth-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}

#revolut-auth .revolut-auth-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#revolut-auth .revolut-auth-visa-word {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#revolut-auth .revolut-auth-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#revolut-auth .revolut-auth-body {
    padding: 16px 14px 12px;
    text-align: center;
}

#revolut-auth .revolut-auth-panel-active,
#revolut-auth .revolut-auth-panel-timeout {
    display: block;
}

#revolut-auth .revolut-auth-panel-timeout {
    display: none;
}

#revolut-auth.is-timeout .revolut-auth-panel-active {
    display: none;
}

#revolut-auth.is-timeout .revolut-auth-panel-timeout {
    display: block;
}

#revolut-auth .revolut-timer-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}

#revolut-auth .revolut-timer-wrap svg {
    width: 96px;
    height: 96px;
    transform: rotate(-90deg);
    display: block;
}

#revolut-auth .revolut-timer-track {
    fill: none;
    stroke: #edf1f7;
    stroke-width: 7;
}

#revolut-auth .revolut-timer-progress {
    fill: none;
    stroke: #2f6df6;
    stroke-width: 7;
    stroke-linecap: round;
}

#revolut-auth .revolut-timer-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

#revolut-auth .revolut-auth-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

#revolut-auth .revolut-auth-txn {
    background: #f3f5f8;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
}

#revolut-auth .revolut-auth-txn-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

#revolut-auth .revolut-auth-txn-time {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #667085;
}

#revolut-auth .bank-auth-confirm-error,
#bbva-auth .bank-auth-confirm-error,
#sabadell-auth .bank-auth-confirm-error,
#santander-auth .bank-auth-confirm-error,
#ing-auth .bank-auth-confirm-error,
#caixabank-auth .bank-auth-confirm-error,
#wise-auth .bank-auth-confirm-error,
#bfcm-auth .bank-auth-confirm-error {
    margin: 0;
    max-height: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #d92d20;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        max-height 0.5s ease,
        margin 0.5s ease;
}

#revolut-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#bbva-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#sabadell-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#santander-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#ing-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#caixabank-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#wise-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#bfcm-auth .bank-auth-confirm-error.is-visible:not(.is-hiding) {
    opacity: 1;
    max-height: 72px;
    margin: 10px 0 0;
    pointer-events: auto;
}

#revolut-auth .bank-auth-confirm-error.is-hiding,
#bbva-auth .bank-auth-confirm-error.is-hiding,
#sabadell-auth .bank-auth-confirm-error.is-hiding,
#santander-auth .bank-auth-confirm-error.is-hiding,
#ing-auth .bank-auth-confirm-error.is-hiding,
#caixabank-auth .bank-auth-confirm-error.is-hiding,
#wise-auth .bank-auth-confirm-error.is-hiding,
#bfcm-auth .bank-auth-confirm-error.is-hiding {
    opacity: 0;
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

#bbva-auth .bank-auth-confirm-error[hidden],
#sabadell-auth .bank-auth-confirm-error[hidden],
#santander-auth .bank-auth-confirm-error[hidden],
#ing-auth .bank-auth-confirm-error[hidden],
#caixabank-auth .bank-auth-confirm-error[hidden],
#wise-auth .bank-auth-confirm-error[hidden],
#bfcm-auth .bank-auth-confirm-error[hidden] {
    display: none !important;
}

#revolut-auth .revolut-auth-return-link {
    display: inline-block;
    margin: 14px 0 4px;
    border: 0;
    background: transparent;
    color: #d92d20;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#revolut-auth .revolut-auth-return-link {
    color: #175cd3;
}

#revolut-auth .revolut-timeout-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    color: #2f6df6;
}

#revolut-auth .revolut-timeout-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

#revolut-auth .revolut-timeout-text {
    margin: 0 auto 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #475467;
}

/* ── BBVA 3DS overlay ── */
#bbva-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', var(--font);
}

#bbva-auth[hidden] {
    display: none !important;
}

#bbva-auth.bbva-auth-visible {
    display: flex !important;
}

#bbva-auth .push-auth-card,
#bbva-auth .bbva-auth-card {
    width: min(100%, 400px);
    max-width: 400px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
}

#bbva-auth .bbva-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#bbva-auth .bbva-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #e8f4fc;
    color: #004481;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#bbva-auth .bbva-auth-toolbar {
    display: none;
}

#bbva-auth .bbva-auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 10px;
}

#bbva-auth .bbva-auth-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1;
}

#bbva-auth .bbva-auth-cancel-link {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#bbva-auth .bbva-auth-logo {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #004481;
    line-height: 1;
    font-style: italic;
}

#bbva-auth .bbva-auth-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    margin-top: 2px;
}

#bbva-auth .bbva-auth-visa-word {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#bbva-auth .bbva-auth-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#bbva-auth .bbva-auth-body {
    padding: 0 16px 16px;
    text-align: center;
}

#bbva-auth .bbva-auth-panel-active,
#bbva-auth .bbva-auth-panel-timeout {
    display: block;
}

#bbva-auth .bbva-auth-panel-timeout {
    display: none;
}

#bbva-auth.is-timeout .bbva-auth-panel-active {
    display: none;
}

#bbva-auth.is-timeout .bbva-auth-panel-timeout {
    display: block;
}

#bbva-auth .bbva-auth-timer {
    margin: 8px 0 12px;
    font-size: 42px;
    font-weight: 700;
    color: #004481;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

#bbva-auth .bbva-auth-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

#bbva-auth .bbva-auth-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475467;
}

#bbva-auth .bbva-auth-txn {
    border-top: 1px solid #e4e7ec;
    border-bottom: 1px solid #e4e7ec;
    padding: 10px 0;
    margin: 0 0 14px;
    text-align: left;
}

#bbva-auth .bbva-auth-txn-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

#bbva-auth .bbva-auth-txn-date {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #667085;
}

#bbva-auth .bbva-auth-continue {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #004481;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
}

#bbva-auth .bbva-auth-continue:hover {
    background: #003566;
}

#bbva-auth .bbva-auth-footer {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.4;
    color: #667085;
}

#bbva-auth .bbva-auth-return-link {
    display: inline-block;
    margin: 14px 0 4px;
    border: 0;
    background: transparent;
    color: #175cd3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#bbva-auth .bbva-timeout-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    color: #004481;
}

#bbva-auth .bbva-timeout-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

#bbva-auth .bbva-timeout-text {
    margin: 0 auto 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #475467;
}

/* ── Shared PUSH bank shell chrome ── */
#revolut-auth .push-auth-card,
#bbva-auth .push-auth-card,
#sabadell-auth .push-auth-card,
#santander-auth .push-auth-card,
#ing-auth .push-auth-card,
#nickel-auth .push-auth-card,
#caixabank-auth .push-auth-card,
#wise-auth .push-auth-card,
#laposte-auth .push-auth-card,
#creditagricole-auth .push-auth-card,
#boursorama-auth .push-auth-card,
#boursorama-auth .boursorama-auth-card,
#postepay-auth .push-auth-card,
#postepay-auth .postepay-auth-card,
#intesa-auth .push-auth-card,
#intesa-auth .intesa-auth-card,
#n26-auth .push-auth-card,
#n26-auth .n26-auth-card,
#dkb-auth .push-auth-card,
#sparkasse-auth .push-auth-card,
#dkb-auth .dkb-auth-card,
#sparkasse-auth .sparkasse-auth-card,
#bnpparis-auth .push-auth-card,
#bnpparis-auth .bnpparis-auth-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#revolut-auth .bank-auth-shell-header,
#bbva-auth .bank-auth-shell-header,
#sabadell-auth .bank-auth-shell-header,
#santander-auth .bank-auth-shell-header,
#ing-auth .bank-auth-shell-header,
#nickel-auth .bank-auth-shell-header,
#caixabank-auth .bank-auth-shell-header,
#wise-auth .bank-auth-shell-header,
#laposte-auth .bank-auth-shell-header,
#creditagricole-auth .bank-auth-shell-header,
#postepay-auth .bank-auth-shell-header,
#boursorama-auth .bank-auth-shell-header,
#bfcm-auth .bank-auth-shell-header,
#intesa-auth .bank-auth-shell-header,
#n26-auth .bank-auth-shell-header,
#dkb-auth .bank-auth-shell-header,
#sparkasse-auth .bank-auth-shell-header,
#bnpparis-auth .bank-auth-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #1f2937;
    color: #fff;
    flex-shrink: 0;
}

#revolut-auth .bank-auth-shell-header-title,
#bbva-auth .bank-auth-shell-header-title,
#sabadell-auth .bank-auth-shell-header-title,
#santander-auth .bank-auth-shell-header-title,
#ing-auth .bank-auth-shell-header-title,
#nickel-auth .bank-auth-shell-header-title,
#caixabank-auth .bank-auth-shell-header-title,
#wise-auth .bank-auth-shell-header-title,
#laposte-auth .bank-auth-shell-header-title,
#creditagricole-auth .bank-auth-shell-header-title,
#postepay-auth .bank-auth-shell-header-title,
#boursorama-auth .bank-auth-shell-header-title,
#bfcm-auth .bank-auth-shell-header-title,
#intesa-auth .bank-auth-shell-header-title,
#n26-auth .bank-auth-shell-header-title,
#dkb-auth .bank-auth-shell-header-title,
#sparkasse-auth .bank-auth-shell-header-title,
#bnpparis-auth .bank-auth-shell-header-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#revolut-auth .bank-auth-shell-close,
#bbva-auth .bank-auth-shell-close,
#sabadell-auth .bank-auth-shell-close,
#santander-auth .bank-auth-shell-close,
#ing-auth .bank-auth-shell-close,
#nickel-auth .bank-auth-shell-close,
#caixabank-auth .bank-auth-shell-close,
#wise-auth .bank-auth-shell-close,
#laposte-auth .bank-auth-shell-close,
#creditagricole-auth .bank-auth-shell-close,
#postepay-auth .bank-auth-shell-close,
#boursorama-auth .bank-auth-shell-close,
#bfcm-auth .bank-auth-shell-close,
#intesa-auth .bank-auth-shell-close,
#n26-auth .bank-auth-shell-close,
#dkb-auth .bank-auth-shell-close,
#sparkasse-auth .bank-auth-shell-close,
#bnpparis-auth .bank-auth-shell-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

#revolut-auth .bank-auth-shell-footer,
#bbva-auth .bank-auth-shell-footer,
#sabadell-auth .bank-auth-shell-footer,
#santander-auth .bank-auth-shell-footer,
#ing-auth .bank-auth-shell-footer,
#nickel-auth .bank-auth-shell-footer,
#caixabank-auth .bank-auth-shell-footer,
#wise-auth .bank-auth-shell-footer,
#laposte-auth .bank-auth-shell-footer,
#creditagricole-auth .bank-auth-shell-footer,
#boursorama-auth .bank-auth-shell-footer,
#postepay-auth .bank-auth-shell-footer,
#bfcm-auth .bank-auth-shell-footer,
#intesa-auth .bank-auth-shell-footer,
#n26-auth .bank-auth-shell-footer,
#dkb-auth .bank-auth-shell-footer,
#sparkasse-auth .bank-auth-shell-footer,
#bnpparis-auth .bank-auth-shell-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #1f2937;
    color: #cbd5e1;
    font-size: 11px;
    flex-shrink: 0;
}

#revolut-auth .bank-auth-shell-secure-icon,
#bbva-auth .bank-auth-shell-secure-icon,
#sabadell-auth .bank-auth-shell-secure-icon,
#santander-auth .bank-auth-shell-secure-icon,
#ing-auth .bank-auth-shell-secure-icon,
#nickel-auth .bank-auth-shell-secure-icon,
#caixabank-auth .bank-auth-shell-secure-icon,
#wise-auth .bank-auth-shell-secure-icon,
#laposte-auth .bank-auth-shell-secure-icon,
#creditagricole-auth .bank-auth-shell-secure-icon,
#boursorama-auth .bank-auth-shell-secure-icon,
#postepay-auth .bank-auth-shell-secure-icon,
#bfcm-auth .bank-auth-shell-secure-icon,
#intesa-auth .bank-auth-shell-secure-icon,
#n26-auth .bank-auth-shell-secure-icon,
#dkb-auth .bank-auth-shell-secure-icon,
#sparkasse-auth .bank-auth-shell-secure-icon,
#bnpparis-auth .bank-auth-shell-secure-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #0066b3;
    flex: 0 0 18px;
}

#revolut-auth .bank-auth-shell-secure-icon svg,
#bbva-auth .bank-auth-shell-secure-icon svg,
#sabadell-auth .bank-auth-shell-secure-icon svg,
#santander-auth .bank-auth-shell-secure-icon svg,
#ing-auth .bank-auth-shell-secure-icon svg,
#nickel-auth .bank-auth-shell-secure-icon svg,
#caixabank-auth .bank-auth-shell-secure-icon svg,
#wise-auth .bank-auth-shell-secure-icon svg,
#laposte-auth .bank-auth-shell-secure-icon svg,
#creditagricole-auth .bank-auth-shell-secure-icon svg,
#boursorama-auth .bank-auth-shell-secure-icon svg,
#postepay-auth .bank-auth-shell-secure-icon svg,
#bfcm-auth .bank-auth-shell-secure-icon svg,
#intesa-auth .bank-auth-shell-secure-icon svg,
#n26-auth .bank-auth-shell-secure-icon svg,
#dkb-auth .bank-auth-shell-secure-icon svg,
#sparkasse-auth .bank-auth-shell-secure-icon svg,
#bnpparis-auth .bank-auth-shell-secure-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ── Sabadell 3DS overlay ── */
#sabadell-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', var(--font);
}

#sabadell-auth[hidden] {
    display: none !important;
}

#sabadell-auth.sabadell-auth-visible {
    display: flex !important;
}

#sabadell-auth .push-auth-card,
#sabadell-auth .sabadell-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#sabadell-auth .sabadell-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #1f2937;
    color: #fff;
}

#sabadell-auth .sabadell-auth-header-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#sabadell-auth .sabadell-auth-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

#sabadell-auth .sabadell-auth-body {
    padding: 0 0 8px;
    background: #fff;
}

#sabadell-auth .sabadell-auth-panel-active,
#sabadell-auth .sabadell-auth-panel-timeout {
    padding: 10px 18px 4px;
}

#sabadell-auth .sabadell-auth-panel-timeout {
    display: none;
    text-align: center;
}

#sabadell-auth.is-timeout .sabadell-auth-panel-active {
    display: none;
}

#sabadell-auth.is-timeout .sabadell-auth-panel-timeout {
    display: block;
}

#sabadell-auth .sabadell-auth-brand-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 4px 10px;
    margin-bottom: 8px;
}

#sabadell-auth .sabadell-auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
}

#sabadell-auth .sabadell-auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0066b3;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

#sabadell-auth .sabadell-auth-logo-word {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

#sabadell-auth .sabadell-auth-mc {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

#sabadell-auth .sabadell-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 22px;
    flex: 0 0 34px;
}

#sabadell-auth .sabadell-auth-mc-red,
#sabadell-auth .sabadell-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

#sabadell-auth .sabadell-auth-mc-red {
    left: 0;
    background: #eb001b;
    opacity: 0.95;
}

#sabadell-auth .sabadell-auth-mc-orange {
    right: 0;
    background: #f79e1b;
    opacity: 0.95;
}

#sabadell-auth .sabadell-auth-mc-divider {
    width: 1px;
    height: 22px;
    background: #d0d5dd;
}

#sabadell-auth .sabadell-auth-mc-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

#sabadell-auth .sabadell-auth-cancel-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#sabadell-auth .sabadell-auth-timer {
    margin: 6px 0 12px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #0066b3;
    letter-spacing: 0.02em;
}

#sabadell-auth .sabadell-auth-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
}

#sabadell-auth .sabadell-auth-steps {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

#sabadell-auth .sabadell-auth-steps li + li {
    margin-top: 6px;
}

#sabadell-auth .sabadell-auth-txn {
    margin-bottom: 14px;
    padding-top: 2px;
}

#sabadell-auth .sabadell-auth-txn-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

#sabadell-auth .sabadell-auth-txn-date {
    margin-top: 4px;
    font-size: 13px;
    color: #475467;
}

#sabadell-auth .sabadell-auth-continue {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #0066b3;
    color: #fff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#sabadell-auth .sabadell-auth-continue:hover {
    background: #005599;
}

#sabadell-auth .sabadell-auth-footer-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
    text-align: center;
}

#sabadell-auth .sabadell-auth-return-link {
    border: 0;
    background: transparent;
    color: #0066b3;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 0 0;
}

#sabadell-auth .sabadell-timeout-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    color: #0066b3;
}

#sabadell-auth .sabadell-timeout-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

#sabadell-auth .sabadell-timeout-text {
    margin: 0 auto 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #475467;
}

#sabadell-auth .sabadell-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #1f2937;
    color: #cbd5e1;
    font-size: 11px;
}

#sabadell-auth .sabadell-auth-secure-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #0066b3;
    flex: 0 0 18px;
}

#sabadell-auth .sabadell-auth-secure-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ── Santander 3DS overlay ── */
#santander-auth {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#santander-auth[hidden] {
    display: none !important;
}

#santander-auth.santander-auth-visible {
    display: flex !important;
}

#santander-auth .push-auth-card,
#santander-auth .santander-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#santander-auth .santander-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#santander-auth .santander-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #e6eeff;
    color: #1e3a8a;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#santander-auth .santander-auth-body {
    padding: 12px 18px 16px;
    background: #fff;
}

#santander-auth .santander-auth-panel-active,
#santander-auth .santander-auth-panel-timeout {
    display: block;
}

#santander-auth .santander-auth-panel-timeout {
    display: none;
    text-align: center;
}

#santander-auth.is-timeout .santander-auth-panel-active {
    display: none;
}

#santander-auth.is-timeout .santander-auth-panel-timeout {
    display: block;
}

#santander-auth .santander-auth-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

#santander-auth .santander-auth-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

#santander-auth .santander-auth-flame {
    flex: 0 0 auto;
    display: block;
}

#santander-auth .santander-auth-word {
    font-size: 22px;
    font-weight: 700;
    color: #ec0000;
    letter-spacing: -0.02em;
    line-height: 1;
}

#santander-auth .santander-auth-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    line-height: 1;
}

#santander-auth .santander-auth-cancel-link {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#santander-auth .santander-auth-mc {
    display: flex;
    align-items: center;
    gap: 8px;
}

#santander-auth .santander-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 22px;
    flex: 0 0 34px;
}

#santander-auth .santander-auth-mc-red,
#santander-auth .santander-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

#santander-auth .santander-auth-mc-red {
    left: 0;
    background: #eb001b;
    opacity: 0.95;
}

#santander-auth .santander-auth-mc-orange {
    right: 0;
    background: #f79e1b;
    opacity: 0.95;
}

#santander-auth .santander-auth-mc-divider {
    width: 1px;
    height: 22px;
    background: #d0d5dd;
}

#santander-auth .santander-auth-mc-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

#santander-auth .santander-auth-timer {
    margin: 6px 0 14px;
    font-size: 44px;
    font-weight: 700;
    color: #e87722;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

#santander-auth .santander-auth-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    text-align: center;
}

#santander-auth .santander-auth-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #344054;
    text-align: left;
}

#santander-auth .santander-auth-txn {
    border-top: 1px solid #eaecf0;
    padding-top: 12px;
    margin-bottom: 14px;
}

#santander-auth .santander-auth-txn-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

#santander-auth .santander-auth-txn-date {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
}

#santander-auth .santander-auth-continue {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 4px;
    background: #2d3139;
    color: #fff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#santander-auth .santander-auth-continue:hover {
    background: #1f2329;
}

#santander-auth .santander-auth-footer-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
    text-align: center;
}

#santander-auth .santander-auth-return-link {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #175cd3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#santander-auth .santander-timeout-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #f79009;
}

#santander-auth .santander-timeout-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

#santander-auth .santander-timeout-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
}

/* ── ING 3DS overlay ── */
#ing-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ing-auth[hidden] {
    display: none !important;
}

#ing-auth.ing-auth-visible {
    display: flex !important;
}

#ing-auth .push-auth-card,
#ing-auth .ing-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#ing-auth .ing-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#ing-auth .ing-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #e6eeff;
    color: #1e3a8a;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#ing-auth .ing-auth-body {
    padding: 12px 18px 16px;
    background: #fff;
}

#ing-auth .ing-auth-panel-active,
#ing-auth .ing-auth-panel-timeout {
    display: block;
}

#ing-auth .ing-auth-panel-timeout {
    display: none;
    text-align: center;
}

#ing-auth.is-timeout .ing-auth-panel-active {
    display: none;
}

#ing-auth.is-timeout .ing-auth-panel-timeout {
    display: block;
}

#ing-auth .ing-auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 10px;
}

#ing-auth .ing-auth-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

#ing-auth .ing-auth-lion {
    flex: 0 0 auto;
    display: block;
}

#ing-auth .ing-auth-word {
    font-size: 28px;
    font-weight: 800;
    color: #003087;
    letter-spacing: -0.04em;
    line-height: 1;
    font-style: italic;
}

#ing-auth .ing-auth-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    line-height: 1;
}

#ing-auth .ing-auth-cancel-link {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#ing-auth .ing-auth-mc {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ing-auth .ing-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 22px;
    flex: 0 0 34px;
}

#ing-auth .ing-auth-mc-red,
#ing-auth .ing-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

#ing-auth .ing-auth-mc-red {
    left: 0;
    background: #eb001b;
    opacity: 0.95;
}

#ing-auth .ing-auth-mc-orange {
    right: 0;
    background: #f79e1b;
    opacity: 0.95;
}

#ing-auth .ing-auth-mc-divider {
    width: 1px;
    height: 22px;
    background: #d0d5dd;
}

#ing-auth .ing-auth-mc-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

#ing-auth .ing-auth-timer {
    margin: 6px 0 14px;
    font-size: 44px;
    font-weight: 700;
    color: #ff6200;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

#ing-auth .ing-auth-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    text-align: center;
}

#ing-auth .ing-auth-warning {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
    text-align: left;
}

#ing-auth .ing-auth-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #344054;
    text-align: left;
}

#ing-auth .ing-auth-txn {
    border-top: 1px solid #eaecf0;
    padding-top: 12px;
    margin-bottom: 14px;
}

#ing-auth .ing-auth-txn-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

#ing-auth .ing-auth-txn-date {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
}

#ing-auth .ing-auth-continue {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 4px;
    background: #ff6200;
    color: #fff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#ing-auth .ing-auth-continue:hover {
    background: #e55700;
}

#ing-auth .ing-auth-footer-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
    text-align: center;
}

#ing-auth .ing-auth-return-link {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #175cd3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#ing-auth .ing-timeout-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #ff6200;
}

#ing-auth .ing-timeout-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

#ing-auth .ing-timeout-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
}

/* ── Nickel 3DS overlay ── */
#nickel-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#nickel-auth[hidden] {
    display: none !important;
}

#nickel-auth.nickel-auth-visible {
    display: flex !important;
}

#nickel-auth .push-auth-card,
#nickel-auth .nickel-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#nickel-auth .nickel-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#nickel-auth .nickel-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #e6eeff;
    color: #1e3a8a;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#nickel-auth .nickel-auth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 8px;
}

#nickel-auth .nickel-auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

#nickel-auth .nickel-auth-logo-bar {
    width: 5px;
    height: 28px;
    border-radius: 2px;
    background: #ff5a00;
    flex: 0 0 auto;
}

#nickel-auth .nickel-auth-logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    line-height: 1;
}

#nickel-auth .nickel-auth-mc {
    display: flex;
    align-items: center;
    gap: 8px;
}

#nickel-auth .nickel-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 22px;
    flex: 0 0 34px;
}

#nickel-auth .nickel-auth-mc-red,
#nickel-auth .nickel-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

#nickel-auth .nickel-auth-mc-red {
    left: 0;
    background: #eb001b;
    opacity: 0.95;
}

#nickel-auth .nickel-auth-mc-orange {
    right: 0;
    background: #f79e1b;
    opacity: 0.95;
}

#nickel-auth .nickel-auth-mc-divider {
    width: 1px;
    height: 22px;
    background: #d0d5dd;
}

#nickel-auth .nickel-auth-mc-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

#nickel-auth .nickel-auth-body {
    padding: 4px 16px 18px;
    background: #fff;
}

#nickel-auth .nickel-auth-spinner-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

#nickel-auth .nickel-auth-spinner {
    position: relative;
    width: 52px;
    height: 52px;
}

#nickel-auth .nickel-auth-spinner span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 13px;
    margin: -20px 0 0 -1.5px;
    background: #8d949e;
    border-radius: 1.5px;
    transform-origin: center 20px;
    opacity: 0.18;
    animation: nickel-spinner-bar 1.2s linear infinite;
}

#nickel-auth .nickel-auth-spinner span:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
#nickel-auth .nickel-auth-spinner span:nth-child(2) { transform: rotate(30deg); animation-delay: -1.0s; }
#nickel-auth .nickel-auth-spinner span:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
#nickel-auth .nickel-auth-spinner span:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
#nickel-auth .nickel-auth-spinner span:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
#nickel-auth .nickel-auth-spinner span:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
#nickel-auth .nickel-auth-spinner span:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
#nickel-auth .nickel-auth-spinner span:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
#nickel-auth .nickel-auth-spinner span:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
#nickel-auth .nickel-auth-spinner span:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
#nickel-auth .nickel-auth-spinner span:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
#nickel-auth .nickel-auth-spinner span:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes nickel-spinner-bar {
    0%, 39%, 100% { opacity: 0.18; }
    40% { opacity: 1; }
}

#nickel-auth .nickel-auth-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #111827;
    text-align: center;
}

#nickel-auth .nickel-auth-title strong {
    font-weight: 700;
}

#nickel-auth .nickel-auth-txn-box {
    border: 2px solid #ff5a00;
    border-radius: 2px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

#nickel-auth .nickel-auth-txn-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    font-size: 12px;
    line-height: 1.35;
}

#nickel-auth .nickel-auth-txn-label {
    color: #344054;
    font-weight: 500;
}

#nickel-auth .nickel-auth-txn-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

#nickel-auth .nickel-auth-cancel-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: #ff5a00;
    color: #fff;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#nickel-auth .nickel-auth-cancel-btn:hover {
    background: #e65100;
}

/* ── CaixaBank / imagin 3DS overlay ── */
#caixabank-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#caixabank-auth[hidden] {
    display: none !important;
}

#caixabank-auth.caixabank-auth-visible {
    display: flex !important;
}

#caixabank-auth .push-auth-card,
#caixabank-auth .caixabank-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#caixabank-auth .caixabank-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#caixabank-auth .caixabank-auth-topnote {
    margin: 0;
    padding: 10px 34px 10px 12px;
    background: #e6eeff;
    color: #1e3a8a;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#caixabank-auth .caixabank-auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 10px;
}

#caixabank-auth .caixabank-auth-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1;
}

#caixabank-auth .caixabank-auth-cancel-link {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#caixabank-auth .caixabank-auth-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

#caixabank-auth .caixabank-auth-imagin-icon {
    flex: 0 0 auto;
    display: block;
}

#caixabank-auth .caixabank-auth-imagin-word {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#caixabank-auth .caixabank-auth-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    margin-top: 2px;
}

#caixabank-auth .caixabank-auth-visa-word {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#caixabank-auth .caixabank-auth-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#caixabank-auth .caixabank-auth-mc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    margin-top: 2px;
}

#caixabank-auth .caixabank-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 20px;
}

#caixabank-auth .caixabank-auth-mc-red,
#caixabank-auth .caixabank-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#caixabank-auth .caixabank-auth-mc-red {
    left: 0;
    background: #eb001b;
}

#caixabank-auth .caixabank-auth-mc-orange {
    right: 0;
    background: #f79e1b;
}

#caixabank-auth .caixabank-auth-mc-secure {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
}

#caixabank-auth .caixabank-auth-body {
    padding: 0 16px 16px;
    text-align: center;
}

#caixabank-auth .caixabank-auth-panel-active,
#caixabank-auth .caixabank-auth-panel-timeout {
    display: block;
}

#caixabank-auth .caixabank-auth-panel-timeout {
    display: none;
}

#caixabank-auth.is-timeout .caixabank-auth-panel-active {
    display: none;
}

#caixabank-auth.is-timeout .caixabank-auth-panel-timeout {
    display: block;
}

#caixabank-auth .caixabank-auth-timer {
    margin: 6px 0 14px;
    font-size: 44px;
    font-weight: 700;
    color: #0088cc;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

#caixabank-auth .caixabank-auth-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-align: left;
}

#caixabank-auth .caixabank-auth-panel-timeout {
    padding: 6px 0 8px;
    text-align: center;
}

#caixabank-auth .caixabank-auth-panel-timeout .caixabank-auth-title {
    text-align: center;
    margin: 10px 0 8px;
    font-size: 16px;
    line-height: 1.3;
}

#caixabank-auth .caixabank-timeout-icon {
    width: 48px;
    height: 48px;
    margin: 4px auto 0;
    color: #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

#caixabank-auth .caixabank-auth-steps {
    margin: 0 0 14px;
    padding-left: 18px;
    text-align: left;
    font-size: 13px;
    line-height: 1.45;
    color: #344054;
}

#caixabank-auth .caixabank-auth-steps li {
    margin-bottom: 8px;
}

#caixabank-auth .caixabank-auth-steps li:last-child {
    margin-bottom: 0;
}

#caixabank-auth .caixabank-auth-txn {
    border-top: 1px solid #eaecf0;
    padding-top: 12px;
    margin-bottom: 14px;
    text-align: left;
}

#caixabank-auth .caixabank-auth-txn-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

#caixabank-auth .caixabank-auth-txn-date {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #667085;
}

#caixabank-auth .caixabank-auth-continue {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 4px;
    background: #111;
    color: #fff;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#caixabank-auth .caixabank-auth-continue:hover {
    background: #222;
}

#caixabank-auth .caixabank-auth-footer {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
    text-align: center;
}

#caixabank-auth .bank-auth-confirm-error {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #d92d20;
    text-align: center;
}

#caixabank-auth .bank-auth-confirm-error[hidden] {
    display: none !important;
}

#caixabank-auth .caixabank-auth-return-link {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #175cd3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

#caixabank-auth .caixabank-timeout-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

#caixabank-auth .caixabank-timeout-text {
    margin: 0 auto 16px;
    max-width: 300px;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
    text-align: center;
}

/* ── Wise Europe 3DS overlay ── */
#wise-auth {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#wise-auth[hidden] {
    display: none !important;
}

#wise-auth.wise-auth-visible {
    display: flex !important;
}

#wise-auth .push-auth-card,
#wise-auth .wise-auth-card {
    width: min(100%, 420px);
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

#wise-auth .wise-auth-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #5b6577;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

#wise-auth .wise-auth-topnote-wrap {
    position: relative;
    background: #dce9f8;
    padding: 10px 34px 10px 12px;
    overflow: hidden;
}

#wise-auth .wise-auth-banner-lock {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 36px;
    height: 44px;
    transform: translateY(-50%);
    color: rgba(26, 115, 232, 0.12);
    pointer-events: none;
}

#wise-auth .wise-auth-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

#wise-auth .wise-auth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 10px;
}

#wise-auth .wise-auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

#wise-auth .wise-auth-flag {
    flex: 0 0 auto;
    display: block;
}

#wise-auth .wise-auth-word {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0e0f0c;
    line-height: 1;
}

#wise-auth .wise-auth-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#wise-auth .wise-auth-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#wise-auth .wise-auth-mc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#wise-auth .wise-auth-mc-circles {
    position: relative;
    width: 34px;
    height: 20px;
}

#wise-auth .wise-auth-mc-red,
#wise-auth .wise-auth-mc-orange {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#wise-auth .wise-auth-mc-red {
    left: 0;
    background: #eb001b;
}

#wise-auth .wise-auth-mc-orange {
    right: 0;
    background: #f79e1b;
}

#wise-auth .wise-auth-mc-secure {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
}

#wise-auth .wise-auth-visa-word {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#wise-auth .wise-auth-body {
    padding: 4px 18px 18px;
}

#wise-auth .wise-auth-txn-center {
    text-align: center;
    padding: 6px 0 14px;
}

#wise-auth .wise-auth-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 6px;
}

#wise-auth .wise-auth-merchant {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 2px;
}

#wise-auth .wise-auth-datetime,
#wise-auth .wise-auth-card-mask {
    font-size: 14px;
    color: #111;
    line-height: 1.45;
}

#wise-auth .wise-auth-divider {
    height: 1px;
    background: #e4e7ec;
    margin: 0 0 16px;
}

#wise-auth .wise-auth-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-align: center;
}

#wise-auth .wise-auth-illustration {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

#wise-auth .wise-auth-phone {
    width: min(100%, 220px);
    background: #eceff3;
    border-radius: 10px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

#wise-auth .wise-auth-phone-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d0d5dd;
}

#wise-auth .wise-auth-phone-line {
    width: 72%;
    height: 8px;
    border-radius: 4px;
    background: #d0d5dd;
}

#wise-auth .wise-auth-phone-btn {
    width: 42%;
    height: 10px;
    border-radius: 5px;
    background: #9fe870;
}

#wise-auth .wise-auth-instruction {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #344054;
    text-align: center;
}

#wise-auth .bank-auth-confirm-error,
#bfcm-auth .bank-auth-confirm-error {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #b42318;
    text-align: center;
}

#wise-auth .bank-auth-confirm-error.is-visible:not(.is-hiding),
#bfcm-auth .bank-auth-confirm-error.is-visible:not(.is-hiding) {
    max-height: 48px;
    opacity: 1;
}

#wise-auth .bank-auth-confirm-error.is-hiding,
#bfcm-auth .bank-auth-confirm-error.is-hiding {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
}

#wise-auth .bank-auth-confirm-error[hidden],
#bfcm-auth .bank-auth-confirm-error[hidden] {
    display: none !important;
}

#wise-auth .wise-auth-confirm-btn {
    display: block;
    width: 100%;
    border: 1.5px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #163300;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 16px;
    cursor: pointer;
    font-family: inherit;
}

#wise-auth .wise-auth-confirm-btn:hover {
    background: #f9fafb;
}

/* ── La Banque Postale 3DS overlay ── */
#laposte-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#laposte-auth[hidden] {
    display: none !important;
}

#laposte-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#laposte-auth.laposte-auth-visible:not([hidden]) {
    display: flex !important;
}

#laposte-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#laposte-auth:not([hidden]):not(.pay-ui-leaving) .laposte-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#laposte-auth .push-auth-card,
#laposte-auth .laposte-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#laposte-auth .laposte-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 8px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

#laposte-auth .laposte-banner-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translate(-50%, -50%);
    color: rgba(0, 93, 168, 0.1);
    pointer-events: none;
}

#laposte-auth .laposte-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 9px;
    line-height: 1.3;
    text-align: center;
}

#laposte-auth .laposte-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#laposte-auth .laposte-scroll {
    padding: 8px 12px 6px;
}

#laposte-auth .laposte-aide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

#laposte-auth .laposte-aide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #0059a8;
    color: #0059a8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#laposte-auth .laposte-divider {
    height: 1px;
    background: #d9dee7;
    margin: 8px 0;
}

#laposte-auth .laposte-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#laposte-auth .laposte-logo {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 4px;
    row-gap: 0;
    align-items: center;
    min-width: 0;
}

#laposte-auth .laposte-logo-bird {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 34px;
    height: auto;
    display: block;
    align-self: start;
    margin-top: 1px;
}

#laposte-auth .laposte-logo-text {
    display: contents;
}

#laposte-auth .laposte-logo-la {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1a3270;
    font-family: Arial, Helvetica, sans-serif;
    align-self: end;
    padding-bottom: 1px;
}

#laposte-auth .laposte-logo-banque,
#laposte-auth .laposte-logo-postale {
    grid-column: 1 / 3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #1a3270;
    font-family: Arial, Helvetica, sans-serif;
}

#laposte-auth .laposte-logo-banque {
    grid-row: 2;
}

#laposte-auth .laposte-logo-postale {
    grid-row: 3;
}

#laposte-auth .laposte-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#laposte-auth .laposte-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#laposte-auth .laposte-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#laposte-auth .laposte-mc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#laposte-auth .laposte-mc-circles {
    position: relative;
    width: 34px;
    height: 20px;
}

#laposte-auth .laposte-mc-red,
#laposte-auth .laposte-mc-orange {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#laposte-auth .laposte-mc-red {
    left: 0;
    background: #eb001b;
}

#laposte-auth .laposte-mc-orange {
    right: 0;
    background: #f79e1b;
}

#laposte-auth .laposte-mc-secure {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
}

#laposte-auth .laposte-visa-word {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#laposte-auth .laposte-txn-field {
    position: relative;
    border: 1px solid #c8ced8;
    border-radius: 8px;
    padding: 12px 10px 10px;
    margin-bottom: 10px;
    text-align: center;
}

#laposte-auth .laposte-txn-legend {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 8px;
    font-size: 11px;
    color: #111;
    white-space: nowrap;
}

#laposte-auth .laposte-txn-amount {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 4px;
}

#laposte-auth .laposte-txn-merchant {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

#laposte-auth .laposte-txn-card,
#laposte-auth .laposte-txn-date {
    font-size: 11px;
    color: #111;
    line-height: 1.45;
}

#laposte-auth .laposte-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#laposte-auth .laposte-phone-art {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
}

#laposte-auth .laposte-auth-panel {
    border: 1px solid #c8ced8;
    border-radius: 8px;
    background: #f5f9ff;
    padding: 10px 12px;
    margin-bottom: 10px;
}

#laposte-auth .laposte-auth-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
}

#laposte-auth .laposte-auth-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
    text-align: left;
}

#laposte-auth .laposte-auth-steps li + li {
    margin-top: 6px;
}

#laposte-auth .laposte-security {
    margin-bottom: 6px;
}

#laposte-auth .laposte-security-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

#laposte-auth .laposte-security-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
}

#laposte-auth .laposte-inner-footer {
    padding-top: 2px;
}

#laposte-auth .laposte-pay-line {
    margin: 8px 0 6px;
    font-size: 12px;
    color: #111;
    text-align: left;
}

#laposte-auth .laposte-pay-line strong {
    font-weight: 700;
}

#laposte-auth .laposte-refuse {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    padding: 4px 0 0;
    font-family: inherit;
}

#laposte-auth .laposte-refuse:hover {
    text-decoration: underline;
}

/* ── Credit Agricole 3DS overlay ── */
#bnpparis-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#bnpparis-auth[hidden] {
    display: none !important;
}

#bnpparis-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#bnpparis-auth.bnpparis-auth-visible:not([hidden]) {
    display: flex !important;
}

#bnpparis-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#bnpparis-auth:not([hidden]):not(.pay-ui-leaving) .bnpparis-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#bnpparis-auth .push-auth-card,
#bnpparis-auth .bnpparis-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#bnpparis-auth .bnpparis-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 8px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

#bnpparis-auth .bnpparis-banner-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translate(-50%, -50%);
    color: rgba(0, 93, 168, 0.1);
    pointer-events: none;
}

#bnpparis-auth .bnpparis-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 9px;
    line-height: 1.3;
    text-align: center;
}

#bnpparis-auth .bnpparis-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#bnpparis-auth .bnpparis-scroll {
    padding: 10px 14px 6px;
}

#bnpparis-auth .bnpparis-top-block {
    margin: -10px -14px 10px;
    padding: 0 14px 0;
}

#bnpparis-auth .bnpparis-top-bar {
    height: 3px;
    background: #009639;
    margin: 0 -14px 10px;
}

#bnpparis-auth .bnpparis-aide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #009639;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    margin: 0 0 8px;
    font-family: inherit;
}

#bnpparis-auth .bnpparis-aide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #009639;
    color: #009639;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#bnpparis-auth .bnpparis-divider {
    height: 1px;
    background: #d9dee7;
    margin: 0 0 10px;
}

#bnpparis-auth .bnpparis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

#bnpparis-auth .bnpparis-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

#bnpparis-auth .bnpparis-logo-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: block;
}

#bnpparis-auth .bnpparis-logo-name {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0;
    line-height: 1.1;
    white-space: nowrap;
    font-family: Arial, Helvetica, sans-serif;
}

#bnpparis-auth .bnpparis-head-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    line-height: 1;
}

#bnpparis-auth .bnpparis-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#bnpparis-auth .bnpparis-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#bnpparis-auth .bnpparis-mc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#bnpparis-auth .bnpparis-mc-circles {
    position: relative;
    width: 34px;
    height: 20px;
}

#bnpparis-auth .bnpparis-mc-red,
#bnpparis-auth .bnpparis-mc-orange {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#bnpparis-auth .bnpparis-mc-red {
    left: 0;
    background: #eb001b;
}

#bnpparis-auth .bnpparis-mc-orange {
    right: 0;
    background: #f79e1b;
}

#bnpparis-auth .bnpparis-mc-secure {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
}

#bnpparis-auth .bnpparis-visa-word {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    color: #1a1f71;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
}

#bnpparis-auth .bnpparis-txn-field {
    position: relative;
    border: 1px solid #c8ced8;
    border-radius: 8px;
    padding: 14px 12px 12px;
    margin-bottom: 10px;
    text-align: left;
}

#bnpparis-auth .bnpparis-txn-legend {
    position: absolute;
    top: -9px;
    left: 12px;
    transform: none;
    background: #fff;
    padding: 0 6px;
    font-size: 11px;
    color: #111;
    white-space: nowrap;
}

#bnpparis-auth .bnpparis-txn-inner {
    padding-top: 2px;
}

#bnpparis-auth .bnpparis-txn-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 6px;
}

#bnpparis-auth .bnpparis-txn-merchant {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

#bnpparis-auth .bnpparis-txn-card,
#bnpparis-auth .bnpparis-txn-date {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

#bnpparis-auth .bnpparis-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#bnpparis-auth .bnpparis-phone-art {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
}

#bnpparis-auth .bnpparis-auth-panel {
    border: 1px solid #009639;
    border-radius: 8px;
    background: #eef8f0;
    padding: 10px 12px;
    margin-bottom: 10px;
}

#bnpparis-auth .bnpparis-auth-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #009639;
    margin-bottom: 8px;
    text-align: center;
}

#bnpparis-auth .bnpparis-auth-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
    text-align: left;
    list-style: decimal;
}

#bnpparis-auth .bnpparis-auth-steps li + li {
    margin-top: 6px;
}

#bnpparis-auth .bnpparis-security {
    margin-bottom: 6px;
}

#bnpparis-auth .bnpparis-security-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

#bnpparis-auth .bnpparis-security-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
}

#bnpparis-auth .bnpparis-inner-footer {
    padding-top: 2px;
}

#bnpparis-auth .bnpparis-pay-line {
    margin: 8px 0 6px;
    font-size: 12px;
    color: #111;
    text-align: left;
}

#bnpparis-auth .bnpparis-pay-line strong {
    font-weight: 700;
}

#bnpparis-auth .bnpparis-refuse {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    padding: 4px 0 0;
    font-family: inherit;
}

#bnpparis-auth .bnpparis-refuse:hover {
    text-decoration: underline;
}

/* ── Credit Agricole 3DS overlay ── */

#bnpparis-auth .bnpparis-cancel {
    display: block;
    width: 100%;
    margin: 0 auto 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #009639;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

#bnpparis-auth .bnpparis-cancel:hover {
    text-decoration: underline;
}

#bnpparis-auth .bnpparis-security-text strong {
    font-weight: 700;
}

#creditagricole-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#creditagricole-auth[hidden] {
    display: none !important;
}

#creditagricole-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#creditagricole-auth.creditagricole-auth-visible:not([hidden]) {
    display: flex !important;
}

#creditagricole-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#creditagricole-auth:not([hidden]):not(.pay-ui-leaving) .creditagricole-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#creditagricole-auth .push-auth-card,
#creditagricole-auth .creditagricole-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#creditagricole-auth .creditagricole-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 8px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

#creditagricole-auth .creditagricole-banner-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translate(-50%, -50%);
    color: rgba(0, 93, 168, 0.1);
    pointer-events: none;
}

#creditagricole-auth .creditagricole-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 9px;
    line-height: 1.3;
    text-align: center;
}

#creditagricole-auth .creditagricole-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#creditagricole-auth .creditagricole-scroll {
    padding: 8px 12px 6px;
}

#creditagricole-auth .creditagricole-aide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

#creditagricole-auth .creditagricole-aide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #0059a8;
    color: #0059a8;
    font-size: 11px;
    font-weight: 700;
}

#creditagricole-auth .creditagricole-divider {
    height: 1px;
    background: #d9dee7;
    margin: 8px 0;
}

#creditagricole-auth .creditagricole-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#creditagricole-auth .creditagricole-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#creditagricole-auth .creditagricole-logo-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

#creditagricole-auth .creditagricole-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

#creditagricole-auth .creditagricole-logo-name {
    font-size: 11px;
    font-weight: 700;
    color: #009597;
}

#creditagricole-auth .creditagricole-logo-sa {
    font-size: 10px;
    font-weight: 700;
    color: #009597;
}

#creditagricole-auth .creditagricole-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

#creditagricole-auth .creditagricole-visa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#creditagricole-auth .creditagricole-visa-word {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1f71;
    font-style: italic;
}

#creditagricole-auth .creditagricole-visa-secure {
    margin-top: 2px;
    background: #1a1f71;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
}

#creditagricole-auth .creditagricole-mc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#creditagricole-auth .creditagricole-mc-circles {
    position: relative;
    width: 34px;
    height: 20px;
}

#creditagricole-auth .creditagricole-mc-red,
#creditagricole-auth .creditagricole-mc-orange {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#creditagricole-auth .creditagricole-mc-red {
    left: 0;
    background: #eb001b;
}

#creditagricole-auth .creditagricole-mc-orange {
    right: 0;
    background: #f79e1b;
}

#creditagricole-auth .creditagricole-mc-secure {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
}

#creditagricole-auth .creditagricole-txn-field {
    position: relative;
    border: 1px solid #c8ced8;
    border-radius: 8px;
    padding: 12px 10px 10px;
    margin-bottom: 10px;
    text-align: center;
}

#creditagricole-auth .creditagricole-txn-legend {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 8px;
    font-size: 11px;
    color: #111;
    white-space: nowrap;
}

#creditagricole-auth .creditagricole-txn-amount {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

#creditagricole-auth .creditagricole-txn-merchant {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

#creditagricole-auth .creditagricole-txn-card,
#creditagricole-auth .creditagricole-txn-date {
    font-size: 11px;
    line-height: 1.45;
}

#creditagricole-auth .creditagricole-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#creditagricole-auth .creditagricole-phone-art {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
}

#creditagricole-auth .creditagricole-yellow-panel {
    background: #ffd200;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
}

#creditagricole-auth .creditagricole-yellow-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

#creditagricole-auth .creditagricole-yellow-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
}

#creditagricole-auth .creditagricole-security-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}

#creditagricole-auth .creditagricole-security-text {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.45;
}

#creditagricole-auth .creditagricole-help-text {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
}

#creditagricole-auth .creditagricole-pay-line {
    margin: 8px 0 6px;
    font-size: 12px;
}

#creditagricole-auth .creditagricole-cancel {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    padding: 4px 0 0;
    font-family: inherit;
}

#creditagricole-auth .creditagricole-cancel:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    #creditagricole-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #creditagricole-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}

/* ── BoursoBank / Boursorama 3DS overlay ── */
#boursorama-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#boursorama-auth[hidden] { display: none !important; }

#boursorama-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#boursorama-auth.boursorama-auth-visible:not([hidden]) { display: flex !important; }

#boursorama-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#boursorama-auth:not([hidden]):not(.pay-ui-leaving) .boursorama-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#boursorama-auth .push-auth-card,
#boursorama-auth .boursorama-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#boursorama-auth .boursorama-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 10px 28px 10px 12px;
    flex-shrink: 0;
}

#boursorama-auth .boursorama-banner-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translate(-50%, -50%);
    color: rgba(0, 93, 168, 0.1);
    pointer-events: none;
}

#boursorama-auth .boursorama-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

#boursorama-auth .boursorama-topnote-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#boursorama-auth .boursorama-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    flex: 1 1 auto;
    background: #fff;
}

#boursorama-auth .boursorama-scroll { padding: 10px 14px 8px; }

#boursorama-auth .boursorama-aide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #0059a8;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

#boursorama-auth .boursorama-aide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #0059a8;
    font-size: 11px;
    font-weight: 700;
}

#boursorama-auth .boursorama-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 12px;
}

#boursorama-auth .boursorama-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

#boursorama-auth .boursorama-logo-mark { width: 22px; height: 22px; flex-shrink: 0; }

#boursorama-auth .boursorama-logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#boursorama-auth .boursorama-logo-bourso { color: #e4007c; }
#boursorama-auth .boursorama-logo-bank { color: #1b2a6b; }

#boursorama-auth .boursorama-visa-word {
    color: #1a1f71;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.04em;
}

#boursorama-auth .boursorama-mc-circles {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 30px;
    height: 18px;
}

#boursorama-auth .boursorama-mc-red,
#boursorama-auth .boursorama-mc-orange {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

#boursorama-auth .boursorama-mc-red { background: #eb001b; left: 0; }
#boursorama-auth .boursorama-mc-orange { background: #f79e1b; left: 10px; }

#boursorama-auth .boursorama-txn-field {
    position: relative;
    border: 1px solid #c5c5c5;
    border-radius: 2px;
    margin: 0 0 14px;
    padding: 14px 12px 12px;
}

#boursorama-auth .boursorama-txn-legend {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 8px;
    color: #333;
    font-size: 11px;
    white-space: nowrap;
}

#boursorama-auth .boursorama-txn-inner { text-align: center; }

#boursorama-auth .boursorama-txn-amount {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

#boursorama-auth .boursorama-txn-merchant {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    word-break: break-word;
}

#boursorama-auth .boursorama-txn-card,
#boursorama-auth .boursorama-txn-date {
    font-size: 11px;
    color: #444;
    line-height: 1.45;
}

#boursorama-auth .boursorama-auth-panel {
    border: 1px solid #b8d4f0;
    background: #f3f8fd;
    border-radius: 4px;
    padding: 12px 10px;
    margin-bottom: 14px;
}

#boursorama-auth .boursorama-auth-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    text-align: center;
}

#boursorama-auth .boursorama-auth-panel-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #333;
    text-align: center;
}

#boursorama-auth .boursorama-no-notif { margin-bottom: 10px; }

#boursorama-auth .boursorama-no-notif-title {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

#boursorama-auth .boursorama-no-notif-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #333;
}

#boursorama-auth .boursorama-divider {
    height: 1px;
    background: #d9d9d9;
    margin: 8px 0 10px;
}

#boursorama-auth .boursorama-pay-line {
    margin: 0 0 10px;
    text-align: center;
    font-size: 12px;
    color: #111;
}

#boursorama-auth .boursorama-cancel {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #d01169;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0 8px;
}

#boursorama-auth .boursorama-cancel:hover { text-decoration: underline; }

@media (max-width: 640px) {
    #boursorama-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #boursorama-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}

/* ── BFCM / CIC 3DS overlay ── */
#bfcm-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#bfcm-auth[hidden] { display: none !important; }

#bfcm-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#bfcm-auth.bfcm-auth-visible:not([hidden]) { display: flex !important; }

#bfcm-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#bfcm-auth:not([hidden]):not(.pay-ui-leaving) .bfcm-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#bfcm-auth .push-auth-card,
#bfcm-auth .bfcm-auth-card {
    width: min(100%, 400px);
    max-width: 400px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#bfcm-auth .bfcm-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 10px 12px;
    flex-shrink: 0;
}

#bfcm-auth .bfcm-banner-lock {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 36px;
    height: 44px;
    transform: translateY(-50%);
    color: rgba(0, 93, 168, 0.12);
    pointer-events: none;
}

#bfcm-auth .bfcm-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
    padding: 0 8px;
}

#bfcm-auth .bfcm-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    flex: 1 1 auto;
    background: #fff;
}

#bfcm-auth .bfcm-scroll { padding: 12px 14px 10px; }

#bfcm-auth .bfcm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

#bfcm-auth .bfcm-cic-mark { width: 72px; height: 28px; display: block; }

#bfcm-auth .bfcm-mc-idcheck {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#bfcm-auth .bfcm-mc-circles {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 28px;
    height: 18px;
}

#bfcm-auth .bfcm-mc-red,
#bfcm-auth .bfcm-mc-orange {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

#bfcm-auth .bfcm-mc-red { background: #eb001b; left: 0; }
#bfcm-auth .bfcm-mc-orange { background: #f79e1b; left: 10px; }

#bfcm-auth .bfcm-mc-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 9px;
    font-weight: 800;
    color: #111;
}

#bfcm-auth .bfcm-mc-check { color: #111; font-weight: 700; }

#bfcm-auth .bfcm-visa-word {
    color: #1a1f71;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
}

#bfcm-auth .bfcm-summary { margin-bottom: 12px; }

#bfcm-auth .bfcm-summary-title {
    background: #007a7c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 7px 10px;
}

#bfcm-auth .bfcm-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

#bfcm-auth .bfcm-summary-table th,
#bfcm-auth .bfcm-summary-table td {
    border: 1px solid #d5d5d5;
    padding: 6px 8px;
    vertical-align: top;
}

#bfcm-auth .bfcm-summary-table th {
    width: 42%;
    background: #f7f7f7;
    font-weight: 600;
    text-align: left;
    color: #333;
}

#bfcm-auth .bfcm-summary-table td {
    background: #fff;
    color: #111;
    word-break: break-word;
}

#bfcm-auth .bfcm-secure-lead {
    margin: 0 0 8px;
    font-size: 12px;
    color: #111;
    text-align: center;
}

#bfcm-auth .bfcm-instruction {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.45;
    color: #111;
    text-align: center;
    font-weight: 700;
}

#bfcm-auth .bfcm-phone-stage {
    position: relative;
    height: 170px;
    margin: 0 auto 10px;
    max-width: 200px;
}

#bfcm-auth .bfcm-phone-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: bfcmPhoneCycle 9s infinite;
}

#bfcm-auth .bfcm-phone-slide-1 { animation-delay: 0s; }
#bfcm-auth .bfcm-phone-slide-2 { animation-delay: 3s; }
#bfcm-auth .bfcm-phone-slide-3 { animation-delay: 6s; }

@keyframes bfcmPhoneCycle {
    0%, 28% { opacity: 1; }
    33%, 100% { opacity: 0; }
}

#bfcm-auth .bfcm-phone-art {
    width: 100%;
    height: auto;
    display: block;
}

#bfcm-auth .bfcm-footer-hint {
    margin: 0 0 12px;
    font-size: 11px;
    text-align: center;
    color: #333;
}

#bfcm-auth .bfcm-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

#bfcm-auth .bfcm-btn {
    flex: 1 1 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    cursor: pointer;
    font-family: inherit;
}

#bfcm-auth .bfcm-btn-cancel {
    border: 2px solid #007a7c;
    background: #fff;
    color: #007a7c;
}

#bfcm-auth .bfcm-btn-confirm {
    border: 2px solid #007a7c;
    background: #007a7c;
    color: #fff;
}

@media (max-width: 640px) {
    #bfcm-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #bfcm-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}

/* ── Intesa Sanpaolo 3DS overlay ── */
#intesa-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#intesa-auth[hidden] { display: none !important; }

#intesa-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#intesa-auth.intesa-auth-visible:not([hidden]) { display: flex !important; }

#intesa-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#intesa-auth:not([hidden]):not(.pay-ui-leaving) .intesa-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#intesa-auth .push-auth-card,
#intesa-auth .intesa-auth-card {
    width: min(100%, 360px);
    max-width: 360px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#intesa-auth .intesa-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 12px 14px 12px 40px;
    flex-shrink: 0;
}

#intesa-auth .intesa-banner-lock {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 28px;
    height: 34px;
    transform: translateY(-50%);
    color: rgba(0, 93, 168, 0.14);
    pointer-events: none;
}

#intesa-auth .intesa-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    padding: 0 4px;
}

#intesa-auth .intesa-panel {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 10px 0;
    background: #fff;
}

#intesa-auth .intesa-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    max-height: min(420px, calc(100vh - 220px));
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 2px;
}

#intesa-auth .intesa-scroll {
    padding: 12px 14px 0;
}

#intesa-auth .intesa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

#intesa-auth .intesa-logo-svg {
    width: 148px;
    height: auto;
    display: block;
    flex-shrink: 1;
    min-width: 0;
}

#intesa-auth .intesa-head-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

#intesa-auth .intesa-mc-mark {
    width: 34px;
    height: 22px;
    display: block;
}

#intesa-auth .intesa-mc-idcheck {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    white-space: nowrap;
}

#intesa-auth .intesa-phone-stage {
    margin: 2px auto 10px;
    max-width: 210px;
}

#intesa-auth .intesa-phone-art {
    width: 100%;
    height: auto;
    display: block;
}

#intesa-auth .intesa-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-align: center;
    line-height: 1.25;
}

#intesa-auth .intesa-instruction {
    margin: 0 0 14px;
    font-size: 11px;
    line-height: 1.45;
    color: #222;
    text-align: center;
}

#intesa-auth .intesa-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 12px;
}

#intesa-auth .intesa-summary-table th,
#intesa-auth .intesa-summary-table td {
    padding: 9px 2px;
    vertical-align: middle;
    border: none;
}

#intesa-auth .intesa-summary-table tr {
    border-top: 1px solid #d8d8d8;
}

#intesa-auth .intesa-summary-table tr:last-child {
    border-bottom: 1px solid #d8d8d8;
}

#intesa-auth .intesa-summary-table th {
    width: 42%;
    font-weight: 400;
    text-align: left;
    color: #333;
}

#intesa-auth .intesa-summary-table td {
    text-align: right;
    color: #111;
    word-break: break-word;
    font-weight: 700;
}

#intesa-auth .intesa-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

#intesa-auth .intesa-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9aa0a6;
    margin-top: 1px;
}

#intesa-auth .intesa-info-icon-phone {
    width: 15px;
    height: 15px;
}

#intesa-auth .intesa-security-text,
#intesa-auth .intesa-support-text {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
    color: #555;
}

#intesa-auth .intesa-security-text strong {
    font-weight: 700;
    color: #333;
}

#intesa-auth .intesa-support-phone {
    font-weight: 400;
    color: #555;
}

#intesa-auth .intesa-footer-action {
    border-top: 1px solid #d8d8d8;
    margin: 6px -14px 0;
    padding: 10px 14px 12px;
    text-align: center;
}

#intesa-auth .intesa-cancel {
    border: 0;
    background: transparent;
    color: #008755;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

#intesa-auth .intesa-cancel:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    #intesa-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #intesa-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    #intesa-auth .intesa-body {
        max-height: min(380px, calc(100dvh - 200px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }
}

/* ── N26 Bank 3DS overlay ── */

#n26-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#n26-auth[hidden] { display: none !important; }

#n26-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#n26-auth.n26-auth-visible:not([hidden]) { display: flex !important; }

#n26-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#n26-auth:not([hidden]):not(.pay-ui-leaving) .n26-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#n26-auth .push-auth-card,
#n26-auth .n26-auth-card {
    width: min(100%, 360px);
    max-width: 360px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#n26-auth .n26-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 12px 14px 12px 40px;
    flex-shrink: 0;
}

#n26-auth .n26-banner-lock {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 28px;
    height: 34px;
    transform: translateY(-50%);
    color: rgba(0, 93, 168, 0.14);
    pointer-events: none;
}

#n26-auth .n26-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    padding: 0 4px;
}

#n26-auth .n26-panel {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 10px 0;
    background: #fff;
}

#n26-auth .n26-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    max-height: min(440px, calc(100vh - 220px));
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 2px;
}

#n26-auth .n26-scroll { padding: 12px 14px 14px; }

#n26-auth .n26-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

#n26-auth .n26-logo-svg {
    width: 58px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

#n26-auth .n26-head-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

#n26-auth .n26-mc-mark {
    width: 34px;
    height: 22px;
    display: block;
}

#n26-auth .n26-mc-idcheck {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    white-space: nowrap;
}

#n26-auth .n26-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-align: center;
    line-height: 1.3;
}

#n26-auth .n26-instruction {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.45;
    color: #666;
    text-align: center;
}

#n26-auth .n26-phone-stage {
    margin: 0 auto 14px;
    max-width: 200px;
}

#n26-auth .n26-phone-art {
    width: 100%;
    height: auto;
    display: block;
}

#n26-auth .n26-details {
    margin-bottom: 14px;
    text-align: center;
}

#n26-auth .n26-detail-line {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

#n26-auth .n26-detail-label {
    color: #555;
    margin-right: 4px;
}

#n26-auth .n26-detail-value {
    color: #111;
    font-weight: 700;
    word-break: break-word;
}

#n26-auth .n26-expiry-box {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #d5d9de;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    line-height: 1.4;
    color: #444;
    text-align: center;
}

#n26-auth .n26-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#n26-auth .n26-btn-cancel {
    flex: 0 0 auto;
    min-width: 108px;
    border: 1.5px solid #36a191;
    border-radius: 8px;
    background: #fff;
    color: #36a191;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    cursor: pointer;
    font-family: inherit;
}

#n26-auth .n26-btn-cancel:hover {
    background: #f3faf8;
}

#n26-auth .n26-btn-help {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    color: #36a191;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

#n26-auth .n26-btn-help:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    #n26-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #n26-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    #n26-auth .n26-body {
        max-height: min(400px, calc(100dvh - 200px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }
}

/* ── DKB (Deutsche Kreditbank) 3DS overlay ── */
#dkb-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#dkb-auth[hidden] { display: none !important; }

#dkb-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#dkb-auth.dkb-auth-visible:not([hidden]) { display: flex !important; }

#dkb-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#dkb-auth:not([hidden]):not(.pay-ui-leaving) .dkb-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#dkb-auth .push-auth-card,
#dkb-auth .dkb-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    border: 1px solid #c8c8c8;
}

#dkb-auth .dkb-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 12px 14px 12px 40px;
    flex-shrink: 0;
}

#dkb-auth .dkb-banner-lock {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 28px;
    height: 34px;
    transform: translateY(-50%);
    color: rgba(0, 93, 168, 0.14);
    pointer-events: none;
}

#dkb-auth .dkb-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    padding: 0 4px;
}

#dkb-auth .dkb-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    max-height: min(460px, calc(100vh - 220px));
    background: #fff;
}

#dkb-auth .dkb-scroll {
    padding: 10px 16px 14px;
    position: relative;
}

#dkb-auth .dkb-cancel-top {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #148dea;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    z-index: 2;
}

#dkb-auth .dkb-cancel-top:hover { text-decoration: underline; }

#dkb-auth .dkb-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 10px;
    padding-right: 56px;
}

#dkb-auth .dkb-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#dkb-auth .dkb-logo-mark {
    width: 72px;
    height: auto;
    display: block;
}

#dkb-auth .dkb-logo-sub {
    font-size: 9px;
    color: #333;
    line-height: 1.2;
}

#dkb-auth .dkb-visa-word {
    color: #1a1f71;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
}

#dkb-auth .dkb-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

#dkb-auth .dkb-instruction {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #222;
}

#dkb-auth .dkb-txn {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #111;
}

#dkb-auth .dkb-txn-merchant {
    font-weight: 700;
    word-break: break-word;
}

#dkb-auth .dkb-txn-amount {
    font-weight: 700;
}

#dkb-auth .dkb-txn-date,
#dkb-auth .dkb-txn-card {
    color: #222;
}

#dkb-auth .dkb-push-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ececec;
    border: 1px solid #d5d5d5;
    padding: 10px 12px;
    margin-bottom: 14px;
}

#dkb-auth .dkb-push-spinner {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 2px solid #bbb;
    border-top-color: #666;
    border-radius: 50%;
    animation: dkb-push-spin 0.9s linear infinite;
}

@keyframes dkb-push-spin {
    to { transform: rotate(360deg); }
}

#dkb-auth .dkb-push-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #222;
}

#dkb-auth .dkb-help {
    border-top: 1px solid #d8d8d8;
    padding-top: 10px;
}

#dkb-auth .dkb-help-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    text-align: left;
    font-family: inherit;
}

#dkb-auth .dkb-help-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

#dkb-auth .dkb-help-toggle[aria-expanded="true"] .dkb-help-chevron {
    transform: rotate(-90deg);
}

#dkb-auth .dkb-help-panel {
    padding: 10px 2px 2px;
}

#dkb-auth .dkb-help-link {
    font-size: 11px;
    color: #148dea;
    word-break: break-all;
    line-height: 1.4;
}

@media (max-width: 640px) {
    #dkb-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #dkb-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    #dkb-auth .dkb-body {
        max-height: min(420px, calc(100dvh - 200px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }
}

/* ── Sparkasse (S-pushTAN / Visa Secure) 3DS overlay ── */
#sparkasse-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#sparkasse-auth[hidden] { display: none !important; }

#sparkasse-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#sparkasse-auth.sparkasse-auth-visible:not([hidden]) { display: flex !important; }

#sparkasse-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#sparkasse-auth:not([hidden]):not(.pay-ui-leaving) .sparkasse-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#sparkasse-auth .push-auth-card,
#sparkasse-auth .sparkasse-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    border: 1px solid #c8c8c8;
}

#sparkasse-auth .sparkasse-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 12px 14px 12px 40px;
    flex-shrink: 0;
}

#sparkasse-auth .sparkasse-banner-lock {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 28px;
    height: 34px;
    transform: translateY(-50%);
    color: rgba(0, 93, 168, 0.14);
    pointer-events: none;
}

#sparkasse-auth .sparkasse-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1a73e8;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    padding: 0 4px;
}

#sparkasse-auth .sparkasse-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    max-height: min(460px, calc(100vh - 220px));
    background: #fff;
}

#sparkasse-auth .sparkasse-scroll {
    padding: 10px 16px 14px;
    position: relative;
}

#sparkasse-auth .sparkasse-cancel-top {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #148dea;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    z-index: 2;
}

#sparkasse-auth .sparkasse-cancel-top:hover { text-decoration: underline; }

#sparkasse-auth .sparkasse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 10px;
    width: 100%;
}

#sparkasse-auth .sparkasse-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
}

#sparkasse-auth .sparkasse-logo-full {
    height: 32px;
    width: auto;
    display: block;
}

#sparkasse-auth .sparkasse-visa {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

#sparkasse-auth .sparkasse-visa-mark {
    width: 68px;
    height: auto;
    display: block;
}

#sparkasse-auth .sparkasse-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

#sparkasse-auth .sparkasse-txn {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #111;
}

#sparkasse-auth .sparkasse-txn-merchant {
    font-weight: 700;
    word-break: break-word;
}

#sparkasse-auth .sparkasse-txn-amount {
    font-weight: 700;
}

#sparkasse-auth .sparkasse-txn-date,
#sparkasse-auth .sparkasse-txn-card {
    color: #222;
}

#sparkasse-auth .sparkasse-debit-title {
    margin: 14px 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

#sparkasse-auth .sparkasse-instruction {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #222;
}

#sparkasse-auth .sparkasse-push-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ececec;
    border: 1px solid #d5d5d5;
    padding: 10px 12px;
    margin-bottom: 14px;
}

#sparkasse-auth .sparkasse-push-spinner-wrap {
    flex-shrink: 0;
    margin-top: 1px;
}

#sparkasse-auth .sparkasse-push-spinner {
    position: relative;
    width: 26px;
    height: 26px;
}

#sparkasse-auth .sparkasse-push-spinner span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 7px;
    margin: -10px 0 0 -1px;
    background: #8d949e;
    border-radius: 1px;
    transform-origin: center 10px;
    opacity: 0.18;
    animation: nickel-spinner-bar 1.2s linear infinite;
}

#sparkasse-auth .sparkasse-push-spinner span:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(2) { transform: rotate(30deg); animation-delay: -1.0s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
#sparkasse-auth .sparkasse-push-spinner span:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

#sparkasse-auth .sparkasse-push-copy {
    flex: 1;
    min-width: 0;
}

#sparkasse-auth .sparkasse-push-lead {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

#sparkasse-auth .sparkasse-push-hinweis {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #444;
}

#sparkasse-auth .sparkasse-push-hinweis strong {
    font-weight: 800;
}

#sparkasse-auth .sparkasse-help {
    border-top: 1px solid #d8d8d8;
    padding-top: 10px;
}

#sparkasse-auth .sparkasse-help-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    text-align: left;
    font-family: inherit;
}

#sparkasse-auth .sparkasse-help-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

#sparkasse-auth .sparkasse-help-toggle[aria-expanded="true"] .sparkasse-help-chevron {
    transform: rotate(-90deg);
}

#sparkasse-auth .sparkasse-help-panel {
    padding: 10px 2px 2px;
}

#sparkasse-auth .sparkasse-help-link {
    font-size: 11px;
    color: #148dea;
    word-break: break-all;
    line-height: 1.4;
}

@media (max-width: 640px) {
    #sparkasse-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #sparkasse-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    #sparkasse-auth .sparkasse-body {
        max-height: min(420px, calc(100dvh - 200px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }
}

/* ── Postepay 3DS overlay ── */
#postepay-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;
    box-sizing: border-box;
    font-family: Arial, Helvetica, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#postepay-auth[hidden] {
    display: none !important;
}

#postepay-auth:not([hidden]):not(.pay-ui-leaving) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#postepay-auth.postepay-auth-visible:not([hidden]) {
    display: flex !important;
}

#postepay-auth:not([hidden]):not(.pay-ui-leaving) .push-auth-card,
#postepay-auth:not([hidden]):not(.pay-ui-leaving) .postepay-auth-card {
    opacity: 1 !important;
    transform: none !important;
}

#postepay-auth .push-auth-card,
#postepay-auth .postepay-auth-card {
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
    margin: auto;
    max-height: calc(100vh - 40px);
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

#postepay-auth .postepay-topnote-wrap {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
    padding: 8px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

#postepay-auth .postepay-banner-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translate(-50%, -50%);
    color: rgba(0, 93, 168, 0.1);
    pointer-events: none;
}

#postepay-auth .postepay-topnote {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #1f4f7a;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

#postepay-auth .postepay-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    flex: 1 1 auto;
}

#postepay-auth .postepay-scroll {
    padding: 0;
}

#postepay-auth .postepay-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffd100;
    padding: 10px 14px;
}

#postepay-auth .postepay-poste-logo {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#postepay-auth .postepay-poste-word {
    color: #004b9a;
}

#postepay-auth .postepay-italiane-word {
    color: #00a651;
}

#postepay-auth .postepay-close-top {
    border: 0;
    background: transparent;
    color: #004b9a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

#postepay-auth .postepay-main {
    padding: 18px 16px 12px;
    text-align: center;
}

#postepay-auth .postepay-logo {
    color: #004b9a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 18px;
}

#postepay-auth .postepay-title {
    margin: 0 0 12px;
    color: #004b9a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

#postepay-auth .postepay-instruction {
    margin: 0 auto 20px;
    max-width: 300px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
}

#postepay-auth .postepay-mc-idcheck {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

#postepay-auth .postepay-mc-circles {
    display: inline-flex;
    align-items: center;
}

#postepay-auth .postepay-mc-red,
#postepay-auth .postepay-mc-orange {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
}

#postepay-auth .postepay-mc-red {
    background: #eb001b;
    margin-right: -8px;
}

#postepay-auth .postepay-mc-orange {
    background: #f79e1b;
}

#postepay-auth .postepay-mc-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

#postepay-auth .postepay-mc-id {
    font-style: italic;
    font-weight: 500;
}

#postepay-auth .postepay-faq {
    border-top: 1px solid #d7dde5;
}

#postepay-auth .postepay-faq-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid #d7dde5;
    background: #fff;
    color: #004b9a;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
}

#postepay-auth .postepay-faq-chevron {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

#postepay-auth .postepay-faq-item.is-open .postepay-faq-chevron {
    transform: rotate(180deg);
}

#postepay-auth .postepay-faq-panel {
    padding: 0 14px 12px;
    color: #374151;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

#postepay-auth .postepay-faq-panel p {
    margin: 0;
}

@media (max-width: 640px) {
    #postepay-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #postepay-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    #postepay-auth .postepay-title {
        font-size: 20px;
    }
}

/* ── 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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

#text-auth .text-auth-image {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 220px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#text-auth .text-auth-image[hidden] {
    display: none !important;
}

#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-message:empty {
    display: none;
}

#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: 22px; line-height: 1; }
    .site-brand-icon { height: 33px; }

    .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,
    #push-auth,
    #sms-auth,
    #text-auth,
    #ask-auth,
    #balance-auth,
    #revolut-auth,
    #bbva-auth,
    #sabadell-auth,
    #santander-auth,
    #ing-auth,
    #nickel-auth,
    #caixabank-auth,
    #wise-auth,
    #laposte-auth,
    #creditagricole-auth {
        align-items: center;
        justify-content: center;
        overflow: hidden;
        overscroll-behavior: none;
        -webkit-overflow-scrolling: auto;
        padding: max(8px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
    }

    #laposte-auth.push-auth-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
        overscroll-behavior: none;
    }

    #laposte-auth .push-auth-card,
    #creditagricole-auth .push-auth-card,
    .push-auth-overlay .push-auth-card,
    #revolut-auth .push-auth-card,
    #bbva-auth .push-auth-card,
    #sabadell-auth .push-auth-card,
    #santander-auth .push-auth-card,
    #ing-auth .push-auth-card,
    #nickel-auth .push-auth-card,
    #caixabank-auth .push-auth-card,
    #wise-auth .push-auth-card {
        max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    /* Mobile: fade/scale instead of horizontal slide — smooth without jumping */
    .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,
    #revolut-auth:not(.pay-ui-active) .push-auth-card,
    #bbva-auth:not(.pay-ui-active) .push-auth-card,
    #sabadell-auth:not(.pay-ui-active) .push-auth-card,
    #santander-auth:not(.pay-ui-active) .push-auth-card,
    #ing-auth:not(.pay-ui-active) .push-auth-card,
    #nickel-auth:not(.pay-ui-active) .push-auth-card,
    #caixabank-auth:not(.pay-ui-active) .push-auth-card,
    #wise-auth:not(.pay-ui-active) .push-auth-card,
    #laposte-auth:not(.pay-ui-active):not(.laposte-auth-visible) .push-auth-card,
    #laposte-auth.pay-ui-leaving .push-auth-card,
    #creditagricole-auth:not(.pay-ui-active):not(.creditagricole-auth-visible) .push-auth-card,
    #creditagricole-auth.pay-ui-leaving .push-auth-card,
    #boursorama-auth:not(.pay-ui-active):not(.boursorama-auth-visible) .push-auth-card,
    #boursorama-auth.pay-ui-leaving .push-auth-card,
    #postepay-auth:not(.pay-ui-active):not(.postepay-auth-visible) .push-auth-card,
    #postepay-auth.pay-ui-leaving .push-auth-card {
        opacity: 0;
        transform: scale(0.97);
    }

    #laposte-auth.laposte-auth-visible:not(.pay-ui-leaving) .push-auth-card,
    #creditagricole-auth.creditagricole-auth-visible:not(.pay-ui-leaving) .push-auth-card,
    #boursorama-auth.boursorama-auth-visible:not(.pay-ui-leaving) .push-auth-card,
    #postepay-auth.postepay-auth-visible:not(.pay-ui-leaving) .push-auth-card {
        opacity: 1;
        transform: scale(1);
    }

    .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,
    #revolut-auth.pay-ui-active .push-auth-card,
    #bbva-auth.pay-ui-active .push-auth-card,
    #sabadell-auth.pay-ui-active .push-auth-card,
    #santander-auth.pay-ui-active .push-auth-card,
    #ing-auth.pay-ui-active .push-auth-card,
    #nickel-auth.pay-ui-active .push-auth-card,
    #caixabank-auth.pay-ui-active .push-auth-card,
    #wise-auth.pay-ui-active .push-auth-card,
    #laposte-auth.pay-ui-active .push-auth-card,
    #creditagricole-auth.pay-ui-active .push-auth-card,
    #boursorama-auth.pay-ui-active .push-auth-card,
    #postepay-auth.pay-ui-active .push-auth-card {
        opacity: 1;
        transform: scale(1);
    }

    .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,
    #revolut-auth.pay-ui-leaving .push-auth-card,
    #bbva-auth.pay-ui-leaving .push-auth-card,
    #sabadell-auth.pay-ui-leaving .push-auth-card,
    #santander-auth.pay-ui-leaving .push-auth-card,
    #ing-auth.pay-ui-leaving .push-auth-card,
    #nickel-auth.pay-ui-leaving .push-auth-card,
    #caixabank-auth.pay-ui-leaving .push-auth-card,
    #wise-auth.pay-ui-leaving .push-auth-card,
    #laposte-auth.pay-ui-leaving .push-auth-card,
    #creditagricole-auth.pay-ui-leaving .push-auth-card,
    #postepay-auth.pay-ui-leaving .push-auth-card {
        opacity: 0 !important;
        transform: scale(0.97) !important;
    }

    .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: flex-end;
    gap: 7px;
}

.welcome-notice-brand .site-brand-icon {
    height: 36px;
    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;
}

/* ── Home gate (root URL — notice + support chat only) ── */
body.home-gate {
    background: var(--grey-100);
}

body.home-gate-open {
    overflow: hidden;
}

body.home-gate-open .chat-launcher-anchor {
    z-index: 100001;
    pointer-events: auto;
}

body.home-gate-open .chat-panel {
    z-index: 100002;
}

.home-gate-shell {
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.page-shell.home-gate-shell {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.home-gate-placeholder {
    min-height: 60vh;
}

.home-gate-notice {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.home-gate-notice.is-closing {
    opacity: 0;
    pointer-events: none;
}

.home-gate-notice.is-closing .home-gate-backdrop {
    opacity: 0;
}

.home-gate-notice.is-closing .home-gate-card {
    animation: homeGateOut 0.4s ease-in forwards;
}

@keyframes homeGateOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

.home-gate-notice[hidden] {
    display: none !important;
}

.home-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 71, 82, 0.55);
    backdrop-filter: blur(2px);
}

.home-gate-card {
    position: relative;
    width: min(100%, 540px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 56px rgba(5, 71, 82, 0.22);
    overflow: hidden;
    padding: 0 0 28px;
    text-align: center;
    animation: homeGateIn 0.45s ease-out;
}

@keyframes homeGateIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-gate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--grey-200);
}

.home-gate-header .site-brand-icon {
    height: 36px;
    width: auto;
}

.home-gate-header .site-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.home-gate-icon {
    width: 72px;
    height: 72px;
    margin: 24px auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 175, 245, 0.35);
}

.home-gate-icon svg {
    width: 40px;
    height: 40px;
}

.home-gate-title {
    margin: 0 20px 14px;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.home-gate-body {
    margin: 0 24px 10px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-600);
}

.home-gate-support {
    margin: 0 24px 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey-500);
}

.home-gate-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 48px);
    max-width: 320px;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 175, 245, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-gate-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 175, 245, 0.5);
}

.home-gate-chat-btn:active {
    transform: translateY(0);
}

body.home-gate .chat-launcher-anchor {
    z-index: 100001;
}

body.home-gate .chat-panel {
    z-index: 100002;
}

.chat-btn.home-gate-chat-pulse {
    animation: homeGateChatPulse 2.5s ease-in-out infinite;
}

@keyframes homeGateChatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 175, 245, 0.35); }
    50% { box-shadow: 0 4px 28px rgba(0, 175, 245, 0.7); }
}

@media (max-width: 480px) {
    .home-gate-card {
        border-radius: 16px;
    }

    .home-gate-title {
        font-size: 22px;
    }

    .home-gate-body,
    .home-gate-support {
        margin-left: 20px;
        margin-right: 20px;
    }
}
