/* Let RealexHpp handle its own modal styling - no custom positioning */

/* Let RealexHpp handle its own close button positioning */

/* Let RealexHpp handle its own overlay styling */

/* Let RealexHpp handle its own mobile styling */

.gform-payment-secure {
    display: block;
    margin-bottom: 10px;
    color: #4a4a4a;
    font-size: 0.9em;
}

.gform-payment-field {
    min-height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* Overlay */
.gf-payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    display: none;
}

.gf-payment-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gf-payment-overlay-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.gf-payment-overlay-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.gf-payment-overlay-close {
    display: none; /* Hidden by default, shown after timeout */
    padding: 8px 16px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.gf-payment-overlay-close:hover {
    background-color: #c0392b;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Let RealexHpp handle its own iframe styling */

/* Let RealexHpp handle its own overlay styling */

/* Let RealexHpp handle its own iframe styling */

/* Let RealexHpp handle its own loading states */

/* Let RealexHpp handle its own font and modal styling */

/* ==========================================================================
   MOBILE MODAL FIXES
   ========================================================================== */

/* Mobile-specific fixes for RealexHpp modal */
@media (max-width: 768px) {
    /* Fix iframe sizing and positioning on mobile */
    iframe[id*="rxp-iframe-"],
    iframe[id*="rxp-frame-"] {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin-left: 0 !important;
        left: 0 !important;
        top: 0 !important;
        position: fixed !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    
    /* Fix modal container positioning */
    div[id*="rxp-overlay-"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ensure modal content is properly sized */
    div[id*="rxp-overlay-"] > iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        top: 0 !important;
        position: relative !important;
        transform: none !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    iframe[id*="rxp-iframe-"],
    iframe[id*="rxp-frame-"] {
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        left: 0 !important;
        top: 0 !important;
        position: fixed !important;
        border: none !important;
    }
}
