﻿/**
 * Mobile header Kosmen â€” load sau custom.css
 * Logo trÃ¡i | hamburger pháº£i; danh sÃ¡ch menu chá»‰ hiá»‡n khi báº¥m
 */
@media (max-width: 767.98px), (max-device-width: 767.98px) {
    html body nav#menusite.second-nav,
    html body #menusite {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body #menusite .container,
    html body #menusite .row,
    html body #menusite .bg {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body .site-sticky-top {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "tn-head tn-menu";
        -ms-flex-align: center;
        align-items: center;
        gap: 0 10px;
        min-height: 56px;
        padding: 8px 12px !important;
        width: 100% !important;
        box-sizing: border-box;
        background: #ffffff !important;
        border-bottom: 1px solid #e8e8e8;
        position: relative !important;
        z-index: 1040;
        overflow: visible !important;
    }

    html body .site-sticky-top > .section-header {
        grid-area: tn-head;
        min-width: 0;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    html body .site-sticky-top > .section-nav {
        grid-area: tn-menu;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    html body .site-sticky-top > .section-header > .wraper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    html body #header.row,
    html body #header {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    html body #header > .logo {
        -ms-flex: 0 0 auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        text-align: left !important;
        padding: 0 12px 0 0 !important;
        -ms-flex-order: 1 !important;
        order: 1 !important;
        float: none !important;
    }

    html body #header > .head-main:empty {
        display: none !important;
    }

    html body #header > .header-user-area {
        -ms-flex: 0 0 auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        -ms-flex-order: 2 !important;
        order: 2 !important;
        padding: 0 0 0 8px !important;
        margin-left: 0 !important;
        float: none !important;
    }

    html body #header > .head-main {
        -ms-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        -ms-flex-order: 3 !important;
        order: 3 !important;
        padding: 0 0 0 8px !important;
        margin-left: 0 !important;
        float: none !important;
    }

    html body #header > .logo img {
        max-width: 170px;
        max-height: 40px;
        width: auto;
        height: auto;
    }

    /* Chá»‰ nÃºt hamburger trong luá»“ng header â€” KHÃ”NG flex cáº£ nav (trÃ¡nh list luÃ´n hiá»‡n) */
    html body #menusite .tn-global-menu {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    html body #menusite .tn-global-menu .tn-menu-header,
    html body #menusite .tn-global-menu .navbar-header {
        display: block !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: right;
    }

    html body #menusite .tn-global-menu .tn-menu-toggle {
        display: -ms-inline-flexbox !important;
        display: inline-flex !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
        position: static !important;
        left: auto !important;
        margin: 0 !important;
        padding: 8px 6px !important;
        min-width: 44px;
        min-height: 44px;
        border: none !important;
        background: transparent !important;
        float: none !important;
    }

    html body #menusite .tn-global-menu .tn-menu-toggle .icon-bar {
        display: block !important;
        float: none !important;
        width: 26px !important;
        height: 2px !important;
        margin: 0 !important;
        background-color: #1a1a1a !important;
    }

    html body #menusite .tn-global-menu .tn-menu-toggle .icon-bar + .icon-bar {
        margin-top: 8px !important;
    }

    html body #menusite .tn-global-menu .header-nav-inner.collapse:not(.in),
    html body #menusite .tn-global-menu .tn-menu-collapse.collapse:not(.in) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    html body #menusite .tn-global-menu .header-nav-inner.collapse.in,
    html body #menusite .tn-global-menu .tn-menu-collapse.collapse.in {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-direction: column;
        flex-direction: column;
        visibility: visible !important;
        height: auto !important;
        overflow-x: hidden;
        overflow-y: auto;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        z-index: 1041;
        background: #ffffff !important;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 56px);
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    html body #menusite .tn-global-menu .header-nav-item {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #eeeeee;
    }

    html body #menusite .tn-global-menu .nav-item-cta {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100% !important;
        min-height: 44px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    html body #menusite .tn-global-menu .nav-item-cta > a {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-align: center;
        align-items: center;
        padding: 12px 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #111111 !important;
    }
}
