html.ef-payment-modal-open {
    overflow: hidden;
}

.ef-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ef-payment-modal[hidden] {
    display: none;
}

.ef-payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 20, 43, 0.58);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 180ms ease;
}

.ef-payment-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 42px;
    border-radius: 28px;
    background: #fff;
    box-shadow:
        0 30px 80px rgba(20, 15, 40, 0.24),
        0 4px 16px rgba(20, 15, 40, 0.08);

    transform: translateY(14px) scale(0.985);
    opacity: 0;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.ef-payment-modal.is-open
.ef-payment-modal__backdrop {
    opacity: 1;
}

.ef-payment-modal.is-open
.ef-payment-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ef-payment-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7d788a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ef-payment-modal__close:hover {
    background: #f5f3f9;
    color: #2e2938;
}

.ef-payment-modal__eyebrow {
    margin-bottom: 8px;
    color: #6d5bd0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ef-payment-modal__title {
    margin: 0;
    color: #282333;
    font-size: 30px;
    line-height: 1.15;
}

.ef-payment-modal__intro {
    margin: 12px 0 28px;
    color: #777181;
    font-size: 15px;
    line-height: 1.6;
}

.ef-payment-modal__intro span {
    margin: 0 6px;
    color: #bbb6c5;
}

.ef-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ef-payment-method {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e6e2ed;
    border-radius: 20px;
    background: #fff;
    text-align: left;
    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.ef-payment-method:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #c9c1e7;
    box-shadow: 0 14px 30px rgba(57, 45, 94, 0.10);
}

.ef-payment-method--yandex {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafaff 100%
        );
}

.ef-payment-method--paddle {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfaff 100%
        );
}

.ef-payment-method.is-disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.ef-payment-method__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ef-payment-method__name {
    display: block;
    color: #292431;
    font-size: 18px;
    font-weight: 800;
}

.ef-payment-method__region {
    display: block;
    margin-top: 5px;
    color: #8a8492;
    font-size: 13px;
}

.ef-payment-method__arrow {
    color: #7562d5;
    font-size: 22px;
    font-weight: 700;
}

.ef-payment-method__price {
    margin-top: 24px;
    color: #292431;
    font-size: 23px;
    font-weight: 850;
}

.ef-payment-method__description {
    min-height: 44px;
    margin: 8px 0 18px;
    color: #777181;
    font-size: 14px;
    line-height: 1.55;
}

.ef-payment-method__status {
    display: inline-block;
    color: #9c5661;
    font-size: 12px;
    font-weight: 700;
}

.ef-payment-method__status--available {
    color: #6654c8;
}

.ef-payment-modal__footer {
    margin: 24px 0 0;
    color: #99939f;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.ef-payment-modal__back {
    margin: -4px 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c5cc9;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ef-yandex-summary {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid #ebe7f1;
    border-radius: 20px;
    background: #fbfaff;
}

.ef-yandex-summary__price {
    color: #292431;
    font-size: 32px;
    font-weight: 850;
}

.ef-yandex-summary__features {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.ef-yandex-summary__features div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5f5967;
    font-size: 14px;
    line-height: 1.5;
}

.ef-yandex-summary__features span {
    color: #6d5bd0;
    font-weight: 900;
}

.ef-yandex-continue {
    width: 100%;
    margin-top: 22px;
    padding: 16px 22px;
    border: 0;
    border-radius: 14px;
    background: #28242f;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 150ms ease,
        opacity 150ms ease;
}

.ef-yandex-continue:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ef-yandex-continue:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 680px) {
    .ef-payment-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .ef-payment-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 28px);
        padding: 32px 20px 24px;
        border-radius: 24px 24px 18px 18px;
    }

    .ef-payment-modal__title {
        font-size: 25px;
    }

    .ef-payment-methods {
        grid-template-columns: 1fr;
    }

    .ef-payment-method__description {
        min-height: 0;
    }
}

/* =========================================================
   PAYMENT PROVIDER CARDS — PREMIUM REDESIGN
   ========================================================= */

.ef-payment-methods {
    gap: 18px;
}

.ef-payment-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e7e3ef;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 12px 30px rgba(33, 25, 62, 0.06);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.ef-payment-method-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -70px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.75;
    filter: blur(4px);
}

.ef-payment-method-card--yandex::before {
    background:
        radial-gradient(
            circle,
            rgba(255, 216, 216, 0.72) 0%,
            rgba(255, 238, 238, 0.35) 45%,
            rgba(255, 255, 255, 0) 72%
        );
}

.ef-payment-method-card--paddle::before {
    background:
        radial-gradient(
            circle,
            rgba(210, 198, 255, 0.78) 0%,
            rgba(232, 226, 255, 0.36) 45%,
            rgba(255, 255, 255, 0) 72%
        );
}

.ef-payment-method-card:hover:not(.is-disabled) {
    transform: translateY(-4px);
    border-color: #cbc2eb;
    box-shadow:
        0 22px 48px rgba(48, 35, 86, 0.13);
}

.ef-payment-method-card.is-disabled {
    opacity: 0.62;
}

.ef-payment-method-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ef-payment-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-payment-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.ef-payment-brand__logo--yandex {
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #202020 0%,
            #050505 100%
        );
}

.ef-payment-brand__logo--paddle {
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #7656df 0%,
            #5a38c7 100%
        );
    box-shadow:
        0 8px 20px rgba(104, 75, 211, 0.24);
}

.ef-payment-brand__name {
    color: #272231;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.15;
}

.ef-payment-brand__caption {
    margin-top: 4px;
    color: #918b9a;
    font-size: 12px;
}

.ef-payment-region {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.ef-payment-region--ru {
    color: #544957;
    background: #f7f3f5;
    border: 1px solid #ebe4e7;
}

.ef-payment-region--global {
    color: #5d4db1;
    background: #f4f1ff;
    border: 1px solid #e4ddff;
}

.ef-payment-region__icon {
    font-size: 14px;
    line-height: 1;
}

.ef-payment-method-card__price {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    color: #25202e;
    font-size: 27px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.ef-payment-method-card__benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 20px 0 24px;
    color: #665f6e;
    font-size: 13px;
    line-height: 1.45;
}

.ef-payment-method-card__benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ef-payment-check {
    flex: 0 0 auto;
    color: #7058d5;
    font-weight: 900;
}

.ef-payment-method-card__button {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    min-height: 52px;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #fff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.ef-payment-method-card__button span {
    font-size: 18px;
    transition: transform 160ms ease;
}

.ef-payment-method-card__button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ef-payment-method-card__button:hover:not(:disabled) span {
    transform: translateX(3px);
}

.ef-payment-method-card__button--yandex {
    background:
        linear-gradient(
            180deg,
            #242424 0%,
            #0c0c0c 100%
        );

    box-shadow:
        0 10px 22px rgba(12, 12, 12, 0.18);
}

.ef-payment-method-card__button--paddle {
    background:
        linear-gradient(
            135deg,
            #7656df 0%,
            #6240cf 55%,
            #8f67ed 100%
        );

    box-shadow:
        0 12px 26px rgba(103, 72, 210, 0.28);
}

.ef-payment-method-card__button--disabled {
    color: #918b98;
    background: #eeeaf1;
    cursor: not-allowed;
}

@media (max-width: 680px) {

    .ef-payment-method-card {
        padding: 20px;
    }

    .ef-payment-method-card__header {
        align-items: center;
    }

    .ef-payment-method-card__price {
        margin-top: 22px;
        font-size: 24px;
    }

    .ef-payment-method-card__button {
        min-height: 50px;
    }
}