header {
    display: block;
    width: 100%;
}

#headerWrap {
    width: 100%;
    color: var(--white);
    position: relative;
}

#zillaHeader {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 var(--side-margin);
    border-bottom: solid 2px #eee;
    /*margin-bottom: 7px;*/
    /*height: 65px;*/
}

    #zillaHeader a {
        color: inherit;
    }

#preheader {
    height: 30px;
    background-color: var(--bg-color);
    color: white;
    display: flex;
    justify-content: flex-end;
}

.quick_view #preheader,
.quick_view #zillaHeader {
    display: none;
}

#headerlogo {
    flex: 6 4 auto;
}

#headerdealerlogo {
    flex: 4 6 auto;
    padding-left: 10px;
}

    #headerdealerlogo img {
        max-width: 100%;
        max-height: 100%;
    }

#headerlogo, #headerdealerlogo {
    display: flex;
    align-items: center;
    height: 100%;
}

.headerlogo-css {
    width: auto !important;
    margin: 6px 0 0 0 !important;
}

.headersearchinput-wrap a.icon-cancel {
    display: none;
}

@media screen and (max-width: 950px) {
    #zillaHeader {
        padding: 4px var(--side-margin) 4px var(--side-margin);
    }

    #preheader {
        display: none;
    }

    #headerlogo, #headerdealerlogo {
        max-width: 100px;
    }

    #zillaHeader #headersearch {
        display: none;
    }

    #zillaHeader.search-opened #headersearchinput {
        padding-right: 30px;
    }

    .search-modal #headersearch .headersearch-internals {
        width: calc(100% - 40px);
        margin: 0;
        max-width: calc(100% - 40px);
        height: calc(100vh - 30px);
    }

        .search-modal #headersearch .headersearch-internals ul.ui-menu {
            top: 38px !important;
            bottom: 0;
            overflow-y: scroll;
            overflow-x: hidden;
            display: block !important;
            box-shadow: none !important;
            border: none !important;
            width: 100% !important;
        }

            .search-modal #headersearch .headersearch-internals ul.ui-menu li {
                border-bottom: 1px dashed var(--bg-color);
            }

                .search-modal #headersearch .headersearch-internals ul.ui-menu li a {
                    padding: 13px 10px 13px 25px;
                }
}

    #headersearch .headersearch-internals {
        display: flex;
        position: relative;
        width: 100%;
        max-width: 500px;
        /* autocomplete position fix */
        /*padding: 5px 1%;*/
        margin: 0 auto;
    }

#headersearchinput, #headersearchinput:focus {
    font-family: inherit;
    border: solid 2px var(--bg-color);
    border-radius: 3px;
    /*font-size: 13px;*/
    font-weight: 700;
    outline: none;
    width: 100%;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#minicartItems {
    position: relative;
}

body #mobile-search-switcher:before {
    font-size: 13px;
    background: gray;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    transform: scale(.98);
}

.prod-menu, #mobileAccountSettings {
    display: none;
}


@media screen and (max-width: 950px) {

    html body #minicartItems a.cart:before,
    html body #mobile-search-switcher:before {
        font-size: 18px;
        color: var(--bg-color);
        background-color: white;
        margin: 0;
    }

    body #minicartItems.no-items a.cart:before {
        background: none;
    }

    body #mobile-search-switcher:before {
        display: inline-flex;
    }

    body #mobileAccountSettings {
        display: flex;
    }

    body .header-wrapper {
        padding: 4px calc(var(--side-margin)) 4px calc(var(--side-margin));
    }

    body #zillaHeader {
        height: auto;
        display: block;
    }

    body #headersearch {
        flex-grow: 0;
        padding-right: 0;
        margin: 0;
        grid-row: 1 / span 1;
        grid-column: 2 / span 1;
    }

    html body #headerMenu {
        padding-right: 10px;
    }

    body #zillaHeader {
        margin: 0 0 5px 0;
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: var(--side-margin);
    }

    html body #compareWrap.no-items #masterCompareButton:before {
        background: var(--bg-color);
    }


    html #miniShoppingCartContainer {
        grid-row: 1 / span 1;
        align-items: center;
        padding-left: 20px;
    }

        html #miniShoppingCartContainer > * {
            margin-right: 10px;
        }

            html #miniShoppingCartContainer > *:last-child {
                margin-right: 0;
            }

    input#headersearchinput.wait, input#headersearchinput.wait:focus {
        opacity: 1;
    }

    .cart-name {
        display: none;
    }

    #preheader #tool-nav #accountSettings > a {
        color: var(--bg-color);
        margin: 0;
        padding: 0;
    }

    #mobileAccountSettings #mobileEditContentContainer,
    #mobileAccountSettings #mobileSitePreviewContainer {
        display: none;
    }
}

@media screen and (max-width: 550px) {

    html #minicartItems a.cart,
    html #compareWrap > a {
        font-size: 0;
    }

    #mobileAccountSettings > a {
        font-size: 0;
    }

        #mobileAccountSettings > a span:before {
            font-size: 18px;
            margin-top: 6px;
        }
}

@media screen and (max-width: 400px) {



    #headerMenu .prod-menu {
        display: inline-block;
    }

    #headerMenu .prod-title {
        display: none;
    }

    #headerMenu .prod-menu:before, #headerMenu .prod-menu:after {
        content: '';
        display: block;
        width: 18px;
        border-top: solid 2px;
        border-bottom: solid 2px;
        height: 4px;
    }

    #headerMenu .prod-menu:after {
        border-top: none;
        height: 4px;
    }
}

input#headersearchinput.wait, input#headersearchinput.wait:focus {
    background: white url(/images/wait.gif) no-repeat 85% 50%;
}

#headerGoSearch {
    display: inline-block;
    color: var(--bg-color);
    font-family: var(--main-font-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 108%;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    background: var(--bg-color-2);
    border-radius: var(--bold-border-radius);
    height: 38px;
    vertical-align: top;
    width: 70px;
    text-align: center;
    padding: 0;
    border: solid 2px var(--bg-color);
}

/*#headerMenu {
    margin: 0 20px;
}*/

#headerGoSearch {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    left: -2px;
    margin: 0;
}

    #headerGoSearch:hover {
        color: white;
        background-color: var(--bg-color);
    }

@media screen and (max-width: 950px) {
    body #headerGoSearch {
        width: 45px;
        order: 3;
        /*background: #fff;*/
        /*border-left: none;*/
        left: 0;
    }

        body #headerGoSearch:hover {
            color: white;
            /*background-color: var(--bg-color);*/
        }

    /*body #headerGoSearch {
        border: none;
        border-left: solid 1px var(--bg-color-2);
    }*/
}

@media screen and (min-width: 951px) {
    body #headerMenu {
        display: none;
    }

    #zillaHeader:not(.cobranded) #logo img {
        height: 53px;
        max-height: unset;
        transition: height .1s;
    }

    .header-fixed #zillaHeader:not(.cobranded) #logo img {
        height: 38px;
        max-height: unset;
        transition: height .1s;
    }

    #headerlogo, #headerdealerlogo {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header-fixed #zillaHeader {
        opacity: .98;
        height: 50px;
    }
}

#logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 0 auto;
    text-align: center;
    height: 100%;
}

    #logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        display: block;
        transition: width 100ms;
        margin: 0 auto;
    }

#headersearch .icon-search:before {
    color: var(--bg-color);
    font-size: 16px;
    position: absolute;
    left: 4px;
    top: 11px;
}

#brand {
    display: flex;
    height: 100%;
    align-self: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 1 150px;
}

#zillaHeader.cobranded #brand {
    flex-basis: 220px;
}

#zillaHeader.cobranded #headersearch {
    flex-basis: 180px;
}

@media screen and (max-width: 950px) {
    body #brand {
        grid-row: 1 / span 2;
        /*position: absolute;
        left: 0;
        top: -40px;*/
        display: flex;
        width: 100%;
        /*height: 40px;*/
    }
}

@media screen and (min-width: 980px) {
    #brand.brand-css {
        width: 365px;
    }
}

.headersearchinput-wrap {
    flex: 1 0 auto;
}

    .headersearchinput-wrap .decor {
        position: absolute;
    }

@media screen and (max-width: 950px) {
    body .headersearchinput-wrap {
        flex: 1 0 auto;
        order: 2;
    }
}

#headersearch .prod-menu:before, #headersearch .prod-menu:after {
    content: '';
    display: block;
    width: 14px;
    border-top: solid 2px;
    border-bottom: solid 2px;
    height: 2px;
}

#headersearch .prod-menu:after {
    border-top: none;
    height: 2px;
}

#miniShoppingCartContainer {
    display: flex;
    align-items: center;
    grid-row: 2 / span 1;
    justify-content: space-between;
}
