/* Responsive Theme Builder header and site-wide WordPress search. */

.tnb-ytn-mobile-menu-item {
    display: none !important;
}

.et-l--header .et_pb_button_0_tb_header {
    margin-right: 0;
}

.tnb-ytn-header-search {
    align-items: center;
    align-self: center;
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    margin-left: 10px;
    position: relative;
    right: auto;
    top: auto;
    z-index: 2;
}

.tnb-ytn-search-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.tnb-ytn-desktop-search-icon {
    background: url('../../images/ui/btn_search.png') center / 40px 40px no-repeat;
    display: block;
    height: 40px;
    width: 40px;
}

.tnb-ytn-header-search .tnb-ytn-search-trigger:hover .tnb-ytn-desktop-search-icon,
.tnb-ytn-header-search .tnb-ytn-search-trigger:focus .tnb-ytn-desktop-search-icon {
    background-image: url('../../images/ui/btn_search_o.png');
}

.tnb-ytn-search-open {
    overflow: hidden;
}

.tnb-ytn-search-overlay {
    align-items: flex-start;
    background: #2f2c2c;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transition: opacity 180ms ease;
    width: 100%;
    z-index: 1000000;
}

.tnb-ytn-search-overlay[hidden] {
    display: none !important;
}

.tnb-ytn-search-overlay.is-open {
    opacity: 1;
}

.tnb-ytn-search-dialog {
    box-sizing: border-box;
    min-height: 480px;
    padding: 90px 30px 80px;
    position: relative;
    width: 100%;
}

.tnb-ytn-search-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-family: tenagabold, Helvetica, Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    position: absolute;
    right: 10px;
    top: 4px;
}

.tnb-ytn-search-close:hover,
.tnb-ytn-search-close:focus-visible {
    color: #006ab0;
}

.tnb-ytn-search-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.tnb-ytn-search-content h2 {
    color: #fff;
    font-family: tenagabold, Helvetica, Arial, sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 35px;
    padding: 0;
    text-transform: uppercase;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form {
    background: transparent;
    box-shadow: none;
    display: block;
    margin: 0 auto;
    max-width: 800px;
    padding: 0;
    position: static;
    width: 100%;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form input {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid #006ab0;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-family: tenaga, Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    outline: 0;
    padding: 14px 20px;
    width: 100%;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form input::placeholder {
    color: #999;
    opacity: 1;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form input:focus {
    border-bottom-color: #fff;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form button[type='submit'] {
    appearance: none;
    background: #e43203;
    border: 0;
    border-radius: 0 20px;
    color: #fff;
    cursor: pointer;
    font-family: tenagabold, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: 40px;
    min-width: 200px;
    padding: 17px 28px;
    text-transform: uppercase;
}

.tnb-ytn-search-overlay .tnb-ytn-search-form button[type='submit']:hover,
.tnb-ytn-search-overlay .tnb-ytn-search-form button[type='submit']:focus-visible {
    background: #006ab0;
}

@media (max-width: 980px) {
    .et-l--header {
        z-index: 99990;
    }

    .et-l--header .et_pb_section {
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    .et-l--header .et_builder_inner_content > .et_pb_section > .et_pb_row {
        align-items: center !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        height: 88px;
        min-height: 88px;
        padding: 0 20px !important;
        position: relative;
    }

    .et-l--header .et_builder_inner_content > .et_pb_section > .et_pb_row > .et_pb_column:first-child {
        align-items: flex-start !important;
        display: flex;
        margin: 0 !important;
        width: calc(100% - 52px) !important;
    }

    .et-l--header .et_builder_inner_content > .et_pb_section > .et_pb_row > .et_pb_column:last-child {
        margin: 0 !important;
        position: static !important;
        width: 52px !important;
    }

    .et-l--header .et_pb_image_0_tb_header,
    .et-l--header .et_pb_image_0_tb_header .et_pb_image_wrap {
        display: block;
        margin: 0 !important;
        width: auto;
    }

    .et-l--header .et_pb_image_0_tb_header img {
        display: block;
        max-height: 42px;
        max-width: min(230px, calc(100vw - 105px));
        object-fit: contain;
        width: auto;
    }

    .et-l--header .et_builder_inner_content > .et_pb_section > .et_pb_row > .et_pb_column:last-child > .et_pb_row {
        display: block !important;
        height: auto;
        min-height: 0;
        padding: 0 !important;
        position: static !important;
    }

    .et-l--header .et_builder_inner_content > .et_pb_section > .et_pb_row > .et_pb_column:last-child > .et_pb_row > .et_pb_column {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .et-l--header .et_pb_button_0_tb_header_wrapper,
    .et-l--header .et_pb_button_0_tb_header,
    .et-l--header .tnb-ytn-header-search {
        display: none !important;
    }

    .et-l--header .et_pb_menu,
    .et-l--header .et_pb_menu_inner_container,
    .et-l--header .et_pb_menu__wrap,
    .et-l--header .et_mobile_nav_menu,
    .et-l--header .mobile_nav {
        margin: 0 !important;
        position: static !important;
    }

    .et-l--header .et_pb_menu__wrap {
        justify-content: flex-end !important;
        min-width: 0;
    }

    .et-l--header .et_pb_menu__menu {
        display: none !important;
    }

    .et-l--header .et_mobile_nav_menu {
        align-items: center;
        display: flex !important;
        justify-content: flex-end;
    }

    .et-l--header .mobile_menu_bar {
        align-items: center;
        cursor: pointer;
        display: flex;
        height: 40px;
        justify-content: center;
        padding: 0;
        position: fixed !important;
        right: 20px;
        top: 24px;
        width: 40px;
        z-index: 100002;
    }

    .et-l--header .mobile_menu_bar::before {
        background: #f44336;
        box-shadow: 0 -8px 0 #f44336, 0 8px 0 #f44336;
        content: '' !important;
        display: block;
        height: 3px;
        position: static;
        width: 28px;
    }

    .et-l--header .mobile_nav.opened .mobile_menu_bar {
        left: 50%;
        right: auto;
        top: 12px;
        transform: translateX(-50%);
    }

    .et-l--header .mobile_nav.opened .mobile_menu_bar::before {
        background: transparent;
        box-shadow: none;
        color: #fff;
        content: '\00d7' !important;
        font-family: Arial, sans-serif !important;
        font-size: 42px;
        font-weight: 300;
        height: auto;
        line-height: 1;
        width: auto;
    }

    .et-l--header .mobile_nav.closed .et_mobile_menu {
        display: none !important;
    }

    .et-l--header .mobile_nav.opened .et_mobile_menu {
        background: #f44336 !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: 100vh;
        left: 0 !important;
        margin: 0 !important;
        max-height: 100vh;
        min-width: 0;
        overflow-y: auto;
        padding: 60px 0 30px !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        z-index: 100001;
    }

    .et-l--header .et_mobile_menu li,
    .et-l--header .et_mobile_menu .tnb-ytn-mobile-menu-item {
        display: block !important;
        margin: 0;
        text-align: center;
    }

    .et-l--header .et_mobile_menu li a,
    .et-l--header .et_mobile_menu .tnb-ytn-mobile-search-trigger {
        background: transparent !important;
        border: 0 !important;
        color: #fff !important;
        display: block;
        font-family: tenagabold, Arial, sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        opacity: 1;
        padding: 12px 20px !important;
        text-align: center;
        text-transform: uppercase;
        width: 100%;
    }

    .et-l--header .et_mobile_menu li a:hover,
    .et-l--header .et_mobile_menu li.current-menu-item > a {
        color: #222 !important;
    }

    .et-l--header .et_mobile_menu .sub-menu {
        background: rgba(0, 0, 0, .08) !important;
        padding: 0 !important;
    }

    .et-l--header .et_mobile_menu .sub-menu a {
        font-family: tenagaregular, Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        padding: 9px 20px !important;
    }

    .et-l--header .et_mobile_menu .tnb-ytn-mobile-apply-item {
        margin-top: 8px;
    }

    .et-l--header .et_mobile_menu .tnb-ytn-mobile-search-trigger {
        cursor: pointer;
        margin: 0 auto;
    }

    .tnb-ytn-mobile-search-icon {
        background: url('../../images/ui/btn_m_search.png') center / 30px 30px no-repeat;
        display: block;
        height: 30px;
        margin: 0 auto;
        width: 30px;
    }

    .tnb-ytn-mobile-search-trigger:hover .tnb-ytn-mobile-search-icon,
    .tnb-ytn-mobile-search-trigger:focus .tnb-ytn-mobile-search-icon {
        background-image: url('../../images/ui/btn_m_search_o.png');
    }

    .tnb-ytn-search-dialog {
        align-items: center;
        display: flex;
        min-height: 400px;
        padding: 60px 20px 50px;
    }

    .tnb-ytn-search-content {
        width: 100%;
    }

    .tnb-ytn-search-content h2 {
        font-size: 40px;
        margin-bottom: 25px;
    }

    .tnb-ytn-search-overlay .tnb-ytn-search-form button[type='submit'] {
        margin-top: 30px;
        min-width: 160px;
    }

    body.admin-bar .et-l--header .mobile_menu_bar {
        top: 70px;
    }

    body.admin-bar .et-l--header .mobile_nav.opened .mobile_menu_bar {
        top: 58px;
    }

    body.admin-bar .et-l--header .mobile_nav.opened .et_mobile_menu {
        height: calc(100vh - 46px);
        max-height: calc(100vh - 46px);
        top: 46px !important;
    }
}
