/* =========================================================
   MK LAYOUT 2026 - B4a
   Transitional extraction from header.php.
   Values are intentionally unchanged.
   ========================================================= */

@media (min-width: 769px) {
    html body .wrapper > .main-content > .container {
        width: calc(100% - 80px) !important;
        max-width: 1480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html body .wrapper > .main-content > .container > .wrap-container {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        background: #f3f5f6 !important;
    }

    body * {
        box-sizing: border-box !important;
    }

    .wrapper,
    .container,
    .wrap-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .main-content .container,
    .main-content .wrap-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .columns {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
        overflow-x: hidden !important;
    }

    html body .wrapper > .main-content .left-part {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    html body .wrapper > .main-content .left-part .mk-left-mobile-toggle,
    html body .wrapper > .main-content .left-part .mk-left-menu-panel {
        display: none !important;
    }
}

/* =========================================================
   MK LAYOUT 2026 - B5a
   Remaining global page geometry migrated from footer.php.
   Values are intentionally unchanged.
   ========================================================= */

.empty {
    height: 20px !important;
    min-height: 20px !important;
}

@media (max-width: 768px) {
    body {
        position: relative !important;
    }

    .container,
    .wrap-container,
    section,
    .content,
    .right-part,
    .left-part {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .container,
    .wrap-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .empty {
        height: 0 !important;
        min-height: 0 !important;
    }

    .top-bg,
    .top-banner,
    .inner-banner,
    .page-banner,
    .main-bg,
    .promo-bg {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
