/**
 * we have to add this because magento default style applies `display: inline-block`
 * on button and other tags, which overrides the HTML5 standard [hidden] attribute
 */
[hidden] {
    display: none !important;
}

#refine-toggle-device {
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #D3D4D8;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    color: #333333;
    line-height: 18px;
}

/* infos */
.algolia-infos {
    padding: 6px 10px;
    color: #aaa;
    text-align: center;
    background: #f4f4f4;
    font-size: 12px;
    clear: both;
    line-height: 32px;
}

/* SearchBox */
.ais-SearchBox {
    margin-bottom: 1em;
}

.ais-SearchBox-submit {
    display: none;
}

.ais-SearchBox-form {
    position: relative;
}

.ais-SearchBox-reset {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

button.ais-SearchBox-reset {
    box-shadow: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background: transparent;
}

button.ais-SearchBox-reset:focus,
button.ais-SearchBox-reset:active,
button.ais-SearchBox-reset:hover {
    border: 0;
}

input.ais-SearchBox-input {
    background-color: #F4F4F5 !important;
    border-radius: 6px !important;
    font-family: 'Roboto';
    padding-left: 44px !important;
    line-height: 18px !important;
    color: #91929D !important;
}

.ais-SearchBox-reset,
input.ais-SearchBox-input {
    height: 32px;
}

/* Hits & InfiniteHits */
.ais-InfiniteHits,
.ais-Hits {
    text-align: center;
}

.ais-InfiniteHits--empty,
.ais-Hits--empty {
    margin: 40px 0;
    color: #636363;
    font-size: 16px;
    font-weight: bold;
}

.ais-InfiniteHits--empty q:before,
.ais-InfiniteHits--empty q:after,
.ais-Hits--empty q:before,
.ais-Hits--empty q:after {
    content: '"';
}

.ais-InfiniteHits-item a:hover,
.ais-Hits-item a:hover {
    color: #666666;
    text-decoration: none;
}

.ais-InfiniteHits-list .no-results .clear-button,
.ais-Hits-list .no-results .clear-button {
    cursor: pointer;
}

.ais-InfiniteHits-list .no-results .popular-searches,
.ais-Hits-list .no-results .popular-searches {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 30px;
}

.ais-InfiniteHits-item .result-wrapper,
.ais-Hits-item .result-wrapper {
    padding: 25px 0;
}

.ais-InfiniteHits-list::after,
.ais-Hits-list::after {
    content: ' ';
    clear: both;
    display: block;
}

.ais-InfiniteHits-loadMore {
    background: #f4f4f4;
    border-color: transparent;
    color: #666666;
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.ais-InfiniteHits-loadPrevious--disabled,
.ais-InfiniteHits-loadMore--disabled {
    display: none !important;
}

.al-product-listing #instant-search-results-container .ais-Hits .ais-Hits-list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}

.al-product-listing #instant-search-results-container .ais-Hits .ais-Hits-list li {
    width: 100%;
    margin: 0;
}

.result-wrapper .tocart {
    background: #f4f4f4;
    border-color: transparent;
    color: #666666;
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    margin-top: 10px;
}

.result-wrapper .price {
    text-align: center;
    font-size: 1.2em;
    color: #54A5CD;
}

.result-wrapper .before_special {
    color: #aaaaaa;
    text-decoration: line-through;
    font-size: 12px;
}

/* .result-wrapper .text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
} */

/* HierarchicalMenu */
.ais-HierarchicalMenu-item {
    margin: 0;
    line-height: 1.8em;
}

.ais-HierarchicalMenu-link--selected {
    font-weight: bold;
}

.ais-HierarchicalMenu-link--selected .cross-circle {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: url("data:image/svg+xml;utf8,<svg width='34' height='34' viewBox='0 0 34 34' xmlns='http://www.w3.org/2000/svg'><title>testvg</title><g fill='%23000' fill-rule='evenodd'><path d='M17.163 0C7.95 0 .41 7.578.353 16.893c-.03 4.542 1.693 8.82 4.847 12.053 3.156 3.23 7.367 5.026 11.857 5.054h.11c9.21 0 16.75-7.578 16.81-16.893C34.035 7.735 26.54.06 17.163 0zm.015 30.842v1.08l-.09-1.08c-3.656-.023-7.085-1.485-9.654-4.115-2.57-2.63-3.97-6.116-3.948-9.814C3.533 9.33 9.673 3.158 17.262 3.158c7.548.048 13.65 6.297 13.605 13.93-.05 7.585-6.19 13.754-13.69 13.754z'/><path d='M22.362 10.23l-5.186 5.245-5.186-5.244c-.417-.42-1.092-.42-1.51 0-.416.422-.416 1.105 0 1.526L15.668 17l-5.186 5.244c-.416.42-.416 1.104 0 1.525.21.21.483.316.755.316.273 0 .546-.106.755-.317l5.186-5.245 5.186 5.244c.208.21.482.316.754.316.273 0 .546-.106.755-.317.417-.422.417-1.105 0-1.526L18.685 17l5.187-5.244c.417-.42.417-1.104 0-1.525-.416-.42-1.09-.42-1.508 0z'/></g></svg>") no-repeat center center / contain;
    opacity: 0;
}

.ais-HierarchicalMenu-link--selected:hover .cross-circle {
    opacity: 1;
}

.ais-HierarchicalMenu-count::before {
    content: '('
}

.ais-HierarchicalMenu-count::after {
    content: ')'
}

/* RefinementList */

/* .ais-RefinementList-searchBox .ais-SearchBox-input[disabled] {
    display: none;
} */

.ais-RefinementList-count::before {
    content: '('
}

.ais-RefinementList-count::after {
    content: ')'
}

/* Panel */
.ais-Panel {
    margin: 4px 0;
    position: relative;
}

.ais-Panel-header {
    background-color: #efefef;
    padding: 7px;
}

.ais-Panel-body {
    padding: 4px 7px;
}

/* RangeSlider */
.ais-RangeSlider {
    margin: 30px 20px;
}

.ais-RangeSlider .rheostat-background {
    border: 0;
    background-color: #efefef;
}

.ais-RangeSlider .rheostat-progress {
    background-color: #11c1ea;
}

/* filter checkbox */
.al-product-listing .ais-Panel .ais-RefinementList .ais-RefinementList-label {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.al-product-listing .ais-Panel .ais-RefinementList .ais-RefinementList-label input[type=checkbox] {
    position: relative;
    border: 1px solid #D3D4D8;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    line-height: 0;
    margin: -7px 7px 0 0;
    outline: 0;
    padding: 0 !important;
    vertical-align: text-top;
    height: 18px;
    width: 18px;
    -webkit-appearance: none;
    opacity: .5;
}

.al-product-listing .ais-Panel .ais-RefinementList .ais-RefinementList-label input[type=checkbox]:checked {
    background-color: #11c1ea;
    opacity: 1;
    border: 1px solid #11c1ea;
}

.al-product-listing .ais-Panel .ais-RefinementList .ais-RefinementList-label input[type=checkbox]:before {
    content: '';
    position: absolute;
    right: 50%;
    top: 50%;
    width: 6px;
    height: 12px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    margin: -1px -1px 0 -1px;
    transform: rotate(45deg) translate(-50%, -50%);
    z-index: 2;
}

/* Pagination */
.ais-Pagination .ais-Pagination-list .ais-Pagination-link {
    font-family: 'Mulish';
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #808080;
}

.ais-Pagination .ais-Pagination-list {
    gap: 9px;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item {
    padding: 0;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--selected {
    background: #11C1EA;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item .ais-Pagination-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--nextPage .ais-Pagination-link,
.ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage .ais-Pagination-link {
    width: fit-content !important;
    position: relative;
    padding: 0 25px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 10;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--nextPage,
.ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage {
    width: fit-content !important;
    position: relative;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--nextPage::after,
.ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage::after {
    content: '';
    background-image: url(../images/blue-chevron-right.svg);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    right: 0px;
    background-size: 100% 100%;
    width: 16px;
    height: 10px;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage::after {
    background-image: url(../images/blue-chevron-left.svg);
    right: auto;
    left: 0px;
}

.ais-Pagination .ais-Pagination-list .ais-Pagination-item--selected .ais-Pagination-link {
    color: #FFFFFF;
}

.ais-Pagination-list {
    margin: 1em 0;
    justify-content: center;
}

.ais-Pagination-item {
    padding: 1em;
    margin-bottom: 0rem;
}

.ais-Pagination-item--selected {
    color: black;
    font-weight: bold;
}

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

/* CurrentRefinements */
/* .ais-CurrentRefinements-list:not(:empty) {
    margin-bottom: 10px;
} */
.ais-CurrentRefinements-item {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 12px;
    color: #23263B;
    border-radius: 6px;
    border: solid 1px #D3D4D8;
    background-color: #f4f4f5;
    max-width: 100%;
    white-space: nowrap;
    padding: 8px;
    margin-right: 0.4em;
    display: flex;
    align-items: center;
}

.ais-CurrentRefinements-label {
    font-weight: bold;
}

.ais-CurrentRefinements-category {
    margin: 0 0.5em;
    display: flex;
    align-items: center;
}

.ais-CurrentRefinements-list {
    display: flex;
    flex-wrap: wrap;
}

.ais-CurrentRefinements-categoryLabel {
}

button.ais-CurrentRefinements-delete {
    line-height: inherit;
    box-shadow: none;
    margin-left: 12px;
}

button.ais-CurrentRefinements-delete:hover,
button.ais-CurrentRefinements-delete:active,
button.ais-CurrentRefinements-delete:focus {
    box-shadow: none;
    background: none;
    border: none;
}

/* CurrentRefinements */
/* .ais-ClearRefinements-button {
    width: 100%;
    margin-bottom: 15px !important;
    font-family: 'Roboto' !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 140% !important;
    color: #11C1EA !important;
    background: none !important;
    border: none !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
} */
.ais-ClearRefinements-button:focus-visible,
.ais-ClearRefinements-button:hover {
    outline: none;
    background: transparent !important;
}

.ais-ClearRefinements-button--disabled {
    display: none !important;
}

.no-results {
    padding: 3em 0;
    text-align: center;
}

.ais-SearchBox-form .back-arrow::after,
#instant-search-bar .ais-SearchBox-form::after {
    content: '';
    background-image: url(../images/filter-serch.svg);
    background-repeat: no-repeat;
    position: absolute;
    width: 20px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: left center;
}

.ais-Panel-body {
    display: none;
    transition: all .7s ease-out;
}

.ais-Panel .ais-Panel-body input:disabled,
.ais-Panel .ais-Panel-body input:disabled ~ .back-arrow::after {
    display: none;
}

.swatch-img-filter-cst .swatch_filter_images {
    width: 100%;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
    grid-template-columns: auto auto auto auto auto;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .swatch-filters-pair {
    padding: 10px !important;
    background: #f8f8f8;
    display: block;
    outline: none !important;
    text-align: center;
    border-radius: 10px;
    height: 100%;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .swatch-filters-pair .facet-value {
    font-family: "Muli";
    font-weight: 300;
    color: #333;
    text-align: center;
    margin-top: 10px;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .swatch-filters-pair .location-image {
    border-radius: 10px;
    border: 1px solid transparent;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .swatch-filters-pair .location-image:hover {
    border: 1px solid #55c1ea;
    cursor: pointer;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .ais-RefinementList-item {
    margin: 0;
}

.swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .ais-RefinementList-item > div {
    height: 100%;
}

@media (max-width: 1200px) {
    .al-product-listing #instant-search-results-container .ais-Hits .ais-Hits-list {
        /* grid-template-columns: auto auto auto; */
        grid-template-columns: repeat(3, 1fr);
    }

    .swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list {
        grid-template-columns: auto auto auto auto;
    }
}

@media (max-width: 767px) {
    .ais-Panel-header.active + .ais-Panel-body {
        display: block;
        transition: all .7s ease-out;
    }

    .ais-Panel {
        border: none;
        margin-bottom: 0;
    }

    .ais-Panel-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-image: url('../images/icon-plus.svg');
        background-repeat: no-repeat;
        background-size: 17px 17px;
        background-position: center right;
        background-origin: content-box;
        transition: all .2s ease-in-out;
        background-color: transparent;
        padding: 0;
    }

    .ais-Panel-header.active {
        background-image: url('../images/icon-minus.svg');
    }

    .ais-Panel-header .name {
        font-family: "Stag Sans Web";
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
        color: #000000;
        padding: 10px 25px 10px 0;
        width: 100%;
    }

    .ais-Panel-body .ais-RefinementList.active,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement {
        position: fixed;
        width: 80%;
        top: 0;
        right: 0;
        background: #fff;
        height: calc(100vh - 70px);
        z-index: 12;
        bottom: 0;
        overflow: auto;
    }

    .ais-Panel-body .ais-RefinementList.active .ais-RefinementList-searchBox,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-RefinementList-searchBox {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .ais-Panel-body .ais-RefinementList.active .ais-SearchBox-input,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-SearchBox-input {
        margin: 0;
    }

    .ais-Panel-body .ais-RefinementList.active .ais-RefinementList-list,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-RefinementList-list,
    .ais-Panel-body .ais-RefinementList.active .ais-RefinementList-noResults,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-RefinementList-noResults {
        padding: 16px;
    }

    .ais-Panel-body .ais-RefinementList.active .ais-RefinementList-list .ais-RefinementList-item--selected,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-RefinementList-list .ais-RefinementList-item--selected,
    .ais-Panel-body .ais-RefinementList.active .ais-RefinementList-noResults .ais-RefinementList-item--selected,
    .ais-Panel-body .ais-RefinementList.ais-RefinementList--noRefinement .ais-RefinementList-noResults .ais-RefinementList-item--selected {
        padding-top: 40px;
    }

    .ais-RefinementList.active .back-arrow,
    .ais-RefinementList.ais-RefinementList--noRefinement .back-arrow {
        width: 30px;
        height: 30px;
        background-color: #F4F4F5;
        position: absolute;
        top: 6px;
        z-index: 10;
        left: 8px;
        background-image: url(../images/icon-arrow-left.svg);
        background-repeat: no-repeat;
        background-position: center;
    }

    .ais-RefinementList.active .back-arrow::after,
    .ais-RefinementList.ais-RefinementList--noRefinement .back-arrow::after {
        display: none;
    }

    .mobile-filter-footer {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 16px 24px !important;
        background: #FFFFFF;
        box-shadow: 0px 12px 32px rgba(35, 38, 59, 0.25);
        order: 3;
        margin-top: auto;
        position: sticky;
        bottom: 0;
        z-index: 13;
        justify-content: center;
    }

    .mobile-filter-footer #clear-refinements {
        width: 50%;
    }

    .mobile-filter-footer .ais-ClearRefinements-button {
        border-radius: 8px;
        padding: 9px;
        font-family: 'Roboto';
        font-weight: 400;
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 1px;
        background: #FFFFFF;
        border: 1px solid #23263B !important;
        color: #11C1EA !important;
        width: 100%;
    }

    .mobile-filter-footer button {
        border-radius: 8px;
        padding: 9px 17px;
        font-family: 'Roboto';
        font-weight: 400;
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 1px;
        width: 50%;
    }

    .mobile-filter-footer button:focus-visible {
        outline: none;
    }

    .mobile-filter-footer .btn-clear-filter {
        background: #FFFFFF;
        border: 1px solid #23263B;
        color: #11C1EA;
    }

    .mobile-filter-footer .btn-see-product {
        border: 1px solid transparent;
        background-color: #11C1EA;
        color: #FFFFFF;
    }

    .al-product-listing #instant-search-results-container .ais-Hits .ais-Hits-list {
        /* grid-template-columns: auto auto; */
        gap: 16px;
        grid-template-columns: repeat(2,minmax(0, 1fr));
    }

    .ais-Pagination .ais-Pagination-list {
        gap: 6px;
    }

    .ais-Pagination .ais-Pagination-list .ais-Pagination-item .ais-Pagination-link {
        width: 25px;
        height: 25px;
    }

    .ais-Pagination .ais-Pagination-list .ais-Pagination-item--nextPage .ais-Pagination-link,
    .ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage .ais-Pagination-link {
        width: 30px !important;
        padding: 0;
        opacity: 0;
    }

    .ais-Pagination .ais-Pagination-list .ais-Pagination-item--nextPage::after,
    .ais-Pagination .ais-Pagination-list .ais-Pagination-item--previousPage::after {
        width: 11px;
        height: 18px;
    }

    .swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list {
        grid-template-columns: auto auto auto;
    }

    /* #instant-search-results-container .ais-Hits .ais-Hits-list{
        grid-template-columns: repeat(2, 1fr);
    } */
}

@media (max-width: 567px) {
    .mobile-filter-footer button {
        padding: 8px 4px;
    }

    .swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list .swatch-filters-pair {
        padding: 5px !important;
    }

    .swatch-img-filter-cst .swatch_filter_images .ais-RefinementList-list {
        gap: 8px;
        grid-template-columns: auto auto;
    }

    /* #instant-search-results-container .ais-Hits .ais-Hits-list{
        grid-template-columns: repeat(1, 1fr);
    } */
}
