/*
 * Custom code goes here.
 */

/* hide firstname and lastname alerts in checkout form */  
#customer-form input[name="firstname"]+span.form-control-comment, #customer-form input[name="lastname"]+span.form-control-comment {
    display: none;
}
/* fix for Chrome image rendering */ 
img {
 image-rendering: -webkit-optimize-contrast;
} 


/*filter  */

#left-column .wpfilterwrap > .container {
    width: 100%; padding: 0;
}

#header .wpfilterwrap {
 background: #f3f3f3;
border-bottom: 1px solid #CCC;
padding-bottom: 15px;
clear: both;
}

#header .leo-partsfilter .leo-partsfilter-submit .label-primary {
    border-radius: 4px;
}

.filter-head-title {
    font-size: 16px;
    text-transform: none;
}

.wpfilterwrap > .container > .filter-type {
    padding: 5px 0;
}

.filter-type ul.wpfilter-type {
    display: none;
}



@media (min-width: 1920px) {
    .products.products-partfilter .product-miniature.prod-box-grid {
        width: 25%;
    }
}

#main .wpfilterwrap {
    display: none;
}



@media (max-width: 1199px) {
#header .wrapper.filterbox {display: none;}

}


@media (min-width: 1200px) {
.product-add-to-cart button.btn.btn-primary.add-to-cart {
    min-width: 270px;
}
#left-column .wrapper.filterbox {display: none;}
#left-column .wrapper.filterbox .btn-group.bootstrap-select.carMake {
    width: auto;
}
}

#header .field-search .btn-group .btn-default {
    border: 1px #d9d9d9 solid;
    border-radius: 4px;
}



#header .block.leo-partsfilter {
    display: grid;
}

#header .block.leo-partsfilter .block_content {
    margin-left: 15px;
}


#header .header-nav #contact-link ul {
    margin-bottom: 0;
    display: flex;
    gap: 15px;
}

    #header .header-nav #contact-link ul i {
    vertical-align: -1px;
}


div#_mobile_contact_link ul {
    display: flex;
    gap: 10px;
    flex-flow: column;
}
div#_mobile_contact_link ul i {
    margin-right: 5px;
}

#header .filter-head-title {
        color: #d10920;
}


#header #_desktop_top_menu .top-menu a.cat-more {
    color: #d10920 !important;
    padding-top: 4px;
    text-decoration: none;
    font-weight: 600;
}

#header #_desktop_top_menu .top-menu a.cat-more:hover {
    text-decoration: underline;
}


@media (min-width: 1920px) {
    #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"]>li:nth-child(4n+1) {
        clear: none;
    }
    #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"]>li:nth-child(5n+1) {
        clear: left;
    }
        #_desktop_top_menu .sub-menu ul[data-depth="1"] > li {
        width: 17%;
    }
}


#checkout .wpfilterwrap {
    display: none;
}


#index .btn.btn-primary.view, .prod-box-grid .btn.btn-primary.view {
    display: inline-block;
        margin-top: 15px;
}


#search .wpfilterwrap {
display: none;
}

#search #wrapper .breadcrumb {
    margin-top: 20px;
}


#header #_desktop_top_menu .top-menu[data-depth="1"] > li.cat-thumb {
    min-height: 72px;
}

#header #_desktop_top_menu .top-menu[data-depth="1"] > li a[data-depth="1"] {
    white-space: normal;
}


.products.products-partfilter > .row {
    display: flex;
    flex-flow: wrap;
}


.leo-filter-wrap button.btn.dropdown-toggle.btn-default {
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.wp-align-flex .sort-by {
    padding-top: 10px;
}

.pagination.leo-filter {
    justify-content: center;
    display: flex;
}



@media (max-width: 575px) {
    .product-miniature.prod-box-grid .product-actions .btn.view {
        font-size: 13px;
        text-transform: none;
        padding: 7px 10px;
    }
}



/* faceted search mod */



.active_filters {
    background: #fff;
    padding: 12px 18px 5px 18px;
    border: 1px solid #eee;
    margin-bottom: 0px;
}
.active_filters .filter-block {
    color: #333333;
    border: 1px dotted #ccc;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 0.3125rem 0.625rem;
    display: inline-block;
    font-size: 0.6875rem;
    box-shadow: none;
}


@media (min-width: 768px) {

#search_filters {
        display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#facets_search_center #_desktop_search_filters_clear_all {
    display: none;

}

#products .hidden-sm-down #_desktop_search_filters_clear_all  {
display: inline-block;
    color: #000;
}

#main #search_filters_wrapper {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    margin: 15px 0px;
    display: inline-block;
    width: 100%;
}

#main #search_filters .facet ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
#main #search_filters .facet ul>li {
    min-width: 100%;
}

#search_filters .facet, #search_filters_brands .facet, #search_filters_suppliers .facet {
    padding: 5px 7px;
}

#search_filters .facet .facet-title, #search_filters_brands .facet .facet-title, #search_filters_suppliers .facet .facet-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

#search_filters>p.h6, .page-content.page-cms #search_filters>ul.h6 {
    font-size: 14px;
    display: none;
}

}


@media (max-width: 767px) {
#category #search_filters .facet ul li {
    border-top: 1px solid #f1f1f1;
    padding: 0.625rem;
}
#category #search_filters .facet ul {
    margin-bottom: 0;
}
#category #search_filters .facet {
    padding-top: 0;
    border-bottom: 1px solid #f1f1f1;
}
#category #search_filters {
    margin-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: 0;
    border: 1px solid #f1f1f1;
}
#category #search_filters .facet .h6 {
    margin-bottom: 0;
    padding: 1rem 0.625rem;
    display: inline-block;
}

#category #search_filter_controls {
    text-align: center;
    margin-bottom: 1rem;
}
#category #search_filter_controls button {
    margin: 0 0.5rem;
    padding: 5px;
}


}


@media (min-width: 1200px) {
    section#js-active-search-filters {
    margin-bottom: 17px;
}
 #search_filters .facet .facet-label a {white-space: normal;}
#search_filters .facet .facet-label a {max-width: 195px;}
#search_filters .facet .facet-label {    display: flex; flex-flow: wrap;}
#wrapper #search_filters .facet .facet-label .custom-checkbox, #wrapper #search_filters .facet .facet-label .custom-radio {
    top: 9px;
}

}


@media (min-width: 768px) {
#search_filters .facet ul, #search_filters_brands .facet .collapse, #search_filters_suppliers .facet .collapse {
    display: flex;
    flex-flow: wrap;
    max-height: 148px;
        padding-bottom: 9px;
    overflow-x: auto;
}
}

/* end faceted */

@media (max-width: 1199px) {
    .header-nav {height: 60px; }
    #_desktop_cart, #_desktop_user_info, .wp-nav {display: none;}
}

