#algolia_instant_selector,
#algolia_instant_selector *,
#search_mini_form,
#search_mini_form * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#algolia_instant_selector:before,
#algolia_instant_selector:after,
#algolia_instant_selector *:before,
#algolia_instant_selector *:after,
#search_mini_form:before,
#search_mini_form:after,
#search_mini_form *:before,
#search_mini_form *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#search_mini_form label {
    display: none;
}

#algolia_instant_selector .row {
    margin-left: -15px;
    margin-right: -15px;
}

#algolia_instant_selector .col-md-3,
#algolia_instant_selector .col-md-4,
#algolia_instant_selector .col-md-9,
#algolia_instant_selector .col-md-12 {
    position: relative;
    min-height: 1px;
}

body.filters-opened #algolia_instant_selector .col-md-3 {
    background: white;
    inset: 0;
    overflow: auto;
    position: fixed;
    z-index: 5;
}

#instant-search-facets-container {
    border: none;

    .panel {
        border-bottom: 1px solid #e5e5e5;

        .panel-header {
            padding: 20px;

            :before {
                color: #707070;
                content: "\e90f";
                font-family: 'icomoon' !important;
                speak: none;
                font-style: normal;
                font-weight: normal;
                font-variant: normal;
                text-transform: none;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                float: right;
                font-size: 20px;
                line-height: 14px;
            }

            .name {
                word-break: break-all;
                font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
                font-size: 16px;
                font-weight: 600;
                font-style: normal;
                font-stretch: normal;
                line-height: 1;
                letter-spacing: 1px;
                color: #000000;
                text-transform: uppercase;
                cursor: pointer;
            }
        }

        .panel-header[aria-expanded="false"] {
            :before {
                content: "\e90a";
            }
        }

        .panel-body {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;

            &.hidden {
                padding-bottom: 0;
            }

            .show-more {
                -webkit-appearance: unset;
                appearance: none;
                background: none;
                border: none;
                color: #070605;
                cursor: pointer;
                letter-spacing: .03em;
                line-height: 20px;
                font-weight: 800;
                font-size: 16px;
                padding: 16px 0 0;

                &:hover {
                    color: #070605;
                }
            }
        }
    }

    & > div:last-of-type {
        .ais-Panel {
            border-bottom: none;
        }
    }

    #price-filter {
        .ais-Panel {
            border: none;
            margin-bottom: 0;

            .ais-Panel-header {
                background-color: white;
                padding: 20px;

                &:before {
                    color: #707070;
                    content: "\e90f";
                    font-family: 'icomoon' !important;
                    speak: none;
                    font-style: normal;
                    font-weight: normal;
                    font-variant: normal;
                    text-transform: none;
                    -webkit-font-smoothing: antialiased;
                    -moz-osx-font-smoothing: grayscale;
                    float: right;
                    font-size: 20px;
                    line-height: 14px;
                }

                .name {
                    word-break: break-all;
                    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
                    font-size: 16px;
                    font-weight: 600;
                    font-style: normal;
                    font-stretch: normal;
                    line-height: 1;
                    letter-spacing: 1px;
                    color: #000000;
                    text-transform: uppercase;
                    cursor: pointer;
                }

                &[aria-expanded="false"] {
                    &:before {
                        content: "\e90a";
                    }
                }
            }
        }
    }

    .refinements-state {
        border-top: 1px solid #e5e5e5;

        .panel:has(.ais-CurrentRefinements-item) {
            display: block;
        }

        .panel {
            display: none;

            .panel-header {
                :before {
                    display: none;
                }
            }

            .panel-body {
                .ais-ClearRefinements-button.action.primary {
                    background: none;
                    border: none;
                    color: #000000;
                    cursor: pointer;
                    display: inline-block;
                    font-weight: 400;
                    font-size: 14px;
                    height: auto;
                    line-height: 3.0;
                    outline: none;
                    padding: 0;
                    text-decoration: underline !important;
                    width: auto;

                    &:hover {
                        color: #006bb4;
                    }
                }

                .ais-CurrentRefinements-list {
                    display: flex;
                    flex-wrap: wrap;
                    padding: 0;
                    margin: 0;
                    list-style: none;

                    &:not(:empty) {
                        margin-bottom: 0;
                    }

                    .ais-CurrentRefinements-item {
                        padding: 0;
                        margin: 0;
                        background: transparent;
                        border: none;
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;

                        .ais-CurrentRefinements-label {
                            display: none;
                        }

                        .ais-CurrentRefinements-category {
                            background-color: white;
                            border: 1px solid #c4c4c4;
                            border-radius: 5px;
                            color: #000000;
                            font-weight: 400;
                            font-size: 14px;
                            padding: 10px 12px;
                            width: fit-content;
                            align-items: center;
                            margin: 4px;
                            display: inline-flex;

                            &:hover {
                                cursor: pointer;
                                outline: 1px solid #004c65;
                            }

                            .ais-CurrentRefinements-delete {
                                color: transparent;
                                display: inline-flex;
                                content: '';
                                width: 11px;
                                height: 11px;
                                margin-left: 10px;
                                background-image: url(../images/close-filter.svg);
                                background-repeat: no-repeat;
                            }
                        }
                    }
                }
            }
        }
    }
}

#algolia_instant_selector [data-attr="main_color"] {
    ul {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding-left: 0;

        li {
            margin: 0;

            a {
                display: block;
                height: 75px;

                &[data-value="White"] {
                    .color {
                        border: 1px solid #C4C4C4;
                    }
                }
            }

            .color {
                display: block;
                border-radius: 5px;
                width: 100%;
                height: 100%;

                &.multicolor {
                    background-repeat: no-repeat;
                    background-size: cover;
                }
            }

            a.selected {
                .color {
                    background-image: url('../images/checkmark-filter.svg');
                    background-repeat: no-repeat;
                    background-size: 30px 30px;
                    background-position: center;
                    border: none;
                }

                &[data-value="Yellow"], &[data-value="White"], &[data-value="Bianco"], &[data-value="Weiß"], &[data-value="Blanc"], &[data-value="Blanco"], &[data-value="Transparent"] {
                    .color {
                        background-image: url('../images/checkmark-filter-dark.svg');
                    }
                }

                &[data-value="Multicolor"], &[data-value="Multicolore"], &[data-value="Mehrfarbig"] {
                    .color {
                        background-image: url('../images/multicolor-checkmark.png') !important;
                        background-size: cover;
                    }
                }
            }
        }
    }
}

#algolia_instant_selector [data-attr="size_filter"] {
    ul {
        list-style: none;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 10px;
        margin: 0;
        padding: 0;

        li {
            margin: 0;

            a {
                align-items: center;
                display: flex;
                background-color: white;
                border: 1px solid #c4c4c4;
                border-radius: 5px;
                font-size: 16px;
                height: 50px;
                justify-content: center;
                padding: 5px;
                text-decoration: none;
                text-wrap: nowrap;

                &:hover {
                    background-color: #004C65;
                    color: white;
                }

                &.checked {
                    background-color: #004c65;
                    color: white;
                }
            }
        }
    }
}

#algolia_instant_selector {
    ul {
        li {
            a {
                .label {
                    .checkbox {
                        /* Add if not using autoprefixer */
                        -webkit-appearance: none;
                        appearance: none;
                        /* For iOS < 15 to remove gradient background */
                        background-color: #fff;
                        margin: 0;

                        &:before {
                            content: '';
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            border: 1px solid #c4c4c4;
                            border-radius: 5px;
                            vertical-align: middle;
                            box-sizing: border-box;
                            color: #FFFFFF;
                            font-size: 20px;
                        }

                        &:checked {
                            border-radius: 5px;
                            background-color: #004C65;
                            background-image: url('../images/checkmark-filter.svg');
                            background-repeat: no-repeat;
                            background-size: 10px 10px;
                            background-position: center;
                        }

                        &:checked:before {
                            border: none;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
    }
}

#algolia_instant_selector [data-attr="activity"],
#algolia_instant_selector [data-attr="gender"] {
    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            margin: 0;

            a {
                text-decoration: none;

                .label {
                    align-items: center;
                    display: flex;
                    gap: 15px;
                    margin: 0;

                    &:hover {
                        cursor: pointer;

                        &:not(.checked) input.checkbox {
                            outline: 1px solid #004c65;
                            border-radius: 5px;
                        }
                    }

                    &.checked {
                        color: #004c65;

                        input.checkbox {
                            background-color: #004c65;
                        }

                        .option {
                            .count {
                                color: #004c65;
                            }
                        }
                    }

                    .option {
                        margin-top: 5px;
                        font-size: 16px;

                        .count {
                            color: #7d7d7d;
                        }
                    }
                }
            }
        }
    }
}


#algolia_instant_selector [data-attr="form"],
#algolia_instant_selector [data-attr="straps"] {
    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            margin: 0;

            a {
                display: block;
                text-decoration: none;
                border-radius: 5px;
                border: 1px solid #c4c4c4;

                .label {
                    align-items: center;
                    display: flex;
                    gap: 15px;
                    margin: 0;
                    padding: 10px 8px 10px 12px;

                    &.checked {
                        background-color: #004c65;
                        color: white;

                        .option {
                            .wrapper {
                                img {
                                    filter: brightness(0) invert(1);
                                }

                                .count {
                                    color: white;
                                }
                            }
                        }
                    }

                    .checkbox.hidden {
                        display: none;
                    }

                    .option {
                        width: 100%;
                        font-size: 16px;

                        .wrapper {
                            display: flex;
                            align-items: center;

                            .name {
                                padding-left: 12px
                            }

                            .count {
                                padding: 0 4px;
                                color: #7d7d7d;
                            }

                            .tooltip {
                                margin-left: auto;
                                padding-right: 15px;
                                display: block;
                                width: 15px;
                                height: 15px;
                                background-repeat: no-repeat;
                                cursor: pointer;
                                background-image: url(../images/info.svg);

                                &.active {
                                    fill: #039ee3;
                                }
                            }
                        }

                        .tooltip_content {
                            display: none;
                            color: #333;
                            font-size: 14px;
                            margin-top: 8px;
                            padding: 0 25px;

                            .title {
                                display: none;
                            }

                            &.active {
                                display: block;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media (min-width: 992px) {
    #algolia_instant_selector [data-attr="main_color"] {
        ul {
            li {
                a {
                    height: 60px;
                }
            }
        }
    }

    #algolia_instant_selector [data-attr="form"],
    #algolia_instant_selector [data-attr="straps"] {
        ul {
            li {
                a {
                    &:hover {
                        outline: 1px solid #004c65;
                        border-radius: 5px;
                    }

                    .label {
                        &:hover {
                            cursor: pointer;
                        }

                        .option {
                            position: relative;

                            .tooltip {
                                &:hover {
                                    background-image: url(../images/info-active.svg);
                                }
                            }
                        }

                        .option:has(.tooltip:hover) > .tooltip_content {
                            display: block;
                            position: absolute;
                            top: -60px;
                            left: 100%;
                            margin-left: 10px;
                            width: 150px;
                            font-size: 10px;
                            padding: 8px;
                            background-color: #f4f4f4;
                            border: 1px solid #f4f4f4;
                            border-radius: 5px;
                            color: black;
                            z-index: 2;

                            .title {
                                display: inline;
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
        }
    }
}


#algolia_instant_selector [data-attr="innovation"] {
    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            margin: 0;

            a {
                text-decoration: none;

                .label {
                    align-items: center;
                    display: flex;
                    gap: 15px;
                    margin: 0;
                    padding: 4px 0;

                    input[type="checkbox"] {
                        top: 0;
                    }

                    &:hover {
                        cursor: pointer;

                        input.checkbox {
                            outline: 1px solid #004c65;
                            border-radius: 5px;
                        }
                    }

                    &.checked {
                        color: #004c65;

                        &:not(.checked) input.checkbox {
                            background-color: #004c65;
                        }

                        .option {
                            .count {
                                color: #004c65;
                            }
                        }
                    }

                    .option {
                        font-size: 16px;
                        width: 100%;

                        .wrapper {
                            display: flex;
                            gap: 4px;
                            align-items: center;

                            .count {
                                color: #7d7d7d;
                            }

                            .tooltip {
                                margin-left: auto;
                                padding-right: 15px;
                                display: block;
                                width: 15px;
                                height: 15px;
                                background-repeat: no-repeat;
                                cursor: pointer;
                                background-image: url(../images/info.svg);

                                &.active {
                                    fill: #039ee3;
                                }
                            }
                        }

                        .innovation_tooltip {
                            display: none;
                            color: #333;
                            font-size: 14px;
                            margin-top: 8px;

                            .title {
                                display: none;
                            }

                            &.active {
                                display: block;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media (min-width: 992px) {
    #algolia_instant_selector [data-attr="innovation"] {
        ul {
            li {
                a {
                    .label {
                        .option {
                            position: relative;

                            .tooltip {
                                &:hover {
                                    background-image: url(../images/info-active.svg);
                                }
                            }
                        }

                        .option:has(.tooltip:hover) > .innovation_tooltip {
                            display: block;
                            position: absolute;
                            top: -60px;
                            left: 100%;
                            margin-left: 10px;
                            width: 150px;
                            font-size: 10px;
                            padding: 8px;
                            background-color: #f4f4f4;
                            border: 1px solid #f4f4f4;
                            border-radius: 5px;
                            color: black;
                            z-index: 2;

                            .title {
                                display: inline;
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
        }
    }
}

#algolia_instant_selector .ais-RangeSlider {
    margin: 0 30px 60px;

    .rheostat-handle {
        background-color: #f4f4f4;
        border: 1px solid #004c65;
        width: 19px;
        height: 18px;
    }

    .rheostat-horizontal {
        margin-top: 20px;
    }

    .rheostat-tooltip {
        font-size: 16px;
        top: 40px;
    }

    .rheostat-background {
        background-color: white;
    }

    .rheostat-progress {
        height: 2px;
        background-color: #004c65;
    }
}

#instant-search-pagination-container {
    .ais-Pagination {
        display: flex;
    }

    .ais-Pagination-item {
        font-size: 1.2rem;
        line-height: 3.2rem;
        letter-spacing: normal;
        margin: 0 2px 0 0;
        display: flex;
        border: 1px solid #e5e5e5;
        width: 34px;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .ais-Pagination-item--disabled {
        display: none;
    }

    .ais-Pagination-item--page {
        color: red;
    }

    .ais-Pagination-item--nextPage {
        a {
            &:before {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                font-size: 46px;
                line-height: inherit;
                color: #7d7d7d;
                content: '\e608';
                font-family: 'icons-blank-theme';
                margin: 0;
                vertical-align: top;
                display: inline-block;
                font-weight: normal;
                overflow: hidden;
                speak: none;
                text-align: center;
            }
        }


        & > span {
            border: 0;
            clip: rect(0, 0, 0, 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px
        }
    }

    .ais-Pagination-item--previousPage {
        a {
            &:before {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                font-size: 46px;
                line-height: inherit;
                color: #7d7d7d;
                content: '\e617';
                font-family: 'icons-blank-theme';
                margin: 0;
                vertical-align: top;
                display: inline-block;
                font-weight: normal;
                overflow: hidden;
                speak: none;
                text-align: center;
            }
        }


        & > span {
            border: 0;
            clip: rect(0, 0, 0, 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px
        }
    }
}

@media (min-width: 768px) {
    #algolia_instant_selector .col-sm-6 {
        width: 50%;
        float: left;
    }
}

@media (min-width: 992px) {
    #algolia_instant_selector .col-md-3,
    #algolia_instant_selector .col-md-4,
    #algolia_instant_selector .col-md-9,
    #algolia_instant_selector .col-md-12 {
        float: left;
        padding-right: 2%;
    }

    #algolia_instant_selector .col-md-12 {
        width: 100%;
    }

    #algolia_instant_selector .col-md-9 {
        width: 75%;
    }

    #algolia_instant_selector .col-md-4 {
        width: 33.33333333%;
    }

    #algolia_instant_selector .col-md-3 {
        width: 25%;
    }
}

#algolia_instant_selector .row:before,
#algolia_instant_selector .row:after {
    content: " ";
    display: table;
}

#algolia_instant_selector .row:after {
    clear: both;
}

#algolia_instant_selector .visible {
    display: block !important;
}

#algolia_instant_selector .hidden {
    display: none;
}

@media (max-width: 767px) {
    .algolia-search-block {
        clear: both;
    }
}

#algolia_instant_selector .pull-left {
    float: left;
}

#algolia_instant_selector .pull-right {
    float: right;
}

.algolia-clearfix {
    clear: both;
}

.algolia-instant-results-wrapper {
    .algolia-instant-selector-results {
        #instant-search-results-container {
            .ais-Hits {
                text-align: left;

                .ais-Hits-item {
                    .product-item-link:hover {
                        color: unset;
                    }
                }
            }
        }

        .sorter.pull-right {
            display: flex;

            .sorter-label {
                cursor: default;
            }

            .sorts select {
                border: none;
                cursor: pointer;
                padding: 10px;
            }
        }
    }
}

#html-body .algolia-instant-results-wrapper {
    .sorter {
        padding: 0;
    }
}


/* custom css */
body.catalogsearch-result-index.page-products {
    .page-main {
        margin-top: 16px;

        .page-title-wrapper {
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: center;

            .product-counter__wrapper {
                min-height: 18px;
                font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
                font-size: 16px;
                line-height: 18.75px;

                .product-counter__count {
                    font-weight: 700;
                }

                .product-counter__label {
                    font-weight: 400;
                }
            }

            .page-title {
                margin-top: 0;
                font-size: 40px;
                font-weight: 700;
                line-height: 40px;
                letter-spacing: 1px;
                margin-bottom: 32px;
            }
        }
    }

    #algolia_instant_selector {
        .row {
            margin: 0;
        }
    }

    .algolia-infos {
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 0 10px;

        .algolia-clearfix {
            display: none;
        }
    }
}


@media (max-width: 992px) {
    body.catalogsearch-result-index.page-products {
        .panel {
            .panel-body {
                .show-more.hidden {
                    display: none !important;
                }
            }
        }

        #algolia_instant_selector .hidden {
            display: block;

            & > * {
                display: none !important;
            }

            & > .refinements-state {
                display: block !important;
                border: none;

                .panel {
                    border: none;

                    .panel-header {
                        display: none;
                    }

                    .panel-body {
                        padding: 0 0 10px;
                        display: flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        overflow-x: auto;
                        overflow-y: hidden;
                        width: unset;
                        scrollbar-width: none;

                        #clear-refinements {
                            .ais-ClearRefinements-button {
                                width: max-content;
                                border: 1px solid #c4c4c4;
                                border-radius: 5px;
                                color: #000000;
                                font-weight: 400;
                                font-size: 14px;
                                padding: 10px 12px;
                                align-items: center;
                                margin: 4px 4px 4px 0;
                                line-height: unset;
                                text-decoration: none !important;
                            }
                        }

                        #current-refinements {
                            .ais-CurrentRefinements-list {
                                display: flex;
                                flex-direction: row;
                                flex-wrap: nowrap;
                                overflow-x: auto;
                                overflow-y: hidden;
                                width: unset;
                                scrollbar-width: none;

                                .ais-CurrentRefinements-item {
                                    flex-wrap: nowrap;

                                    .ais-CurrentRefinements-category:last-child {
                                        margin-right: 0;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        #instant-search-facets-container:not(.hidden) {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: white;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            overflow: scroll;

            @supports (height: 100dvh) {
                & {
                    height: 100dvh;
                }
            }

            .filters-overlay-title {
                display: block;
                position: relative;
                font-family: 'Helvetica';
                font-size: 40px;
                font-weight: 800;
                font-style: normal;
                font-stretch: normal;
                line-height: 1;
                letter-spacing: 1px;
                padding: 19px;

                #overlay-close-filters-button {
                    display: inline-flex;
                    margin-top: 5px;
                    width: 25px;
                    height: 25px;
                    float: right;
                    background-image: url(../images/close_filter_modal.svg);
                    background-repeat: no-repeat;
                }
            }
        }

        #algolia_instant_selector {
            #open-filters-button {
                display: none;
            }
        }

        .algolia-infos {
            .sorter, .mobile-filters {
                flex: 1;
                color: #000000;
                height: 30px;
                display: flex;
                justify-content: center;
                border: 1px solid #111;
                border-radius: 5px;
                font-size: 13px;
                text-transform: uppercase;
                font-weight: 700;
                font-family: 'Oswald';
            }

            .sorter {
                line-height: 0;

                .sorter-label {
                    background-color: white;
                    position: absolute;
                    height: 100%;
                    pointer-events: none;
                }

                #algolia-sorts {
                    padding: 0 2px;
                    opacity: 0;
                    width: 100%;

                    .ais-SortBy-select {
                        height: 28px;
                    }
                }
            }

            .mobile-filters {
                #refine-toggle {
                    align-self: center;
                    margin: 0;
                    border: 0;
                    width: 100%;

                    &:before {
                        font-family: 'icomoon';
                        content: "\e911";
                        font-weight: bold;
                        padding-right: 8px;
                        line-height: 24px;
                        font-size: 16px;
                        display: inline-block;
                        vertical-align: middle;
                    }
                }
            }
        }
    }
}

@media (min-width: 992px) {
    #instant-search-facets-container {
        border: 1px solid #e5e5e5;
        border-top: none;

        &.hidden {
            display: block;
        }
    }

    body.catalogsearch-result-index.page-products {
        .page-main {
            margin-top: 48px;

            .page-title-wrapper {
                gap: 16px;

                .page-title {
                    margin-bottom: 62px;
                }
            }
        }

        #algolia_instant_selector {
            #open-filters-button {
                display: block;
            }

            .algolia-infos .mobile-filters,
            #instant-search-facets-container .filters-overlay-title {
                display: none;
            }

            #algolia-right-container {
                padding-right: 0;

                .col-md-12 {
                    padding-right: 0;
                }
            }
        }

        &.filters-closed {
            #algolia-left-container {
                display: none;
            }
        }

        &.filters-opened {
            #algolia-right-container {
                width: 100%;

                .products-grid {
                    .product-items {
                        .product-item {
                            width: calc((100% - 6%) / 4);
                        }

                        .product-item:nth-of-type(3n + 1) {
                            margin-left: 2%;
                        }

                        .product-item:nth-child(4n + 1) {
                            margin-left: 0;
                        }
                    }
                }
            }
        }

        .algolia-instant-results-wrapper {
            padding-bottom: 40px;
        }
    }
}

body.catalogsearch-result-index.page-products {
    .algolia-instant-results-wrapper {
        .tooltip-overlay.mobile.enabled {
            z-index: 999;

            .overlay-close {
                pointer-events: none;
            }
        }

        #algolia-left-container {
            #instant-search-facets-container {
                & > [data-attr] {
                    display: none;

                    &:has(
                        .panel .panel-body ul li,
                        .ais-Panel-body .ais-RangeSlider .rheostat
                    ) {
                        display: block;
                    }
                }

                #price-filter {
                    padding-bottom: 20px;

                    .ais-RangeSlider {
                        .rheostat {
                            margin-left: -8px;
                            margin-right: -8px;

                            .rheostat-background {
                                background-color: #f0f0f0;
                                height: 2px;
                            }

                            .rheostat-tooltip {
                                margin-left: 0;
                                border: 1px solid #c4c4c4;
                                border-radius: 5px;
                                padding: 0 16px;
                                font-size: 16px;

                                &.lower {
                                    left: 32px;
                                }

                                &.upper {
                                    right: -56px;
                                }
                            }
                        }
                    }
                }
            }
        }

        #algolia-right-container {
            li.product-item {
                .field-tooltip-content.tooltip-wa.active {
                    display: block;
                    position: absolute;
                    top: 50px;
                    left: 0;
                    right: 0;
                    height: fit-content;
                    z-index: 9999;
                    pointer-events: none;
                }
            }
        }
    }
}


/** no results page */
#html-body.catalogsearch-result-index {
    .page-title-wrapper {
        .page-title.noResults {
            display: none;
        }
    }

    .algolia-instant-results-wrapper,
    #no-results-container,
    .noResults-slider-wrapper {
        display: none;
    }

    &.noResults {
        .page-title-wrapper {
            .page-title.noResults.mobile {
                display: block;
                margin: 0 0 -12px;
            }
        }

        #algolia_instant_selector {
            display: none;
        }

        #no-results-container {
            display: flex;
            flex-direction: column;
            align-items: center;

            form {
                max-width: 648px;
                width: 100%;
                position: relative;
                height: 50px;

                svg {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    left: 16px;
                    width: 24px;
                    height: 24px;
                }

                input {
                    width: 100%;
                    height: 100%;
                    border: 1px solid black;
                    border-radius: 20px;
                    padding: 12px 80px 12px 54px;

                    &:focus {
                        background-color: #E6F5FC;
                    }
                }

                .submit-button {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    right: 16px;
                    width: 50px;
                    height: 36px;
                    background: #039EE3;
                    border: none;
                    border-radius: 10px;

                    svg {
                        left: 50%;
                        transform: translateY(-50%) translateX(-50%);
                    }
                }
            }

            .popular-searches {
                padding-top: 42px;
                max-width: 648px;
                width: 100%;

                .title {
                    margin: 0;
                    font-size: 14px;
                    font-weight: 700;
                    line-height: 16px;
                    text-align: left;
                }

                .list {
                    padding: 16px 0 0;
                    margin: 0;
                    list-style: none;
                    display: grid;
                    grid-template-columns: 1fr;

                    li {
                        margin: 0;
                        display: flex;
                        align-items: center;
                        position: relative;

                        svg {
                            position: absolute;
                            left: 0;
                            top: 50%;
                            transform: translateY(-50%);
                        }

                        a {
                            width: 100%;
                            padding: 10px 10px 10px 32px;
                            display: block;
                            text-transform: capitalize;

                            &:active, &:hover {
                                color: unset;
                                text-decoration: unset;
                            }
                        }
                    }
                }
            }
        }

        .noResults-slider-wrapper {
            display: block;
            padding: 20px 0 40px;
        }
    }

    &.hasResults {
        .algolia-instant-results-wrapper {
            display: block;
        }
    }
}


@media (min-width: 992px) {
    #html-body.catalogsearch-result-index {
        &.noResults {
            .page-title-wrapper {
                .page-title.noResults {
                    display: block;
                    margin: 0 0 -12px;

                    &.mobile {
                        display: none;
                    }
                }
            }

            #no-results-container {
                form {
                    height: 64px;

                    .submit-button {
                        width: 56px;
                        height: 46px;
                    }
                }

                .popular-searches {
                    margin-top: 60px;
                    border-top: 1px solid #D4D4D4;
                    padding: 40px 0 20px;

                    .list {
                        grid-template-columns: 1fr 1fr;
                    }
                }
            }

            .noResults-slider-wrapper {
                padding-bottom: 0;
            }
        }
    }
}
