/* Keep Divi's compact header on one row throughout its custom breakpoint. */
@media (max-width: 1370px) {
    .et_header_style_left #top-menu-nav {
        display: none;
    }

    .et_header_style_left #et-top-navigation {
        display: flex;
        align-items: center;
        gap: 8px;
        /* Divi sets the desktop logo clearance inline. Compact navigation needs none. */
        padding-left: 0 !important;
        padding-bottom: 24px;
    }

    .et_header_style_left #et-top-navigation > .et-cart-info,
    .et_header_style_left #et-top-navigation > #et_top_search:not(.et_search_opened),
    .et_header_style_left #et-top-navigation > #et_mobile_nav_menu {
        float: none;
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .et_header_style_left #et-top-navigation > .et-cart-info {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .et_header_style_left #et-top-navigation .et-cart-info span::before {
        margin-right: 0;
    }

    .et_header_style_left #et_mobile_nav_menu {
        display: block;
    }

    .et_header_style_left #main-header .et_mobile_menu {
        top: 100%;
    }

    .et_header_style_left #et_top_search {
        order: 1;
    }

    .et_header_style_left #et_mobile_nav_menu {
        order: 2;
    }

    .et_header_style_left #et-top-navigation .mobile_menu_bar {
        padding-bottom: 0;
    }

    .et_header_style_left #et_search_icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .et_header_style_left #et_search_icon::before {
        position: static;
    }
}

/* Native buttons retain Divi's icon selectors and click handlers. */
.et_header_style_left #main-header button.mobile_menu_bar_toggle,
.et_header_style_left #main-header button#et_search_icon,
.et_header_style_left #main-header button.et_close_search_field {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.et_header_style_left #main-header button#et_search_icon {
    display: block;
    width: 18px;
    height: 18px;
}

.et_header_style_left #main-header button.et_close_search_field {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 99999;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.et_header_style_left #main-header button.et_close_search_field::after {
    font-family: ETmodules;
    content: "\4d";
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-size: 32px;
    display: inline-block;
    box-sizing: border-box;
}

.et_header_style_left #main-header button:focus-visible,
.et_header_style_left #main-header .et-cart-info:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 3px;
}

@media (max-width: 1370px) {
    .et_header_style_left #main-header button#et_search_icon {
        display: flex;
        width: 32px;
        height: 32px;
    }
}
