/* 
* overrides for storefront - start
*/
    
@media (min-width: 768px) {
    .woocommerce-active .site-header .site-header-cart{
        width: auto;
        float: none;
        display: flex;
        justify-content: flex-end;
    }

    .site-header{
        border-bottom: none;
        padding-top:0;
    }

    .woocommerce-active .site-header .site-branding{
        margin: 0;
        width: auto;
        float: none;
    }
}

/* search - start */
.search-form{
    margin-bottom: 0;
    position: relative;
}

input.search-field{
    border: 1px solid #b2b2b2;
    width: 18rem;
    height: 2.5rem;
    background-color: transparent;
    box-shadow: none;
    position: relative;
}

input.search-submit{
    background-image: url('../../icons/search.jpg');
    background-color: transparent;
    width: 12px;
    height: 16px;
    font-size: 0;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}
/* search - end */

/* 
* overrides for storefront - end
*/

header.header, #masthead{
    display: flex;
    flex-direction: column;
    justify-content: revert;
    position: sticky;
    top: 0;
    justify-content: space-between;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    background-color: transparent;
    margin-bottom: -9rem;
    transition: transform 500ms ease;
    pointer-events: none;
}

header.header.scrolled, #masthead.scrolled{
    transform: translateY(-100%);
}

.header__top{
    background-color: #ececec;
    padding: 1rem 0;
    pointer-events: auto;
}

.header__top__inner{
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 3rem;
}

.header__top .menu{
    list-style-type: none;
    display: flex;
    margin: 0;
    justify-content: center;
    padding: 0px 15px;
    position: relative;
    background-color: #ececec;
}

.header__top .menu .menu-item + .menu-item{
    margin-left: 2rem;
}

.header__bottom{
    padding-top: 1rem;
}

.header__bottom__inner{
    max-width: calc(var(--site-width) + 4rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    grid-template-areas: "branding navigation cta";
    padding: 0 2rem;
}

.header__branding{
    grid-area: branding;
    display: flex;
    align-items: flex-start;
    pointer-events: auto;
}

.header__branding .site-branding{
    width: auto;
    float: none;
}

.header__branding .site-branding .custom-logo,
.header__branding__mobile{
    width: auto;
    height: auto;
    max-height: revert;
    max-width: 100%;
/*    position: absolute;*/
}

.header__branding__mobile{
    display: none;
}

.header__i18n{
    grid-area: i18n;
}

.header__i18n__icon{
    display: inline-block;
}

.header__i18n__switcher{
    display: inline-block;
}

.header__search{
    grid-area: search;
    display: flex;
    justify-content: flex-end;
}

.header__search__toggle{
    background-image: url('../../icons/search.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    height: 2.5rem;
    width: 2.5rem;
    display: none;
    padding: 0;
}

.header__social .wp-block-social-links {
    margin: 0px;
    gap: 10px;
    font-size: 26px;
}

.header__cart{
    
}

.header__cart__link{
    grid-area: cart;
    display: flex;
    justify-content: flex-end;
    font-size: var(--font-size--small);
    position: relative;
}

.header__cart .menu{
    width: auto;
    position: relative;
}

.header__cart__icon{
    display: inline-block;
    width: 2rem;
    margin-right: 0.5rem;
}

.header__cart__count{
    background-color: #f90;
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.woocommerce.widget_shopping_cart{
    width: 100%;
    max-width: 90vw;
    min-width: 20rem;
    transform: translateX(-50%);
}

.header__account{
    grid-area: account;
    display: flex;
    justify-content: flex-end;
    font-size: var(--font-size--small);
    line-height: 1;
    margin-top: 0.2rem;
}

.header__account__icon{
    margin-right: 0.75rem;
    vertical-align: middle;
    width: 1.6rem;
}

.header__account__separator{
    margin: 0 0.5em;
    opacity: 0.3;
}

.header__navigation{
    grid-area: navigation;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    height: min-content;
    position: relative;
    padding: 1rem 0 2rem 0;
}

.header__cta{
    height: min-content;
    padding-top: 0.5rem;
    pointer-events: auto;
}

.header__bottom .header__cart,
.header__bottom .header__account,
.header__bottom .header__search-icon,
.header__bottom .header__i18n-icon{
    display: none;
}

.header__drawer{
    display: none;
}

/* ec - fixing account/logout lining up */
a.header__account__secondary {
    display: flex;
}

.header__account {
    align-items: center;
    position: relative;
    padding-left: 25px;
}

.header__account__icon {
    width: 1.6rem;
    position: absolute;
    left: 0;
    top: -2px;
}
/* ec - fixing account/logout lining up */

@media screen and (max-width: 1024px){
    .header__navigation .primary-navigation{
        font-size: 1.4vw;
    }

    .header__cta{
        padding-top: 1renm;
    }

    .header__cta .vc_btn3-container .vc_general.vc_btn3.vc_btn3-style-green{
        font-size: 1.4vw;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 768px){
    header.header, #masthead{
        margin-bottom: 0;
        z-index: 99999;
        pointer-events: revert;
    }

    .header__bottom{
        width: 100%;
        padding: 0;
    }

    .header__bottom__inner{
        grid-template-columns: 1fr repeat(5, min-content);
        grid-template-rows: auto auto;
        grid-template-areas:
            "branding search-icon i18n-icon cart account navigation"
            "drawer drawer drawer drawer drawer drawer ";
        align-items: center;
        position: relative;
        background-color: #fff;
        padding: 0.5rem 0;
    }

    .header__social,
    .header__search{
        display: none;
    }

    #menu-top-menu{
        position: relative;
        background-color: transparent;
    }

    .header__top{
        width: 100%;
    }

    .header__cart .menu{
        background-color: transparent;
    }

    .header__account__icon{
        margin-right: 0;
    }

    .header__navigation{
        padding: 0;
        position: revert;
        grid-area: navigation;
    }

    .header__navigation + .header__cta{
        display: none;
    }

    .header__branding{
        padding-left: 0.5rem;
    }

    .header__branding .header__branding__mobile + .custom-logo-link{
        display: none;
    }

    .header__branding .custom-logo-link img.custom-logo{
        /* arbitrary but sensible max height */
        max-height: 8rem;
    }


    .header__branding__mobile{
        display: block;
        z-index: 1;
    }

    .header__top .header__cart,
    .header__top .header__account,
    .header__top .header__i18n{
        display: none;
    }

    .header__bottom .header__cart,
    .header__bottom .header__account,
    .header__bottom .header__i18n{
        display: revert;
    }

    .header__bottom .header__cart{
        grid-area: cart;
    }

    .header__bottom .header__account{
        grid-area: account;
        margin-top: 0;
        margin-right: 0.2rem;
    }

    .header__bottom .header__search-icon,
    .header__bottom .header__i18n-icon{
        margin-right: 1rem;
        display: revert;
    }

    .header__i18n-icon{
        grid-area: i18n-icon;
        line-height: 1;
        font-size: 2rem;
        color: #585858;
    }
    .header__i18n-icon button{
        background-color: transparent;
        padding: 0;
        line-height: 1;
        color: #585858;
    }
    .header__i18n-icon svg{
        width: 2rem;
    }

    .header__bottom .header__search-icon{
        grid-area: search-icon;
        line-height: 1;
        margin-right: 2rem;
    }
    .header__search-icon button{
        background-color: transparent;
        padding: 0;
        line-height: 1;
        display: block;
    }

    .header__search-icon svg{
        width: 2rem;
        display: block;
    }
    .header__search-icon svg path{
        fill: #585858;
    }

    .header__drawer{
        grid-area: drawer;
        width: 100%;
        opacity: 0;
        background-color: red;
        transition: transform 300ms, opacity 300ms;
        transform: translateY(-100%);
        z-index: -1;
        position: absolute;
        left: 0;
        top: 0;
        padding: 1rem;
        background-color: #27bd67;
        display: revert;
    }

    .header__drawer.toggled{
        transform: translateY(0rem);
        opacity: 1;
        top: 0.5rem;
    }
    
    .header__drawer--search{

    }

    .header__drawer--search .search-field{
        padding: 1rem;
        background-color: #fff;
        width: 100%;
    }

    .header__drawer--i18n{

    }
    /* changes for menu on mobile
     * overriding storefront-fix.css in gearform-core
     
     */
    .menu-top-menu-us-currency-selector-container {
        width:auto;
        position: relative;
        text-align:right;
    }
    .toggled #menu-top-menu-us-currency-selector-1 {
        position: relative;
        width:auto;
        list-style: none;
        margin:3px 0;
       display: inline-block;
    } 
    .header__bottom .header__i18n__switcher,
    .header__bottom .header__i18n__switcher select, .wcpbc-widget-country-switcher-form, .bespoke-language {
        width: 100%;
    }
}