/* =========================================================
   SEARCH RESULTS
========================================================= */

.pd-search-results {
    background-color: #fff;
    z-index: 99;
    display: none;
    padding-top: 15px;
}


/* =========================================================
   ALGOLIA WRAPPER
========================================================= */

.algolia-wrapper,
.pd-search-results #left-sidebar {
    display: none;
}

.algolia-wrapper,
.pd-search-results .thumb-availability {
    display: none;
}

.algolia-wrapper,
.pd-search-results .pb-2 {
    padding-bottom: 30px !important;
}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.pd-search-open .pd-algolia-overlay {
    opacity: 0;
    height: 0;
    visibility: hidden;
    position: fixed;
}


/* =========================================================
   HEADER
========================================================= */

.pd-search-open header {
    z-index: 9999999;
    position: relative;
}


/* =========================================================
   LIST RESET
========================================================= */

.algolia-wrapper ul,
.algolia-wrapper ol {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}


/* =========================================================
   HIERARCHICAL CATEGORY MENU
========================================================= */

.ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-item a {
    padding-left: 30px !important;
}

.ais-HierarchicalMenu-list--child
.ais-HierarchicalMenu-list--child
.ais-HierarchicalMenu-item a {
    padding-left: 40px !important;
}


/* =========================================================
   DISABLED CONTROLS
========================================================= */

.ais-ClearRefinements-button--disabled,
.ais-Pagination-item--disabled {
    display: none !important;
}


/* =========================================================
   FILTER LIST
========================================================= */

.algolia-wrapper .list-group-flush .list-group-item {
    border-width: 0 0 1px;
}

.ais-ClearRefinements-button {
    margin: 20px 12px;
}


/* =========================================================
   MOBILE CLOSE BUTTON
========================================================= */

.algolia-wrapper .npopup-btn-close {
    margin: 0;
    background-color: transparent;
    border: none;
    right: 0;
    top: -20px;
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.wrapper-header
.wrapper-main-header
.header-search
.input-group
.input-group-append
button {
    background-color: #fff;
}


/* =========================================================
   FILTER COLLAPSE BUTTON
========================================================= */

.ais-Panel-collapseButton {
    border: none;
    background: transparent;
    width: 100%;
    outline: none !important;
    position: absolute;
    top: 0;
    height: 100%;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.ais-Panel--collapsible .ais-Panel-body {
    display: none;
}

.ais-Panel--collapsible.ais-Panel--collapsed .ais-Panel-body {
    display: block;
}


/* =========================================================
   FILTER BORDERS
========================================================= */

.algolia-container
.list-group-flush:first-child
.list-group-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header.border-bottom-none {
    border-bottom: none;
}


/* =========================================================
   PRICE FILTER
========================================================= */

#pd-price {
    border-bottom: 1px solid #dee2e6;
}


/* =========================================================
   RANGE SLIDER
========================================================= */

.ais-Panel-body .ais-RangeSlider {
    margin: 0 !important;
}

.ais-RangeSlider .rheostat-handle {
    border: 1px solid #c5c5c5 !important;
    background: #f6f6f6 !important;
    position: absolute !important;
    z-index: 2;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    border-radius: 3px;
    top: 50% !important;
    transform: translateY(-50%);
    margin-left: 0 !important;
}

.rheostat-handle.rheostat-handle-upper {
    margin-left: -15px !important;
}

.ais-RangeSlider .rheostat-handle:hover {
    border: 1px solid #6c757d !important;
    background: #adb5bd !important;
}

.ais-RangeSlider .rheostat-progress {
    top: 0 !important;
    position: absolute;
    height: 100% !important;
    background: #adb5bd !important;
    border: 0;
    border-radius: 3px;
}

.ais-RangeSlider .rheostat-marker {
    display: none;
}

.ais-RangeSlider .rheostat-background {
    background-color: #fff;
    border: 1px solid #c5c5c5;
    border-radius: 3px;
    height: 0.8em;
}


/* =========================================================
   RANGE TOOLTIP
========================================================= */

.rheostat-tooltip {
    margin-top: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.rheostat-handle.rheostat-handle-upper .rheostat-tooltip {
    left: -10px;
}

.rheostat-tooltip span:nth-child(1) {
    display: block;
    font-size: 0.75rem !important;
}

.ais-RangeSlider .rheostat {
    overflow: visible;
    margin-top: 12px;
    margin-bottom: 40px;
    margin-left: 20px;
    margin-right: 20px;
}


/* =========================================================
   PRODUCT ROW
========================================================= */

.products-row .article {
    padding: 0 3px;
    padding-bottom: 6px !important;
}


/* =========================================================
   SEARCH PRODUCT CARDS
========================================================= */

.ais-Hits-item .form-inline.buying-options {
    justify-content: center;
}

.ais-Hits-list.products-row {
    align-items: normal !important;
}

.ais-Hits-list.products-row .ais-Hits-item {
    display: flex;
}

.ais-Hits-list.products-row
.ais-Hits-item
.thumbnail.card-body {
    display: flex;
    padding: 6px;
}


/* =========================================================
   SEARCH CARD CONTENT
========================================================= */

.ais-Hits-list.products-row
.ais-Hits-item
.thumbnail.card-body
.thumbnail-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.ais-Hits-list.products-row
.thumbnail.card-body
.card-title {
    min-height: 4.7em;
    height: auto;
}


/* =========================================================
   SEARCH IMAGE SPACING
========================================================= */

.pd-search-results .card.thumbnail .dcw-tile-image-wrap {
    padding-top: 10px;
}


/* =========================================================
   SEARCH OFFER BADGES

   Explicitly styled here so Algolia does not depend on
   stylesheet load order from the normal Neto product tiles.
========================================================= */

.pd-search-results .dcw-offer-badges {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 4px;

    margin: 4px 0 8px;

    visibility: visible !important;
    opacity: 1 !important;
}


/* Individual search badges */

.pd-search-results .dcw-offer-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 21px;

    padding: 4px 7px;

    border: 0;
    border-radius: 4px;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: .1px;

    text-transform: uppercase;

    color: #ffffff !important;

    text-decoration: none !important;

    white-space: nowrap;

    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   SEARCH BADGE COLOURS
========================================================= */


/* SALE */

.pd-search-results .dcw-offer-badge--sale {
    background-color: #d71920 !important;
}


/* CASHBACK */

.pd-search-results .dcw-offer-badge--cashback {
    background-color: #222222 !important;
}


/* BONUS */

.pd-search-results .dcw-offer-badge--bonus {
    background-color: #a16207 !important;
}


/* BUNDLE & SAVE */

.pd-search-results .dcw-offer-badge--bundle {
    background-color: #584670 !important;
}


/* NEW */

.pd-search-results .dcw-offer-badge--new {
    background-color: #2563eb !important;
}


/* CLEARANCE */

.pd-search-results .dcw-offer-badge--clearance {
    background-color: #f97316 !important;
}


/* HOT PRICE */

.pd-search-results .dcw-offer-badge--hot-price {
    background-color: #db2777 !important;
}


/* =========================================================
   DESKTOP FILTERS
========================================================= */

@media (min-width: 992px) {

    #algolia-filters {
        height: auto !important;
        display: block;
    }

}


/* =========================================================
   SEARCH GRID SPACING

   4 products per row on XL.
========================================================= */

.algolia-wrapper .col-xl-3 {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 12px !important;
}

.algolia-wrapper .col-lg-8 {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 12px !important;
}

.algolia-wrapper .col-lg-4 {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 12px !important;
}

.algolia-wrapper .col-12 {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 12px !important;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    .pd-search-results {
        padding-top: 70px;
    }

    .nav-container {
        max-width: 100% !important;
    }

    .brands-slider .slick-dots {
        overflow: hidden;
    }


    /* Search tile badges only */

    .pd-search-results .dcw-offer-badges {
        gap: 4px;
        margin-top: 4px;
        margin-bottom: 7px;
    }

    .pd-search-results .dcw-offer-badge {
        min-height: 20px;
        padding: 4px 6px;
        font-size: 9.5px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .ais-Hits-list.products-row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .algolia-wrapper .row {
        margin-left: -6px;
        margin-right: -6px;
    }


    /* Search image spacing */

    .pd-search-results .card.thumbnail .dcw-tile-image-wrap {
        padding-top: 8px;
    }


    /* Search tile badges only */

    .pd-search-results .dcw-offer-badges {
        gap: 3px;
        margin-top: 3px;
        margin-bottom: 7px;
    }

    .pd-search-results .dcw-offer-badge {
        min-height: 19px;
        padding: 3px 5px;
        border-radius: 4px;
        font-size: 9px;
    }

}