/*
 * runtime-styles.css
 * Styles that were previously injected at runtime via JS <style> blocks
 * (header.js / payments.js). Moved verbatim into this stylesheet so they
 * apply on first paint instead of popping in after the page renders.
 * Keep this linked LAST in <head> to preserve the original cascade order.
 */

/* ===== Chat button styles (was injected by header.js) ===== */
.chat-button-header, .chat-button-footer, .contact-chat-now {
        background: linear-gradient(180deg,#0084ff,#006fe6); /* Messenger blue */
        color: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        padding: 8px 12px; 
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,132,255,0.18), 0 2px 8px rgba(0,0,0,0.12);
        transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
        font-weight:700;
    }
    .chat-button-header:hover, .chat-button-footer:hover, .contact-chat-now:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 26px rgba(0,132,255,0.22), 0 6px 12px rgba(0,0,0,0.16);
        filter: saturate(1.08);
        /* Turn green on hover */
        background: linear-gradient(45deg, #28a745, #1e7e34) !important; 
    }
    .chat-button-header.roaring-animation {
        animation: messenger-pulse 1.6s infinite ease-in-out;
    }
    @keyframes messenger-pulse {
        0% { transform: scale(1); box-shadow: 0 6px 18px rgba(0,132,255,0.12); }
        50% { transform: scale(1.04); box-shadow: 0 18px 40px rgba(0,132,255,0.22); }
        100% { transform: scale(1); box-shadow: 0 6px 18px rgba(0,132,255,0.12); }
    }

/* ===== Smart-fit modal styles (was injected by header.js) ===== */
/* Position the modal similar to the payment modal: start from top with a soft padding */
    .modal.iframe-modal { align-items: flex-start; justify-content: center; padding-top: 50px; }

    /* Use the same content sizing as payment modals so header boxes don't become oversized */
    .modal.iframe-modal .iframe-modal-content {
    width: 95%;
    max-width: 580px; /* match payments.js max width */
    height: auto;
    min-height: 0; /* allow shrinking to fit content */
    max-height: 95%;
        padding: 18px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        border-radius: 12px;
        background: linear-gradient(145deg, #141414, #0a0a0a);
        border: 2px solid rgb(252, 182, 4);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(252,182,4,0.2);
        transition: all 0.25s ease;
    }

    /* Inner wrap should fit within the content width and allow inner scrolling when needed */
    .modal.iframe-modal .modal-inner-wrap {
        max-width: 560px;
        width: 100%;
        overflow: visible;
        border-radius: 10px;
    }

    /* Allow long content to scroll inside the modal while keeping the modal within viewport */
    .modal.iframe-modal .modal-inner-content {
        max-height: calc(100vh - 100px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px;
    }

    /* Ensure the show state doesn't stretch the inner layout unexpectedly */
    .modal.iframe-modal.show .iframe-modal-content { align-items: stretch; }

/* ===== Modal overlay/content styles (was injected by footer.js) ===== */
/* Modal overlay */
            .modal {
                display: none;
                position: fixed;
                z-index: 10000;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.75);
                padding: 20px;
                box-sizing: border-box;
                overflow: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* Modal content box */
            .modal .modal-content {
                background: linear-gradient(180deg,#131313,#1f1f1f);
                color: #f5f5f5;
                max-width: 780px;
                margin: 36px auto;
                padding: 14px 16px;
                border-radius: 10px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.6);
                border: 1px solid rgba(252,182,4,0.08);
                font-family: Arial, Helvetica, sans-serif;
                line-height: 1.45;
            }

            .modal .modal-content h2 { color: #fcb604; margin-top: 0; }
            .modal .modal-content h3 { color: #ffd87a; }
            .modal .modal-content p { color: #e9e9e9; margin: 8px 0; }

            /* Make modal-inner-content inside iframe-modal consistent with modal-content styling */
            .iframe-modal .modal-inner-content,
            .modal .modal-inner-content {
                color: #e9e9e9;
                padding: 12px 8px;
                line-height: 1.45;
                font-family: Arial, Helvetica, sans-serif;
            }

            /* Close button */
            .modal .modal-close {
                float: right;
                font-size: 1.3em;
                color: #fff;
                background: rgba(255,255,255,0.04);
                padding: 4px 8px;
                border-radius: 6px;
                cursor: pointer;
                border: 1px solid rgba(255,255,255,0.03);
            }

            .modal a { color: #fcb604; text-decoration: underline; }

            @media (max-width: 600px) {
                .modal .modal-content { margin: 18px 10px; padding: 10px; }
            }

/* ===== Modal inner scroll styles (was injected by footer.js) ===== */
.iframe-modal .modal-inner-content {
                overflow: auto;
                -webkit-overflow-scrolling: touch;
                max-height: calc(80vh - 120px);
                padding-right: 6px; /* allow for scrollbar space */
            }
            /* For very small screens, allow full-height inner scrolling */
            @media (max-width: 480px) {
                .iframe-modal .modal-inner-content { max-height: calc(100vh - 100px); }
            }

/* ===== Payment iframe modal + banner skin styles (was injected by payments.js) ===== */
/* Announcement banner: match site dark background */
        .announcement-banner, #announcement-banner {
            background: #0a0a0a !important;
            color: #fff;
        }
        /* Consistent rounded corners for header, payment banner, announcement banner, and footer */
        @media (min-width: 769px) {
            header,
            .payment-banner,
            .announcement-banner, #announcement-banner,
            footer, footer[class], footer[id] {
                border-radius: 8px !important;
            }
        }
        @media (max-width: 768px) {
            header,
            .payment-banner,
            .announcement-banner, #announcement-banner,
            footer, footer[class], footer[id] {
                border-radius: 6px !important;
            }
        }
        /* Golden outer border for header, payment banner, announcement banner, and footer (desktop and mobile) */
        header, header[class], header[id],
        .payment-banner,
        .announcement-banner, #announcement-banner,
        footer, footer[class], footer[id] {
            border: 2px solid rgb(252, 182, 4) !important;
            box-shadow: 0 0 12px rgba(252, 182, 4, 0.12) !important;
            outline: none !important;
            /* 3D look: gradient background and deep shadow */
            background: linear-gradient(145deg, #181818 60%, #252525 100%) !important;
            box-shadow: 0 4px 18px rgba(252,182,4,0.18), 0 2px 12px rgba(0,0,0,0.18) !important;
            border-radius: 12px !important;
            transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
        }

        header:hover, header[class]:hover, header[id]:hover,
        .payment-banner:hover,
        .announcement-banner:hover, #announcement-banner:hover,
        footer:hover, footer[class]:hover, footer[id]:hover {
            box-shadow: 0 8px 32px rgba(252,182,4,0.28), 0 4px 24px rgba(0,0,0,0.28) !important;
            transform: translateY(-2px) scale(1.02);
            background: linear-gradient(145deg, #252525 60%, #181818 100%) !important;
        }
        /* Desktop: payment banner stretches 100% */
        .payment-banner {
            width: 100%;
            margin: 0;
            margin-top: 16px;
            max-width: 100%;
        }
        /* Remove default highlight/outline from anchor tags in payment banner */
        .payment-banner a:focus,
        .payment-banner a:active {
            outline: none !important;
            background: none !important;
            box-shadow: none !important;
        }
        /* Chat button turns green on hover/touch */
        .chat-button-header:hover, .chat-button-header:active,
        .chat-button-footer:hover, .chat-button-footer:active {
            background: #43A047 !important; /* Leaf green */
            color: #fff !important;
            border-color: #43A047 !important;
            box-shadow: 0 0 16px rgba(67,160,71,0.25), 0 2px 12px rgba(0,0,0,0.18) !important;
        }
        /* Stretch header and payment banner end-to-end on mobile */
        @media (max-width: 768px) {
            header {
                width: 100% !important;
                min-width: 100% !important;
                max-width: 100% !important;
                left: 0;
                right: 0;
                margin: 0 !important;
                padding: 0 !important;
                border-radius: 12px !important;
                border: none !important;
            }
            .payment-banner {
                width: 100% !important;
                min-width: 100% !important;
                max-width: 100% !important;
                left: 0;
                right: 0;
                margin: 0 !important;
                margin-top: 8px !important;
                padding: 0 !important;
                border-radius: 12px !important;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
            }
        }
        /* Existing modal and payment CSS follows */
        .iframe-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 50px;
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.3s ease, transform 0.3s ease;
            overflow: hidden;
        }
        /* ...rest of existing CSS... */
        .iframe-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 50px;
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.3s ease, transform 0.3s ease;
            overflow: hidden;
        }
        
        .iframe-modal.show {
            opacity: 1;
            transform: scale(1);
        }
        
        /* Neon glow effect */
        .iframe-modal::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(
                circle at center,
                rgba(252, 182, 4, 0.15) 0%,
                rgba(252, 182, 4, 0.05) 25%, 
                rgba(252, 182, 4, 0.02) 40%,
                transparent 60%
            );
            transform: translate(-50%, -50%) rotate(0deg);
            z-index: -1;
            animation: pulseGlow 8s infinite alternate;
            opacity: 0;
            transition: opacity 0.8s ease;
        }
        
        .iframe-modal.show::before {
            opacity: 1;
        }
        
        @keyframes pulseGlow {
            0% {
                transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
            }
            50% {
                transform: translate(-50%, -50%) scale(1.05) rotate(180deg);
            }
            100% {
                transform: translate(-50%, -50%) scale(0.95) rotate(360deg);
            }
        }
        
        .iframe-modal-content {
            width: 95%;
            max-width: 580px;
            height: auto;
            min-height: 520px;
            max-height: 95%;
            padding: 18px;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            margin: 0 auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(252, 182, 4, 0.2);
            background: linear-gradient(145deg, #141414, #0a0a0a);
            border-radius: 12px;
            border: 2px solid rgb(252, 182, 4);
            transition: all 0.3s ease;
        }
        
        /* Desktop-specific modal sizing to accommodate taller iframe */
        @media (min-width: 769px) {
            .iframe-modal-content {
                min-height: 572px; /* 10% taller */
                padding-bottom: 20px; /* Extra padding at bottom for desktop */
            }
            
            .iframe-modal {
                padding-top: 40px; /* Adjust top padding for taller content */
            }
        }
        
        /* Enhanced hover effect */
        .iframe-modal-content:hover {
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(252, 182, 4, 0.3);
        }
        
        .iframe-container {
            width: 100%;
            flex: 1;
            overflow: hidden;
            margin-top: 0;
            position: relative;
            background-color: #111;
            border-radius: 12px;
            border: 1px solid rgba(252, 182, 4, 0.7); /* Thinner, semi-transparent border for elegance */
            box-shadow: 0 0 12px rgba(252, 182, 4, 0.2);
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            transform: translateZ(0);
            will-change: transform, box-shadow;
            pointer-events: auto; /* Explicitly enable pointer events */
            touch-action: auto; /* Enable all touch actions */
        }
        
        /* Cash App specific styling */
        .iframe-container[data-payment="Cash App"] {
            border-color: rgba(0, 214, 50, 0.7);
            box-shadow: 0 0 15px rgba(0, 214, 50, 0.25), 0 0 20px rgba(0, 0, 0, 0.2);
        }
        
        .iframe-container:hover {
            border-color: rgb(252, 182, 4);
            box-shadow: 0 0 20px rgba(252, 182, 4, 0.4);
            transform: translateY(-1px) scale(1.005);
        }
        
        /* Cash App hover effect */
        .iframe-container[data-payment="Cash App"]:hover {
            border-color: rgba(0, 214, 50, 0.8);
            box-shadow: 0 0 20px rgba(0, 214, 50, 0.4), 0 0 15px rgba(0, 0, 0, 0.3);
            transform: translateY(-1px) scale(1.005);
        }
        
        .iframe-container iframe {
            width: 100%;
            height: 100%;
            min-height: 480px;
            border: none;
            position: relative;
            z-index: 20; /* Increased z-index to ensure it's above other elements */
            background-color: transparent;
            border-radius: 6px; /* Slightly smaller than container for nesting effect */
            transition: opacity 0.3s ease, filter 0.3s ease;
            filter: contrast(1.02); /* Subtle enhancement to make content pop */
        }
        
        /* Desktop-specific iframe sizing (10% longer) */
        @media (min-width: 769px) {
            .iframe-container iframe {
                min-height: 528px; /* 10% longer than 480px base */
            }
        }
        
        .iframe-title {
            margin: 0 0 15px 0;
            color: #f8f8f8;
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: 0.6px;
            text-align: center;
            text-shadow: 0 0 12px rgba(252, 182, 4, 0.6);
            padding-bottom: 14px;
            position: relative;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
        }
        
        .iframe-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgb(252, 182, 4), transparent);
            box-shadow: 0 0 8px rgba(252, 182, 4, 0.4);
        }
        
        .iframe-close {
            position: absolute;
            top: 14px;
            right: 16px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 26px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: rgba(30, 30, 30, 0.5);
            opacity: 0.85;
            border: 1px solid rgba(252, 182, 4, 0.2);
            z-index: 99999; /* ensure button appears above iframe */
            pointer-events: auto; /* ensure it receives clicks */
        }
        
        .iframe-close:hover {
            background-color: rgba(252, 182, 4, 0.3);
            border-color: rgba(252, 182, 4, 0.6);
            transform: scale(1.05);
            opacity: 1;
            color: #fff;
            box-shadow: 0 0 10px rgba(252, 182, 4, 0.3);
        }
        
        /* Loading state */
        .iframe-loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(17, 17, 17, 0.96);
            z-index: 5;
            font-weight: 500;
            font-size: 16px;
            color: #e0e0e0;
            border-radius: 7px;
            flex-direction: column;
            border: 1px solid rgba(252, 182, 4, 0.3);
            box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
        }
        
        .loading .iframe-loading {
            display: flex;
        }
        
        .iframe-loading:before {
            content: '';
            width: 40px;
            height: 40px;
            margin-bottom: 15px;
            border-radius: 50%;
            border: 3px solid rgba(50, 50, 50, 0.4);
            border-top-color: rgb(252, 182, 4);
            box-shadow: 0 0 15px rgba(252, 182, 4, 0.5);
            animation: spin 1.2s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
        }
        
        /* Mobile loading spinner */
        .loading-spinner {
            width: 48px;
            height: 48px;
            margin-bottom: 15px;
            border-radius: 50%;
            border: 4px solid rgba(50, 50, 50, 0.3);
            border-top-color: rgb(252, 182, 4);
            box-shadow: 0 0 15px rgba(252, 182, 4, 0.4);
            animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
        }
        
        /* Cash App loading spinner */
        .iframe-container[data-payment="Cash App"] .iframe-loading:before,
        .iframe-container[data-payment="Cash App"] .loading-spinner {
            border-top-color: #00D632; /* Cash App green */
            box-shadow: 0 0 15px rgba(0, 214, 50, 0.5);
        }
        
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        /* Error state */
        .iframe-error {
            padding: 30px;
            text-align: center;
            color: #e0e0e0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            background-color: rgba(17, 17, 17, 0.97);
            border-radius: 8px;
            border: 1px solid rgba(252, 182, 4, 0.4);
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
        }
        
        .iframe-error p {
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.5;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .iframe-error:before {
            content: '!';
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(25, 25, 25, 0.8);
            color: rgb(252, 182, 4);
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 20px;
            border: 2px solid rgb(252, 182, 4);
            box-shadow: 0 0 15px rgba(252, 182, 4, 0.4);
            text-shadow: 0 0 8px rgba(252, 182, 4, 0.6);
        }
        
        .retry-button {
            background: rgb(252, 182, 4);
            color: #111;
            border: none;
            padding: 12px 28px;
            border-radius: 30px;
            cursor: pointer;
            margin-top: 15px;
            font-weight: 600;
            letter-spacing: 0.5px;
            font-size: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 12px rgba(252, 182, 4, 0.3);
        }
        
        .retry-button:hover {
            background: #e0a800;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(252, 182, 4, 0.5);
        }
        
        /* Enhanced Mobile Optimizations */
        @media (max-width: 768px) {
            .iframe-modal {
                padding-top: 0; /* Remove top padding to maximize screen space */
                align-items: center; /* Center vertically */
                height: 100%; /* Use full viewport height */
                overflow-y: hidden; /* Prevent double scroll */
            }
            
            .iframe-modal-content {
                width: 100%; /* Use full width */
                height: 100%; /* Use full height */
                max-width: 100%; /* Override max-width */
                max-height: 100%; /* Use full viewport height */
                margin: 0;
                padding: 0; /* Remove padding */
                border-radius: 0; /* Remove rounded corners for full-screen experience */
                min-height: 100%; /* Use full height */
                background: #0a0a0a; 
                border: none; /* Remove border for full-screen look */
                box-shadow: none; /* Remove shadow for clean look */
                display: flex;
                flex-direction: column;
            }
            
            .iframe-title {
                padding: 15px 50px 15px 15px; /* Add padding right for close button space */
                margin: 0; /* Remove margin */
                font-size: 18px; /* Smaller text */
                height: 50px; /* Fixed height for header */
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(10, 10, 10, 0.95);
                position: relative;
                z-index: 20;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            }
            
            .iframe-container {
                margin: 0;
                border-radius: 0; /* Remove rounded corners */
                flex: 1; /* Fill remaining space */
                min-height: 0; /* Override min-height */
                height: calc(100% - 50px); /* Full height minus header */
                border: none;
                box-shadow: none;
                overflow: hidden;
                background-color: transparent;
            }
            
            .iframe-container iframe {
                min-height: 100%; /* Use full container height */
                height: 100%;
                -webkit-overflow-scrolling: touch;
                overflow-y: auto;
                border-radius: 0;
                width: 100%;
                display: block;
                border: none;
            }
            
            /* Optimized close button for touch */
            .iframe-close {
                width: 40px; /* Larger tap target */
                height: 40px;
                line-height: 40px;
                font-size: 24px;
                top: 5px;
                right: 5px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: rgba(20, 20, 20, 0.8);
                border-radius: 50%;
                color: #ffffff;
                z-index: 30; /* Ensure it's above everything */
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            }
            
            .iframe-close:hover, .iframe-close:active {
                background-color: rgba(252, 182, 4, 0.8);
                transform: scale(1.1);
            }
            
            /* iOS fixes */
            .iframe-modal {
                -webkit-overflow-scrolling: touch;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                height: 100vh; /* Use viewport height */
                width: 100vw; /* Use viewport width */
            }
            
            /* Prevent body scrolling when modal is open */
            body.iframe-modal-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
                height: 100%;
            }
            
            /* Specific styling for Cash App iframe */
            .iframe-title[data-payment="Cash App"] {
                color: #00D632;
                text-shadow: 0 0 8px rgba(0, 214, 50, 0.3);
            }
            
            /* Enhanced loading indicator for mobile */
            .iframe-loading {
                position: absolute;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                color: #e0e0e0;
                background-color: rgba(10, 10, 10, 0.95);
                z-index: 15;
            }
            
            .iframe-loading:before {
                width: 40px;
                height: 40px;
                margin-bottom: 15px;
                border: 3px solid rgba(50, 50, 50, 0.3);
                border-top-color: rgb(252, 182, 4);
                box-shadow: 0 0 10px rgba(252, 182, 4, 0.4);
            }
            
            /* Mobile-optimized error handling */
            .iframe-error {
                padding: 20px;
                height: 100%;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
            
            .iframe-error p {
                font-size: 16px;
                line-height: 1.5;
                margin-bottom: 25px;
                max-width: 300px;
                text-align: center;
            }
            
            .retry-button {
                padding: 16px 28px; /* Larger tap target */
                font-size: 16px;
                font-weight: bold;
                min-width: 160px; /* Minimum width for easy tapping */
                border-radius: 30px;
            }
        }
        
        /* Small Mobile Devices Optimization */
        @media (max-width: 375px) {
            .iframe-title {
                font-size: 16px;
                padding: 12px 40px 12px 12px;
                height: 44px;
            }
            
            .iframe-container {
                height: calc(100% - 44px);
            }
            
            .iframe-close {
                width: 36px;
                height: 36px;
                font-size: 22px;
                top: 4px;
                right: 4px;
            }
        }
        
        /* Optimize for mobile landscape orientation */
        @media (max-width: 900px) and (orientation: landscape) {
            .iframe-modal-content {
                flex-direction: column;
            }
            
            .iframe-title {
                font-size: 16px;
                height: 38px;
                padding: 8px 40px 8px 8px;
            }
            
            .iframe-container {
                height: calc(100% - 38px);
            }
            
            .iframe-close {
                top: 3px;
                right: 3px;
                width: 32px;
                height: 32px;
                font-size: 20px;
            }
        }

/* ===== Embedded payment iframe styles (was injected by payments.js) ===== */
/* Embedded payment iframe container and iframe matching payment banner visuals */
        iframe.payment-embedded, .payment-embedded {
            display: block;
            width: 100%;
            max-width: 100%;
            border-radius: 12px;
            background: linear-gradient(145deg, #141414, #0a0a0a);
            border: 2px solid rgb(252, 182, 4);
            box-shadow: 0 10px 30px rgba(252, 182, 4, 0.18), 0 0 18px rgba(0,0,0,0.22);
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
            overflow: hidden;
        }

        iframe.payment-embedded:hover, .payment-embedded:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 44px rgba(252, 182, 4, 0.30), 0 0 28px rgba(252, 182, 4, 0.22);
        }

        /* Make sure any iframe inside a payment-embedded wrapper visually fits */
        iframe.payment-embedded, .payment-embedded iframe {
            border: none !important;
            border-radius: 10px;
            width: 100%;
            height: 100%;
            display: block;
        }

        /* Small inline embedded boxes should keep a subtle shadow */
        iframe.payment-embedded.small, .payment-embedded.small {
            border-radius: 8px;
            box-shadow: 0 6px 18px rgba(252, 182, 4, 0.12);
        }

/* ===== Payment iframe wrapper styles (was injected by payments.js) ===== */
.payment-embedded-wrapper {
            display: block;
            padding: 10px;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(20,20,20,0.8), rgba(10,10,10,0.6));
            border: 2px solid rgba(252,182,4,0.9);
            box-shadow: 0 8px 26px rgba(252,182,4,0.14), 0 0 16px rgba(0,0,0,0.22);
            transition: box-shadow 0.22s ease, transform 0.22s ease;
            margin: 8px 0;
        }

        .payment-embedded-wrapper:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 44px rgba(252,182,4,0.26), 0 0 28px rgba(252,182,4,0.18);
        }

