﻿.bw-top {
    display: flex;
    flex-wrap: wrap;
}

.bw-top__features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-basis: 50%;
    order: 1;
}

.bw-top__media-container {
    display: none;
}

.bw-top__stock {
    flex-basis: 50%;
    order: 2;
}

.bw-top__client {
    display: flex;
    justify-content: center;
    flex-basis: 100%;
    background: #ffffff;
    order: 3;
}

.bw-top.bw-top--fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.bw-top__client .bw-top__logo-container:has(.bw-top__logo-image--stock) {
    display: none;
}

.bw-top__row--colored {
    background-color: #fff;
} 


.bw-top.bw-top--scrolled .bw-top__features,
.bw-top.bw-top--scrolled .bw-top__stock {
    display: none;
}

.bw-top.bw-top--scrolled .bw-top__logo-container:not(.bw-top__unique-logo-container) {
    display: none;
}

.bw-top.bw-top--scrolled .bw-top__client {
    flex-basis: 20%;
    justify-content: flex-start;
}

.bw-top.bw-top--scrolled .bw-top__logo-container:has(.bw-top__logo-image--stock) {
    display: block;
}


.bw-top__row {
    /*display: block;
    width: 100%;
    position: relative;*/
}

.bw-top__row--colored {
    background-color: #2E3641;
    color: #ffffff;
    padding: 0px 15px;
    font-family: 'Ubuntu', sans-serif;
}

.bw-top__col {
/*    display: inline-block;
    vertical-align: middle;
    width: calc(40% - 4px);*/
}

.bw-top__ad-container {
    /*width: calc(60% - 4px);*/
}

.bw-top__col--right {
    text-align: right;
}

.bw-top-menu {
    text-align: right;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bw-top-menu__image {
    width: 20px;
}

.bw-top-menu__image--email {
    width: 22px;
}

.bw-top-menu__image--map {
    width: 18px;
}

.bw-top-menu__item {
    display: inline-block;
    vertical-align: middle;
}

.bw-top__row .searchTextbox_Container {
    position: absolute;
    bottom: 18px;
    top: 3px;
    width: 250px;
    right: 50px;
    height: 30px;
    left: unset;
    border-radius: 40px;
}

.bw-top-menu__link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

/*BW rewards and Best Prices banner*/
.bw-ad {
    color: #ffffff;
    display: inline-block;
    background-repeat: no-repeat;
    text-decoration: none;
    padding-left: 30px;
    font-size: 12px;
    background-size: 20px;
    padding: 13px 0 12px 30px;
    margin: 0 15px 0 0;
    background-position: left center;
}

.bw-ad:hover {
    color: #ffffff;
}

.bw-ad--rewards {
    background-image: url('/layouts/fullwidth-core/images/icons/bw-rewards.png');
    padding: 13px 0 12px 25px;
    background-size: 16px;
}

.bw-ad--best-prices {
    background-image: url(/layouts/fullwidth-core/images/icons/discount.png);
}

/*End of BW rewards and Best Prices banner*/

/*Search icon, social icons and Language selectbox*/
.bw-top__col .flags_main_container,
.bw-top__col .icon-search,
.bw-top__col .social-icons {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
}

/*End of Search icon, social icons and Language selectbox*/

/*===== logo =====*/

.bw-top__logo-image {
    height: 32px;
}

.bw-top__logo-image--unique {
    height: unset;
    max-height: 80px;
}

.bw-top--mobile .bw-header__toggle-menu {
    display: inline-block;
}

.bw-top--mobile .mainMenu {
    display: none;
}

/*===== media queries =====*/

@media (max-width: 768px) {
    .bw-top__features {
        flex-basis: 100%;
    }

    .bw-top__ad-container {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .bw-top__stock {
        flex-basis: 100%;
    }

    .bw-top.bw-top--scrolled {
        flex-wrap:nowrap;
    }

    .bw-top.bw-top--scrolled .bw-top__stock {
        opacity: 1;
        flex-basis: 80%;
        display: flex;
        order: 3;
    }

    .bw-top.bw-top--scrolled .bw-top__client {
        order: 2;
    }

    .bw-top.bw-top--scrolled .bw-top__ad-container {
        display: none;
    }

    .bw-top.bw-top--scrolled .bw-header {
        justify-content: end;
    }

    .bw-top__logo-container:not(.bw-top__unique-logo-container) {
        margin-right: auto;
        order: 1;
    }

    .bw-top-menu__phone {
        order: 2;
    }

    .bw-top-menu__email {
        order: 3;
    }

    .bw-top-menu__address {
        order: 4;
    }

    .bw-top.scrolled .bw-top__stock .bw-header__toggle-menu {
        display: inline-block;
    }
}

@media all and (max-width: 580px) {
    .bw-top__col .social-icons {
        display: block;
        margin: 0 0 18px 0;
    }
}

@media all and (max-width: 425px) {

    .bw-top__col {
        width: 100%;
    }


    .bw-top__col--right {
        display: none;
    }

    .bw-top__row .searchTextbox_Container {
        position: absolute;
        bottom: 18px;
        top: 0px;
        width: 100%;
        right: 0px;
        line-height: 2.3;
        height: 35px;
        left: unset;
        border-radius: 0px;
    }

    .bw-ad {
        margin: 0 0 0 0;
        padding: 20px 10px;
        font-size: 12px;
        text-transform: uppercase;
    }

    .bw-ad--best-prices {
        background-image: none;
        background: #499cce;
        text-align: center;
        width: calc(50% - -3px);
        box-shadow: -2px 5px 7px #000;
    }

    .bw-ad--rewards {
        background-image: none;
        width: calc(50% - 7px);
    }

    .bw-top__row--colored {
        padding: 0 0px;
    }

    .bw-top__logo-image:not(.bw-top__logo-image--unique) {
        height: 24px;
    }

    .bw-top__logo-image--unique {
        max-width: 145px;
    }
}