/* Keep this query in sync with responsive-header.js. */
@media (width < 1440px) {
    body.tdc-header-template .td-header-template-wrap > .td-header-desktop-wrap {
        display: none !important;
    }

    body.tdc-header-template .td-header-template-wrap > .td-header-mobile-wrap {
        display: block !important;
    }
}

@media (min-width: 768px) and (width < 1440px) {
    body.tdc-header-template .td-header-mobile-wrap,
    body.tdc-header-template .td-header-mobile-wrap .tdc-zone,
    body.tdc-header-template .td-header-mobile-wrap .tdc-row,
    body.tdc-header-template .td-header-mobile-wrap .vc_row {
        width: 100%;
        max-width: none;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdc-row > .vc_row,
    body.tdc-header-template .td-header-mobile-wrap .tdc-row > .vc_row .tdc-columns {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdc-row > .vc_row {
        margin: 0 !important;
        padding: 7px 16px !important;
        background: #000 !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .vc_column {
        width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .vc_column > .wpb_wrapper,
    body.tdc-header-template .td-header-mobile-wrap .vc_column > .wpb_wrapper > .tdc-elements {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: auto !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdb_header_logo {
        padding: 4px 8px !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdb-logo-img-wrap,
    body.tdc-header-template .td-header-mobile-wrap .tdb-logo-img {
        display: block !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdb-logo-img {
        width: auto !important;
        max-width: 150px !important;
        height: auto !important;
    }

    body.tdc-header-template .td-header-mobile-wrap .tdb-logo-svg-wrap,
    body.tdc-header-template .td-header-mobile-wrap .tdb-logo-text-wrap {
        display: none !important;
    }
}

@media (min-width: 1440px) {
    body.tdc-header-template .td-header-desktop-wrap .tdc-row.stretch_row_1200:has(.td_block_list_menu):has(.tdm_block_socials) > .vc_row > .tdc-columns,
    body.tdc-header-template .td-header-desktop-wrap .tdc-row.stretch_row_1200:has(.td_block_list_menu):has(.tdm_block_socials) > .vc_row:has(> .vc_column) {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdc-row.stretch_row_1200:has(.td_block_list_menu) .vc_column:has(.td_block_list_menu, .tdm_block_socials) {
        width: auto !important;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdc-row.stretch_row_1200:has(.tdm_block_socials) .td_block_list_menu {
        padding-block: 0 !important;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdc-row.stretch_row_1400:has(.tdb_header_logo) > .vc_row {
        padding-block: 8px !important;
        margin-bottom: 0 !important;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdb_header_menu .tdb-menu {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdb_header_menu .tdb-menu > li {
        float: none;
        flex: 0 0 auto;
    }

    body.tdc-header-template .td-header-desktop-wrap .tdb_header_menu .tdb-menu > li > a,
    body.tdc-header-template .td-header-desktop-wrap .tdb_header_menu .tdb-menu > li > a span {
        white-space: nowrap !important;
    }
}
