/* CSS rules for main menu bobex.com */

/*
General menu wrapper
*/
#bobex-main-menu {
    background-color: var(--bobex-blue);
    padding: unset;
    margin: unset;
    z-index: 100;
}

#bobex-main-menu #langue_switcher {
    color: white;
}


#bobex-main-menu .fa-bars {
    color: white;
}

#bobex-main-menu .bobex-menu-item {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    font-size: 15px;
    font-weight: 400;
}

#bobex-main-menu .bobex-menu-item > a {
    padding: 1rem !important;
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    text-decoration: none;
    color: white !important;
}

#bobex-main-menu .bobex-menu-item:hover > a {
    background-color: #ffffff;
    color: #253342 !important;
    border: 1px solid #0000002e;
    border-bottom: none;
    box-shadow: 4px 5px 4px 0px #0003;
}

#bobex-main-menu .active > a {
    color: #ff6900 !important;
}

#bobex-main-menu .dropdown-item div:hover {
    color: black;
}

#bobex-main-menu .dropdown-item:active,
#bobex-main-menu .dropdown-item.active {
    color: var(--orangered-bg-page) !important;
    background-color: unset !important;
}

#bobex-main-menu .bobex-menu-bus-icon .cat,
#bobex-main-menu .bobex-menu-bus-icon i {
    transform: scale(.5);
}

#bobex-main-menu .bobex-menu-bus-title {
    font-size: 0.9rem;
    font-weight: 400;
}

#bobex-main-menu .offcanvas {
    background-color: var(--bobex-blue);
    color: white;
}

#bobex-main-menu .offcanvas .search-input-wrapper {
    color: var(--text-color) !important;
}

/*Media queries for screens up to 1199px. Generate layout only when offcanvas bootstrap shown*/
@media screen and (max-width: 1199px) {
    #bobex-main-menu {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #bobex-main-menu .offcanvas {
        background-color: var(--home-banner-bg);
    }

    #bobex-main-menu .offcanvas-header {
        background-color: var(--bobex-blue) !important;
        padding: 10px !important;
    }

    #bobex-main-menu #langue_switcher * {
        color: black !important;
    }

    #bobex-main-menu .nav-item .dropdown-menu {
        display: flex;
        flex-direction: column;
        background-color: unset;
        border: unset;
        border-radius: unset;
    }

    #bobex-main-menu .bobex-menu-item > a {
        color: #253342 !important;
        font-size: 1rem;
        border: unset;
    }

    #bobex-main-menu .bobex-menu-item:hover > a {
        background-color: unset;
        color: var(--orangered-bg-page) !important;
        border: unset;
        border-bottom: unset;
        box-shadow: unset;
    }

    #bobex-main-menu .bobex-menu-item:active > a,
    #bobex-main-menu .bobex-menu-item.active > a {
        color: var(--orangered-bg-page) !important;
        font-weight: bold;
    }

    #bobex-main-menu .dropdown-menu .dropdown-item:hover {
        background-color: unset;
    }

    #bobex-main-menu .dropdown-item:hover * {
        background-color: unset;
        color: var(--orangered-bg-page) !important;
    }

    #bobex-main-menu .dropdown-item:active,
    #bobex-main-menu .dropdown-item.active {
        background-color: unset;
    }

    #bobex-main-menu .dropdown-item:active span,
    #bobex-main-menu .dropdown-item.active span {
        font-weight: bold;
    }

    #bobex-main-menu .offcanvas .search-input-wrapper .search-bar-options {
        width: 100px !important;
    }
}

/*Media queries for screens from 1200px. Generate layout only when desktop display*/
@media screen and (min-width: 1200px) {
    #bobex-main-menu .navbar-nav .dropdown-menu {
        position: absolute;
    }

    #bobex-main-menu .nav-item:hover .dropdown-menu {
        display: grid;
        grid-template-columns: repeat(3, 250px);
        column-gap: 50px;
        margin-top: 2px;
    }

    #bobex-main-menu .nav-item:hover .dropdown-menu.dropdown-menu-right {
        grid-template-columns: unset !important;
        min-width: unset;
        width: 100%;
    }

    #bobex-main-menu .nav-item .bob_flags{
        top: 0px;
    }
}
#bobex-main-menu .nav-item .dropdown-menu.dropdown-menu-right a {
    padding: 1rem !important;
}

/*
Searchbar wrapper in menu
*/
#menu_search {
    height: 100%;
    display: flex;
    margin-left: 10px;
    margin-right: -10px;
}

#menu_search > form {
    margin-top: auto;
    margin-bottom: auto;
}

#menu_search input {
    padding-right: 44px;
    border-radius: 30px;
}

#menu_search .fa-search {
    left: -17%;
    color: var(--orangered-color);
}

/*
Language switcher
*/
#langue_switcher {
    position: relative;
    padding: 20px;
    display: block;
    border: 1px solid #00000000;
}

#langue_switcher:hover {
    background-color: #ffffff;
    box-shadow: 4px 5px 4px 0px #0003;
    border: 1px solid #0000002e;
}

#langue_switcher > span {
    cursor: pointer;
}

#langue_switcher:hover > span {
    color: #253342 !important;
}

#langue_switcher img {
    height: 15px;
    border: 1px solid #fff0;
    margin-right: 5px;
}

#langue_switcher:hover > #msls-switcher {
    display: flex;
    flex-direction: column;
}

#msls-switcher {
    padding: 0;
    position: absolute;
    right: -1px;
    top: 100%;
    background-color: white;
    z-index: 15;
    box-shadow: 4px 5px 4px 0px #0003;
    border-radius: 0 0 10px 10px;
    display: none;
    border: 1px solid #0000002e;
    border-top: none;
    overflow: hidden;
    width: calc(101% + 1px);
}

#msls-switcher * {
    color: black;
}

#msls-switcher li {
    width: 100%;
    text-align: center;
}

#language-switcher {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#language-switcher a {
    display: inline-block;
    padding: 10px;
    width: 100%;
}

#language-switcher a:hover {
    background-color: var(--orangered-bg-page);
    color: white;
}

@media screen and (min-width: 1200px) {
    #langue_switcher {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 1199px) {
    #langue_switcher {
        border: unset;
        padding-left: unset;
    }

    #langue_switcher > span {
        display: none;
    }

    #langue_switcher:hover {
        background-color: unset;
        box-shadow: unset;
        border: unset;
    }

    #msls-switcher {
        display: block;
        box-shadow: none;
        border: none;
        background-color: unset;
        position: relative;
        top: 0;
        border-radius: unset;
        margin-left: 5px;
    }

    #language-switcher {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}
