﻿
/* ===== RMD Pay Modal (Popup) ===== */
.pillar-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.pillar-pay-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pillar-pay-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(680px, calc(100% - 24px));
    max-height: min(80vh, 720px);
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    overflow: auto;
    padding: 22px;
}

.pillar-pay-modal__close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(16, 24, 40, 0.06);
    border-radius: 9999px;
    cursor: pointer;
}

.pillar-pay-modal__header {
    text-align: center;
    padding: 6px 0 18px 0;
}

.pillar-pay-modal__amount {
    margin: 0;
    color: #101828;
    font-family: system-ui, sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
}

.pillar-pay-modal__subtitle {
    margin: 10px 0 0 0;
    color: #475467;
    font: 500 14px/1.4 system-ui, sans-serif;
}

.pillar-pay-modal__btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pillar-pay-modal__btn {
    height: 56px;
    border-radius: 9999px;
    border: 1px solid rgba(16, 24, 40, 0.14);
    background: #fff;
    font: 600 16px/1 system-ui, sans-serif;
    cursor: pointer;
}

.pillar-pay-modal__btn--paypal {
    background: linear-gradient(180deg, #00b18a, #006eb4, #00b18a);
    background-size: 100% 300%;
    background-position: 50% 0%;
    transition: background-position 0.8s ease;
    color: #fff;
    border-color: transparent;
}

    .pillar-pay-modal__btn--paypal:hover {
        background-position: 50% 100%;
    }

.pillar-pay-modal__card-expand {
    margin-top: 14px;
}

.pillar-pay-modal__fake-iframe {
    border-radius: 20px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
}

.pillar-pay-modal__fake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .pillar-pay-modal__fake-grid label {
        display: grid;
        gap: 6px;
        font: 500 13px/1.2 system-ui, sans-serif;
        color: #344054;
    }

    .pillar-pay-modal__fake-grid input {
        border-radius: 12px;
        padding: 12px 14px;
        border: 1px solid rgba(16, 24, 40, 0.12);
        background: rgba(255, 255, 255, 0.95);
        outline: none;
    }

.pillar-pay-modal__fake-pay {
    margin-top: 14px;
    width: fit-content;
    border: 1px solid transparent;
    color: #fff;
    display: inline-flex;
    padding: 12px 18px;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    cursor: pointer;
    background: linear-gradient(180deg, #00b18a, #006eb4, #00b18a);
    background-size: 100% 300%;
    background-position: 50% 0%;
    transition: background-position 0.8s ease;
}

    .pillar-pay-modal__fake-pay:hover {
        background-position: 50% 100%;
    }

@media (max-width: 520px) {
    .pillar-pay-modal__amount {
        font-size: 36px;
    }

    .pillar-pay-modal__fake-grid {
        grid-template-columns: 1fr;
    }
}
