/* CUSTOM FIXES - Loaded last to override everything */

/* FIX 1: Payment method images - BIGGER with cover to fill space */
.wsus__single_payment img {
    border-radius: 4px !important;
    height: 120px !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

/* FIX 2: Google Drive video - Portrait mode (normal height) */
.iframe-video {
    width: 100% !important;
    height: 680px !important;
}

.video-payer .iframe-video {
    width: 100% !important;
    height: 100% !important;
}

/* FIX 3: Google Drive controls fix - Only in landscape */
@media only screen and (max-width: 767px) and (orientation: landscape) {
    
    /* Make video container fill screen in landscape */
    .video-payer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background: #000 !important;
    }
    
    /* Google Drive iframe - scale up to show controls */
    .video-payer .iframe-video[src*="drive.google.com"],
    .iframe-video[src*="drive.google.com"] {
        width: 100% !important;
        height: 200% !important;
        position: absolute !important;
        top: -50% !important;
        left: 0 !important;
        transform: scale(0.8) !important;
        transform-origin: center center !important;
    }
    
    /* Hide sidebar in landscape */
    .wsus__course_sidebar {
        display: none !important;
    }
}

/* Tablet landscape - lighter fix */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .video-payer .iframe-video[src*="drive.google.com"] {
        height: calc(100vh + 80px) !important;
        margin-top: -40px !important;
    }
}

/* Ensure portrait mode is NOT affected */
@media only screen and (max-width: 767px) and (orientation: portrait) {
    .video-payer .iframe-video {
        width: 100% !important;
        height: 300px !important;
    }
    
    .iframe-video {
        width: 100% !important;
        height: 300px !important;
    }
}

