/* Payment transitions must be immediate, not animated page scrolling. */
html.rf-payment-page {
    overflow-y: scroll;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
}
.rf-payment-page .member-card { overflow-anchor: none; }
.payment-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #020704c9;
    overscroll-behavior: contain;
}
.payment-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 500px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 28px;
    color: #eef3e9;
    background: #111c16;
    border: 1px solid #7eae3f;
    border-top: 3px solid #b0fc39;
    box-shadow: 0 20px 80px #0009;
    text-align: center;
    animation: payment-alert-in .18s ease-out;
}
.payment-alert-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #b0fc39;
    font: 34px 'Segoe UI', sans-serif;
}
.payment-alert--error .payment-alert-icon { color: #ffab9a; }
.payment-alert--warning .payment-alert-icon { color: #ffd27e; }
.payment-alert h2 { flex: 0 0 auto; font-size: 24px; margin: 0 0 14px; }
.payment-alert-message {
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #c6d2c5;
    font-size: 15px;
    line-height: 1.9;
}
.payment-alert-close { flex: 0 0 auto; margin-top: 24px; min-width: 150px; justify-content: center; }
@keyframes payment-alert-in {
    from { opacity: 0; transform: scale(.97); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 480px) {
    .payment-alert { padding: 22px 18px; }
    .payment-alert h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .payment-alert { animation: none; } }
