/**
 * PayGet modal/iframe styles.
 *
 * Visual style aligned with FunnelKit "elementor-shoppe" + "wfacp-modern-label" theme:
 * neutral background, soft shadow, modern rounded corners.
 */

body.payget-modal-open {
    overflow: hidden;
}

.payget-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: paygetFadeIn 200ms ease-out;
}

@keyframes paygetFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.payget-overlay .payget-modal {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
    animation: paygetSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes paygetSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.payget-overlay .payget-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f3;
    background: #f8fafc;
}

.payget-overlay .payget-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.payget-overlay .payget-modal-close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: background 120ms ease, color 120ms ease;
}

.payget-overlay .payget-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.payget-overlay .payget-modal-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 480px;
    background: #fff;
    overflow: hidden;
}

.payget-overlay .payget-iframe {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border: 0;
    background: #fff;
}

.payget-overlay .payget-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid #e2e8f0;
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: paygetSpin 800ms linear infinite;
    z-index: 1;
}

@keyframes paygetSpin {
    to { transform: rotate(360deg); }
}

.payget-overlay .payget-iframe + .payget-spinner {
    /* spinner is hidden once iframe finishes loading - but it stays visible
       in the background which is fine */
}

.payget-overlay .payget-fallback {
    padding: 28px 24px;
    text-align: center;
}

.payget-overlay .payget-fallback p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
}

.payget-overlay .payget-open-window {
    display: inline-block;
    padding: 12px 22px;
    background: #0f172a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 120ms ease;
}

.payget-overlay .payget-open-window:hover {
    background: #1e293b;
}

.payget-overlay .payget-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #eef0f3;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.payget-overlay .payget-modal-cancel {
    appearance: none;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.payget-overlay .payget-modal-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.payget-overlay .payget-success {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 480px;
    font-size: 64px;
    color: #16a34a;
    background: #f0fdf4;
}

.payget-overlay .payget-error {
    padding: 32px 24px;
    text-align: center;
    color: #b91c1c;
}

.payget-overlay .payget-error p {
    margin: 0;
    font-size: 14px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .payget-overlay {
        padding: 0;
    }
    .payget-overlay .payget-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }
    .payget-overlay .payget-iframe {
        height: calc(100vh - 110px);
    }
}
