.payment-wrap {
    font-family: var(--app-font-sans);
    margin: 0 auto;
    max-width: 1180px;
    padding-bottom: 3rem;
}

.payment-intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-intro p {
    color: #617184;
    font-size: 1.1rem;
    margin: 0;
}

.payment-grid {
    align-items: stretch;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(280px, 460px));
    justify-content: center;
}

.payment-panel {
    background: var(--app-color-surface);
    border: 1px solid #c8cdd9;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.75rem 1.7rem 1.6rem;
    position: relative;
}

.payment-panel.is-featured {
    border-color: var(--app-success);
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.07);
}

.payment-badge {
    align-self: flex-start;
    background: #edf0f5;
    border-radius: 100px;
    color: #4f5668;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.6rem;
    padding: 0.18rem 0.55rem;
}

.payment-badge--featured {
    background: var(--app-success-bg-subtle);
    color: var(--app-success-text-emphasis);
}

.payment-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
}

.payment-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-plan-title {
    color: #1f2230;
    font-family: var(--app-font-sans);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0;
}

.payment-plan-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-plan-description {
    color: #2c3140;
    font-size: 0.98rem;
    line-height: 1.3;
    margin: 0;
    max-width: 28rem;
}

.payment-price-block {
    display: grid;
    gap: 0.28rem;
}

.payment-price-row {
    align-items: end;
    display: flex;
    gap: 0.45rem;
}

.payment-price {
    color: #161a24;
    font-family: var(--app-font-sans);
    font-size: clamp(2rem, 3.7vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.payment-currency {
    color: #444b5d;
    font-family: var(--app-font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.18rem;
}

.payment-subtitle {
    color: #6a6f7f;
    font-size: 0.94rem;
    line-height: 1.35;
    margin: 0;
}

.payment-divider {
    background: #e8ebf1;
    height: 1px;
    width: 100%;
}

.payment-cta {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.payment-btn[aria-disabled="true"] {
    opacity: 0.7;
    pointer-events: none;
}

.payment-note {
    color: var(--app-color-text-secondary);
    font-size: 0.92rem;
    margin: 2rem 0 0;
    text-align: center;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.payment-alert {
    animation: alertSlideIn 0.22s ease forwards;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    color: #842029;
    font-size: 0.93rem;
    font-weight: 500;
    margin: 0 auto 1.35rem;
    max-width: 40rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

.payment-consent-card {
    margin: 1.75rem auto 0;
    max-width: 46rem;
    padding: 0 1rem;
}

.payment-acceptance {
    align-items: center;
    color: #36475f;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

@keyframes checkPop {
    0%   { transform: scale(0.85); }
    55%  { transform: scale(1.12); }
    80%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.payment-acceptance input {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid rgba(76, 92, 120, 0.40);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 3px rgba(15, 23, 42, 0.07),
        0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    margin: 0;
    position: relative;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    width: 1.5rem;
}

.payment-acceptance input:hover {
    border-color: rgba(54, 192, 181, 0.75);
    box-shadow:
        inset 0 1px 3px rgba(15, 23, 42, 0.05),
        0 0 0 4px rgba(54, 192, 181, 0.10);
    transform: scale(1.08);
}

.payment-acceptance input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(54, 192, 181, 0.20);
}

.payment-acceptance input:checked {
    animation: checkPop 0.28s ease forwards;
    background: linear-gradient(145deg, #34c4b6 0%, #149e93 100%);
    border-color: #149e93;
    box-shadow:
        0 0 0 3px rgba(54, 192, 181, 0.18),
        0 2px 8px rgba(20, 158, 147, 0.30);
}

.payment-acceptance input:checked::after {
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    content: "";
    height: 0.65rem;
    left: 0.44rem;
    position: absolute;
    top: 0.17rem;
    transform: rotate(45deg);
    width: 0.33rem;
}

.payment-acceptance-text {
    color: #3d5068;
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}


.payment-acceptance-note {
    color: #7a8898;
    font-size: 0.91rem;
    line-height: 1.6;
    margin: 0.7rem auto 0;
    max-width: 38rem;
    text-align: center;
}

.payment-features {
    color: #222735;
    display: grid;
    font-size: 0.94rem;
    gap: 0.58rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.payment-features li {
    align-items: start;
    display: flex;
    gap: 0.55rem;
    line-height: 1.3;
}

.payment-features li::before {
    align-items: center;
    color: #4f5668;
    content: "✓";
    display: inline-flex;
    flex: 0 0 0.95rem;
    font-size: 0.95rem;
    font-weight: 500;
    height: 0.95rem;
    justify-content: center;
    width: 0.95rem;
}

@media (max-width: 767px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-panel {
        border-radius: 26px;
        padding: 1.5rem 1.15rem 1.35rem;
    }

    .payment-plan-title {
        font-size: 1.75rem;
    }

    .payment-consent-card {
        padding: 0 0.25rem;
    }

    .payment-acceptance {
        align-items: flex-start;
        text-align: left;
    }

    .payment-acceptance-text {
        font-size: 0.98rem;
    }
}
