/*

 Theme Name:     Divi Child Theme

 Theme URI:      https://www.elegantthemes.com/gallery/divi/

 Description:    Divi Child Theme

 Author:         lobiwan512

 Author URI:     https://www.lowbeetees.com

 Template:       Divi

 Version:        1.0.0

*/

 

/* =Theme customization starts here

------------------------------------------------------- */

/* Make Divi Mobile Menu Push the Page Content Down */
@media all and (max-width: 980px){
    /* remove page container padding-top */
    .et_header_style_left #page-container,
    .et_header_style_centered #page-container,
    .et_header_style_split #page-container {
        padding-top: 0 !important;
    }
    /* change main header position from absolute to relative */
    .et_header_style_left #main-header,
    .et_header_style_centered #main-header,
    .et_header_style_split #main-header {
        position: relative;
    }
    /* align logo container properly */
    .et_header_style_left .logo_container {
        width: 50%; 
        height: 78px;
        z-index: 999;
    }
    /* remove top navigation left padding and set width to 100% */
    .et_header_style_left #et-top-navigation {
        padding-left: 0 !important;
        width: 100%;
    }
    /* align search icon to the right */
    .et_header_style_left #et_top_search {
        z-index: 9999;
        float: right;
        right: 20px;
    }
    /* set a fixed height for search form container */
    .et_header_style_left .et_search_form_container {
        height: 78px !important;
    }
    /* set the mobile nav menu width */
    .et_header_style_left #et_mobile_nav_menu {
        width: 100%;
    }
    /* align menu hamburger to the right */
    .et_header_style_left .mobile_menu_bar {
        text-align: right;
    }
    /* fix cart icon alignment */
    #et-top-navigation .et-cart-info {
        position: absolute;
        left: 50%; /* adjust to your needs */
        z-index: 1;
    }
    /* change the dropdown menu position from absolute to relative */
    .et_header_style_left .et_mobile_menu,
    .et_header_style_centered .et_mobile_menu,
    .et_header_style_split .et_mobile_menu {
        position: relative;
    }
    /* apply dropdown menu styling (optional) */
    .et_header_style_left .et_mobile_menu,
    .et_header_style_centered .et_mobile_menu,
    .et_header_style_split .et_mobile_menu {
        margin-bottom: 35px;
        border-top: 1px solid #cea0f7;
        padding: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    /* set border bottom color for menu item link (optional) */
    .et_header_style_left .et_mobile_menu li a,
    .et_header_style_centered .et_mobile_menu li a,
    .et_header_style_split .et_mobile_menu li a {
        border-bottom-color: #cea0f7;
    }
    /* positioning and styling the Select Page container */
    .et_header_style_centered .select_page,
    .et_header_style_split .select_page {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        border-radius: 5px;
        background-color: rgba(0,0,0,.05);
    }
    .et_header_style_centered .select_page { 
        padding: 5px 10px;
    }
    .et_header_style_split .select_page { 
        padding: 9px 10px;
    }
    /* set transparent bg color and min-height for .mobile_nav */
    .et_header_style_centered #main-header .mobile_nav,
    .et_header_style_split #main-header .mobile_nav {
        background-color: transparent;
        min-height: 32px;
    }
    /* decrese dropdown menu top offset */
    .et_header_style_centered .et_mobile_menu,
    .et_header_style_split .et_mobile_menu {
        top: 32px;
    }
}

span.mobile_menu_bar:before {
    color: #03e000 !important;
}
