/*--------------------------------------------------
Drive-Thru Solutions - Medium Screen Styles
Width Range: 601px - 695px
---------------------------------------------------*/

@media screen and (min-width: 601px) and (max-width: 695px) {
    
    /* ============================================
       MAIN HEADING
       ============================================ */
    
    .content-row.full > div[style*="text-align: center"][style*="padding: 0 60px"] {
        padding: 0 20px !important;
        margin-bottom: 30px !important;
    }
    
    .content-row.full h1[style*="font-size: 88px"] {
        font-size: 42px !important;
        letter-spacing: -2px !important;
        padding: 0 20px !important;
    }
    
    /* ============================================
       HERO SECTION - Stack Image Below Text
       ============================================ */
    
    .content-row.full > div[style*="display: flex"][style*="gap: 60px"] {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }
    
    .content-row.full > div[style*="display: flex"] > div[style*="flex: 1.3"] {
        flex: 1 1 100% !important;
        width: 100% !important;
        order: 1;
    }
    
    .content-row.full > div > div[style*="flex: 1.3"] p[style*="font-size: 26px"] {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    
    .content-row.full p[style*="color: #6315e5"][style*="font-size: 34px"] {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    
    .content-row.full > div[style*="display: flex"] > div[style*="flex: 0.935"] {
        flex: 1 1 100% !important;
        width: 100% !important;
        order: 2;
    }
    
    .content-row.full > div > div[style*="flex: 0.935"] img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* ============================================
       BLUE GRADIENT BOX SECTION - Stack Vertically
       ============================================ */
    
    .content-row.full[style*="margin-top: -230px"] {
        margin-top: 30px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div[style*="display: flex"][style*="gap: 0px"] {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="background: linear-gradient"] {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 25px !important;
        border-radius: 25px !important;
        box-sizing: border-box !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="background: linear-gradient"] h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="background: linear-gradient"] p {
        font-size: 18px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="background: linear-gradient"] ul li {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="padding: 80px 50px"] {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="padding: 80px 50px"] h2 {
        font-size: 24px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="padding: 80px 50px"] ul li {
        font-size: 18px !important;
    }
    
    /* ============================================
       HARDWARE PRODUCTS - 5 Items with 20px Spacing
       ============================================ */
    
    .content-row.full[style*="margin-top: -230px"] {
        margin-top: -90px !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div[style*="display: flex"][style*="gap: 40px"]:not([style*="margin-top: 40px"]) {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div[style*="display: flex"][style*="margin-top: 40px"] {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 20px !important;
        margin-top: 20px !important;
    }
    
    .hardware-card {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hardware-card[style*="flex: 0 0 calc"] {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .hardware-card > div[style*="height: 300px"] {
        height: 220px !important;
    }
    
    .hardware-card h3 {
        font-size: 24px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    
    .hardware-card p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    .content-row.full[style*="margin-top: -230px"] > div > div[style*="flex: 0 0 calc(33.333% - 27px)"]:empty {
        display: none !important;
    }
    
    /* ============================================
       RECTANGULAR IMAGE - 10px from Cloud Drive-Thru
       ============================================ */
    
    .content-row.full[style*="margin-top: -240px"] {
        margin-top: 0px !important;
        padding-bottom: 0px !important;
    }
    
    .content-row.full[style*="margin-top: -240px"] > div[style*="padding: 0 60px"] {
        padding: 0 20px !important;
    }
    
    /* ============================================
       HORIZONTAL LINE AFTER IMAGE - 20px spacing
       ============================================ */
    
    .content-row.full[style*="margin-top: -110px"] {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }
    
    .content-row.full[style*="margin-top: -110px"] > div[style*="padding: 0 60px"] {
        padding: 0 20px !important;
    }
    
    /* ============================================
       FAQ TITLE - 0px from horizontal line
       ============================================ */
    
    .content-row.full[style*="margin-top: -40px"] {
        margin-top: -20px !important;
        padding-top: 0 !important;
    }
    
    .content-row.full[style*="margin-top: -40px"] > div[style*="padding: 0 60px"] {
        padding: 0 20px !important;
    }
    
    .content-row.full[style*="margin-top: -40px"] h2 {
        font-size: 22px !important;
    }
    
    /* ============================================
       FAQ ACCORDION SECTION
       ============================================ */
    
    .content-row.full[style*="margin-top: -20px"][style*="padding-bottom: 60px"] {
        margin-top: -5px !important;
        padding-bottom: 0 !important;
    }
    
    .content-row.full[style*="margin-top: -20px"] > div[style*="padding: 0 60px"] {
        padding: 0 20px !important;
    }
    
    details[name="kds-faq"] {
        padding: 10px 0 !important;
    }
    
    details[name="kds-faq"] summary {
        font-size: 16px !important;
    }
    
    details[name="kds-faq"] div {
        font-size: 16px !important;
    }
    
    /* ============================================
       LAST FAQ - 5px to horizontal line below
       ============================================ */
    
    details[name="kds-faq"]:last-child {
        margin-bottom: 5px !important;
        padding-bottom: 0 !important;
    }
    
    .content-row.full[style*="margin-top: -50px"] {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .content-row.full[style*="margin-top: -50px"] > div[style*="padding: 0 60px"] {
        padding: 0 20px !important;
    }
    
    /* ============================================
       PAGE NAVIGATION - "Explore more Solutions"
       Fix: Allow overflow so ::before/::after text is visible
       ============================================ */
    
    #page-nav {
        overflow: visible !important;
        margin-top: 50px !important;
    }
    
    #page-nav .page-nav-caption {
        overflow: visible !important;
    }
    
    #page-nav .inner {
        overflow: visible !important;
    }
    
    /* Align "Explore" and "Solutions" with "more" */
    #page-nav .next-hero-title::before {
        left: 0 !important;
        top: -30px !important;
    }
    
    #page-nav .next-hero-title::after {
        right: 0 !important;
        top: auto !important;
        bottom: -30px !important;
    }

    /* ============================================
       FOOTER LAYOUT - 601px to 695px
       Stack Nav Links, Show Socials, Arrow Only
       ============================================ */

    /* Footer container layout */
    .clapat-footer.compact-footer {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .clapat-footer.compact-footer #footer-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 20px 0 20px !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        margin-bottom: 0 !important;
    }

    /* ----- ROW 1: Navigation Links Stacked Vertically ----- */
    .clapat-footer.compact-footer .footer-middle {
        flex: 1 1 100% !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        pointer-events: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .clapat-footer.compact-footer .footer-middle nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .clapat-footer.compact-footer .footer-middle nav a {
        font-size: 16px !important;
        text-align: center !important;
    }

    /* ----- Copyright: Same size, hide Terms/Privacy ----- */
    .clapat-footer.compact-footer .footer-middle > div[style*="font-size: 8px"] {
        visibility: hidden !important;
        font-size: 0 !important;
        text-align: center !important;
        margin-top: 5px !important;
        width: 100% !important;
        position: relative !important;
        height: 20px !important;
    }

    .clapat-footer.compact-footer .footer-middle > div[style*="font-size: 8px"]::before {
        content: "Copyright © 2026. All Rights Reserved" !important;
        visibility: visible !important;
        font-size: 16px !important;
        color: #02042a !important;
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        text-align: center !important;
    }

    /* ----- ROW 2: Social Icons (shares row with arrow) ----- */
    .clapat-footer.compact-footer .socials-wrap {
        flex: 0 0 auto !important;
        order: 2 !important;
        position: relative !important;
        top: -35px !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        left: -50px !important;
        right: auto !important;
        bottom: auto !important;
    }

    /* HIDE "Follow Us" text and share icon */
    .clapat-footer.compact-footer .socials-wrap .socials-text,
    .clapat-footer.compact-footer .socials-wrap .socials-icon {
        display: none !important;
    }

    /* Social icons: horizontal row */
    .clapat-footer.compact-footer .socials-wrap .socials {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        transform: none !important;
        text-align: center !important;
        width: auto !important;
        height: auto !important;
        line-height: normal !important;
    }

    .clapat-footer.compact-footer .socials-wrap .socials li {
        float: none !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }

    /* Disable hover animation that hides icons */
    .clapat-footer.compact-footer .socials-wrap:hover {
        transform: none !important;
    }

    .clapat-footer.compact-footer .socials-wrap:hover .socials li {
        opacity: 1 !important;
        transform: none !important;
    }

    /* ----- ROW 3: Back to Top Arrow + Social Icons on Same Row ----- */
    .clapat-footer.compact-footer #backtotop.button-wrap.left {
        flex: 0 0 auto !important;
        order: 2 !important;
        position: relative !important;
        float: none !important;
        left: -60px !important;
        right: auto !important;
        top: auto !important;
        margin: -60px 0 0 0 !important;
        padding: -60px 0 0px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* HIDE "Back to Top" text */
    .clapat-footer.compact-footer #backtotop.button-wrap.left .button-text,
    #backtotop .button-text,
    #backtotop .button-text.sticky.left {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Arrow icon - centered, shifted down 10px to align with social icons */
    .clapat-footer.compact-footer #backtotop.button-wrap.left .icon-wrap {
        float: none !important;
        position: relative !important;
        top: 20px !important;
        left: -160px !important;
        right: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
    }

    .clapat-footer.compact-footer #backtotop.button-wrap.left .button-icon {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    /* Blue arrow */
    .clapat-footer.compact-footer #backtotop.button-wrap.left .button-icon i {
        color: #601fe0 !important;
        font-size: 18px !important;
        line-height: 40px !important;
    }
    
}
