/**
 * Checkout public — souscription / renouvellement
 */
.fx-checkout-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0a1220;
    background:
        radial-gradient(circle at 12% 10%, rgba(107, 163, 181, 0.18), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(40, 212, 154, 0.12), transparent 36%),
        linear-gradient(165deg, #e4eaf2 0%, #eef2f7 55%, #dfe7f0 100%);
    padding: 2rem 1rem 3rem;
}

.fx-checkout {
    max-width: 560px;
    margin: 0 auto;
}

.fx-checkout__card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.65rem 2rem;
    border: 1px solid rgba(200, 212, 227, 0.9);
    box-shadow: 0 24px 60px rgba(10, 18, 32, 0.12);
}

.fx-checkout__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #224668;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.fx-checkout__back:hover { color: #0a1220; }

.fx-checkout__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #224668;
    background: rgba(34, 70, 104, 0.08);
    border: 1px solid rgba(34, 70, 104, 0.14);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.fx-checkout h1 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0a1220;
}

.fx-checkout__lead {
    margin: 0;
    color: #5a7088;
    font-size: 0.95rem;
    line-height: 1.55;
}

.fx-checkout__price {
    margin: 1.25rem 0 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a1220 0%, #224668 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fx-checkout__price-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fx-checkout__price strong {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.fx-checkout__price span {
    font-size: 0.88rem;
    opacity: 0.85;
}

.fx-checkout .form-group { margin-bottom: 0.95rem; }
.fx-checkout .form-label {
    display: block;
    font-weight: 700;
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
    color: #1a3554;
}
.fx-checkout .form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #c8d4e3;
    border-radius: 11px;
    font-size: 1rem;
    background: #fff;
    color: #0a1220;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fx-checkout .form-control:focus {
    outline: none;
    border-color: #224668;
    box-shadow: 0 0 0 4px rgba(34, 70, 104, 0.12);
}

.fx-checkout .alert-error {
    background: #fdedec;
    color: #c0392b;
    border: 1px solid #f1948a;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.fx-checkout .renew-alert {
    background: #fff8e8;
    border: 1px solid #f0d78c;
    border-left: 4px solid #e0a800;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #5a4a12;
    line-height: 1.5;
}

.pay-methods {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e4eaf2;
}

.pay-methods__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0a1220;
}

.pay-methods__sub {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #5a7088;
    line-height: 1.45;
}

.pay-methods__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pay-methods__btn {
    display: grid;
    grid-template-columns: 56px 1fr 28px;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1.5px solid #d5dee8;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.pay-methods__btn:hover {
    transform: translateY(-2px);
    border-color: #224668;
    box-shadow: 0 10px 24px rgba(10, 18, 32, 0.1);
}

.pay-methods__btn:focus-visible {
    outline: 3px solid rgba(34, 70, 104, 0.35);
    outline-offset: 2px;
}

.pay-methods__btn--orange:hover { border-color: #ff7900; }
.pay-methods__btn--wave:hover { border-color: #00adef; }
.pay-methods__btn--card:hover { border-color: #224668; }
.pay-methods__btn--bank:hover { border-color: #3d8b7a; }

.pay-methods__visual {
    width: 56px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-methods__logo {
    max-height: 42px;
    max-width: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pay-methods__logo--wave { max-height: 40px; }

.pay-methods__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.pay-methods__logo--visa {
    max-height: 28px;
    max-width: 44px;
    border-radius: 3px;
}

.pay-methods__logo--mc {
    max-height: 32px;
    max-width: 40px;
    border-radius: 3px;
}

.pay-methods__btn--card {
    grid-template-columns: 72px 1fr 28px;
}

.pay-methods__btn--card .pay-methods__visual {
    width: 72px;
}

.pay-methods__btn.is-preferred {
    border-color: #224668;
    box-shadow: 0 0 0 3px rgba(34, 70, 104, 0.18);
    background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}

.pay-methods__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}

.pay-methods__icon--card {
    background: linear-gradient(135deg, #224668, #0a1220);
}

.pay-methods__icon--bank {
    background: linear-gradient(135deg, #3d8b7a, #224668);
}

.pay-methods__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pay-methods__meta strong {
    font-size: 0.95rem;
    color: #0a1220;
}

.pay-methods__meta small {
    font-size: 0.78rem;
    color: #5a7088;
}

.pay-methods__arrow {
    color: #8aa0b5;
    font-size: 0.9rem;
    justify-self: end;
}

.pay-methods__btn:hover .pay-methods__arrow { color: #224668; }

.fx-checkout__secure {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.78rem;
    color: #5a7088;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ——— Tunnel paiement Finexa ——— */
.fx-pay-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    position: relative;
}

.fx-pay-header__logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.fx-pay-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #224668;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(34, 70, 104, 0.14);
    padding: 6px 12px;
    border-radius: 999px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.fx-pay-card { margin-top: 0; }

.fx-pay-status {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.fx-pay-status--ok { color: #1e8449; }
.fx-pay-status--cancel { color: #c0392b; }

.fx-pay-price__ref {
    display: block;
    font-size: 0.75rem;
    opacity: 0.72;
    word-break: break-all;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
}

.fx-pay-summary__title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a7088;
}

.fx-pay-summary {
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    overflow: hidden;
}

.fx-pay-summary > div {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 0.35rem 1rem;
    align-items: start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8edf4;
    font-size: 0.88rem;
}

.fx-pay-summary > div:last-child {
    border-bottom: none;
}

.fx-pay-summary dt {
    margin: 0;
    color: #5a7088;
    font-weight: 600;
    font-size: 0.82rem;
}

.fx-pay-summary dd {
    margin: 0;
    text-align: left;
    color: #0a1220;
    font-weight: 700;
    word-break: break-word;
}

.fx-pay-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.fx-pay-method small {
    font-weight: 500;
    color: #5a7088;
    font-size: 0.78rem;
}

.fx-pay-logos {
    display: flex;
    justify-content: center;
    margin: 0 0 1.25rem;
}

.fx-pay-trust {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #f7fafc;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    display: grid;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #1a3554;
}

.fx-pay-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.fx-pay-trust li::before {
    content: none;
}

.fx-pay-trust i {
    color: #224668;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.fx-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fx-pay-btn--primary {
    background: linear-gradient(135deg, #224668, #0a1220);
    color: #fff;
    box-shadow: 0 10px 24px rgba(10, 18, 32, 0.18);
}

.fx-pay-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.fx-pay-btn--primary:disabled {
    opacity: 0.75;
    cursor: wait;
}

.fx-pay-btn--orange {
    background: linear-gradient(135deg, #ff7900, #e06600);
    box-shadow: 0 10px 28px rgba(255, 121, 0, 0.35);
}

.fx-pay-btn--wave {
    background: linear-gradient(135deg, #00adef, #0077b3);
    box-shadow: 0 10px 28px rgba(0, 173, 239, 0.3);
}

button.fx-pay-btn,
button.fx-pay-btn--primary {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #224668, #0a1220);
    color: #fff;
    border: none;
}

button.fx-pay-btn--orange {
    background: linear-gradient(135deg, #ff7900, #e06600);
}

button.fx-pay-btn--wave {
    background: linear-gradient(135deg, #00adef, #0077b3);
}

.fx-pay-btn--ghost {
    margin-top: 0.65rem;
    background: transparent;
    color: #224668;
    border: 1.5px solid #224668;
}

.fx-pay-form { margin-top: 0; }

.fx-pay-form__hint {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #5a7088;
    line-height: 1.45;
}

.fx-pay-btn--cta {
    min-height: 54px;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    margin-top: 0;
    position: sticky;
    bottom: 12px;
    z-index: 5;
}

.fx-pay-alt {
    text-align: center;
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
}

.fx-pay-alt a { color: #224668; font-weight: 600; }

.fx-pay-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #5a7088;
}

.fx-pay-footer a { color: #224668; font-weight: 600; }

.fx-pay-online-cta {
    margin-bottom: 1.15rem;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40, 212, 154, 0.12), rgba(34, 70, 104, 0.08));
    border: 1px solid rgba(40, 212, 154, 0.35);
    text-align: center;
}

.fx-pay-online-cta p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #1a3554;
    font-weight: 600;
}

.fx-pay-phone {
    background: linear-gradient(135deg, #0a1220 0%, #152a44 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    text-align: center;
    margin-bottom: 0.85rem;
}

.fx-pay-phone .fx-pay-logos {
    display: none;
}

.fx-pay-method-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    color: #1a3554;
    background: #f0f4f8;
    border: 1px solid #d5dee8;
}

.fx-pay-method-pill--orange {
    background: #fff8f3;
    border-color: rgba(255, 121, 0, 0.35);
    color: #7a3e00;
}

.fx-pay-method-pill--wave {
    background: #f0faff;
    border-color: rgba(0, 173, 239, 0.35);
    color: #005a80;
}

.fx-pay-method-pill__logo {
    display: block;
    width: auto;
    height: 26px;
    max-width: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.fx-pay-methods-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.fx-pay-methods-row__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.5rem 0.65rem;
    background: #fff;
    border: 1.5px solid #e4eaf2;
    border-radius: 12px;
    overflow: hidden;
}

.fx-pay-methods-row__item.is-active {
    border-width: 2px;
}

.fx-pay-methods-row__item--orange.is-active {
    border-color: rgba(255, 121, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

.fx-pay-methods-row__item--wave.is-active {
    border-color: rgba(0, 173, 239, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.12);
}

.fx-pay-methods-row__item img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
}

.fx-pay-ref {
    position: relative;
    background: #f8fafc;
    border: 1.5px dashed #28d49a;
    border-radius: 12px;
    padding: 0.95rem 1rem 0.85rem;
    margin-bottom: 1.15rem;
    text-align: center;
}

.fx-pay-ref strong {
    display: block;
    font-size: 0.72rem;
    color: #5a7088;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.fx-pay-ref code {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0a1220;
    word-break: break-all;
    line-height: 1.45;
    margin-top: 0.35rem;
}

.fx-pay-ref__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.65rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid #c8d4e3;
    border-radius: 8px;
    background: #fff;
    color: #224668;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.fx-pay-ref__copy:hover {
    background: #eef2f7;
}

.fx-pay-phone__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.fx-pay-phone__num {
    color: #28d49a;
    font-size: 1.55rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.fx-pay-steps {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.fx-pay-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1a3554;
}

.fx-pay-steps li span {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #224668, #28d49a);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fx-pay-note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1a3554;
    background: #e4eaf2;
    border: 1px solid rgba(34, 70, 104, 0.12);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.fx-pay-phone__hint {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.fx-pay-bank-details {
    margin-top: 1.25rem;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    overflow: hidden;
}

.fx-pay-bank-details summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #224668;
    background: #f8fafc;
    list-style: none;
}

.fx-pay-bank-details summary::-webkit-details-marker { display: none; }

.fx-pay-bank-details__body {
    padding: 0.75rem 1rem 1rem;
    background: #fff;
}

@media (max-width: 480px) {
    .fx-checkout__card { padding: 1.35rem 1.15rem 1.6rem; }
    .fx-checkout h1 { font-size: 1.35rem; }
    .fx-checkout__price strong { font-size: 1.55rem; }
    .fx-pay-header__badge {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        justify-content: center;
    }
    .fx-pay-summary > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .pay-methods__btn {
        grid-template-columns: 48px 1fr 22px;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }
    .pay-methods__btn--card {
        grid-template-columns: 64px 1fr 22px;
    }
}
