/**** Filtering Fix ****/
.ais-RefinementList-list input[type="checkbox"], .ais-HierarchicalMenu-list input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    width: auto;
}
.ais-RefinementList-item a, .ais-HierarchicalMenu-item a {
    position: relative;
}
.ais-RefinementList-list .ais-RefinementList-item--selected a.list-group-item:before, .ais-HierarchicalMenu-list .ais-HierarchicalMenu-item.ais-HierarchicalMenu-item--selected a.list-group-item:before {
    background-color: #555;
}
.ais-HierarchicalMenu-list .ais-HierarchicalMenu-item:not(.ais-HierarchicalMenu-item--selected) a.list-group-item:before {
    background-color: #fff;
}
.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list {
    margin-left: 0 !important;
}
.ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-item a {
    padding-left: 10px !important;
}
.ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-item a {
    padding-left: 20px !important;
}
.ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-list a.list-group-item:before {
    left: 15px;
}
.ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-list a.list-group-item:before {
    left: 25px;
}
.ais-HierarchicalMenu.ais-HierarchicalMenu-list--child ul {
    margin-bottom: 0;
}
/**** Filtering Fix ****/
/*** Price Range ***/
body .ais-Panel-body .ais-RangeSlider {
	margin: 2rem 15px !important;
}
body .ais-Panel-body .ais-RangeSlider {
	margin: 0 !important;
}
body .ais-RangeSlider .rheostat-handle {
    border: 1px solid #d3d3d3 !important;
    background: #e6e6e6 !important;
    position: absolute !important;
    z-index: 2;
    width: 20px;
    height: 20px;
    cursor: default;
    border-radius: 4px;
    top: -4px !important;
    margin-left: 0 !important;
}
body .rheostat-handle.rheostat-handle-upper {
    margin-left: -18px !important;
}
body .ais-RangeSlider .rheostat-handle:hover {
    border: 1px solid #c5c5c5 !important;
}
body .ais-RangeSlider .rheostat-progress {
	top: 0px !important;
    position: absolute;
    border: 1px solid #c5c5c5;
    color: #222;
    font-weight: bold;
    height: 13px !important;
    margin-bottom: 5px;
    background: #eee !important;
}
body .ais-RangeSlider .rheostat-marker {
	display: none;
}
body .ais-RangeSlider .rheostat-background {
    background-color: #fff;
    border: 1px solid #c5c5c5;
    height: 13px;
}
body .rheostat-tooltip {
    margin-top: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
body .ais-RangeSlider .rheostat {
    overflow: visible;
    margin-top: 15px;
    margin-bottom: 30px;
    margin-left: 10px;
    margin-right: 10px;
}
/*** Price Range ***/
.pd-search-results {
    display: none;
    width: 100%;
    z-index: 99;
    margin-top: 0px;
    position: relative;
    background-color: #fff;
}
.pd-search-results .container {
    background-color: #fff;
}
.ais-Hits-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
}
.page-header.fullwidth.pd-search-results-single {
    text-align: left;
}
.ais-SortBy-select {
    float: right;
}
.ais-ClearRefinements-button--disabled {
    display: none;
}
.pd-bottom {
    text-align: right;
    margin: 20px 0;
}
.pd-bottom .btn {
    padding: 12px 20px;
}
.pd-search-open .algolia-shadow {
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}
.pd-search-open .algolia-shadow * {
    display: none;
}
#pd-single-search-input {
    height: 44px;
}
#pd-main-searchbox .search-form {
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    position: relative;
}

.algolia-wrapper .npopup-btn-close {
    background-color: transparent;
    border: none;
    top: 0;
    right: 0;
}
#searchToggle .search-form {
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    position: relative;
    padding-right: 30px;
}
#pd-pagination {
    text-align: center;
}
.ais-Pagination-item--disabled {
    display: none !important;
}
a.algolia-toggle-filters {
    cursor: pointer;
    padding: 6px 0;
    display: block;
    color: #252525;
}
a.algolia-toggle-filters span:after {
    content: "";
    background: url(../img/filter-icon.svg) no-repeat center;
    width: 18px;
    height: 18px;
    position: absolute;
    margin-left: 6px;
}
#searchToggle.collapse, #searchToggle.collapsing {
    background: #eee;
    z-index: 999;
}
.ais-Hits-item .was-price {
    margin-left: 5px;
}
.pd-related-image {
    height: 125px;
    max-width: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto;
    margin-bottom: 10px;
}
#pd-articles-brands .pd-related-image {
    background-size: contain;
}
.pd-related-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}
.pd-related-text a {
    display: block;
    font-weight: 500;
    margin-bottom: 25px;
}
#pd-articles .ais-Hits-item, #pd-articles-brands .ais-Hits-item {
    width: 100%;
}
#pd-suggested-categories .pd-related-image {
    height: 65px;
    width: 65px;
    margin: 0;
    margin-right: 5px;
    background-size: contain;
}
#pd-suggested-categories .pd-related-title {
    margin-bottom: 0;
    text-align: left;
}
#pd-suggested-categories .pd-related-title a {
    color: #898989;
}
#pd-suggested-categories .ais-Hits-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.pd-related-title p a span {
    margin-left: 5px;
    color: #000;
}
#pd-suggested-categories .ais-Hits-list {
    margin: 0 -15px;
}
span.from-price {
    font-weight: 400 !important;
}
span.red-text .from-price {
    font-weight: 600 !important;
    color: #d9534f !important;
}
@media (max-width: 991px) {
.pd-search-results {
    margin-top: 96px;
}
.pd-algolia-close {
    display: none;    
}
.algolia-wrapper .list-group > li.filter.filter a.list-group-item:hover:before {
    background: transparent;
    border-color: #d4d4d4;
}
}
@media (max-width: 767px) {
#searchToggle .search-close-btn {
    right: 2px;
}  
.pd-search-results {
    margin-top: 91px;
}    
}
@media (max-width: 480px) {
.pd-search-results-single .search-results-search {
    padding: 0 15px;
} 
}
@media (max-width: 380px) {
.pagination > li > a, .pagination > li > span {
    width: 25px;
    height: 25px;
    line-height: 25px;
}
}
