/**
 * 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 {
    text-align: center;
    line-height: 40px;
    border: solid 1px #ededed;
    margin: 10px 0 20px;
    font-weight: 700;
    cursor: pointer;
}

/* infos */
.algolia-infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: #F3F8F9;
    font-size: 13px;
    padding: 16px 24px;
    border-radius: 8px;
}

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

.algolia-infos .pull-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.ais-SearchBox-reset {
    position: absolute;
    right: 0;
}

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:focus {
    border: 1px solid #37474F;
}

input.ais-SearchBox-input {
    padding: 22px 24px;
    border-radius: 8px;
    border-color: #BBC3C4;
}

input.ais-SearchBox-input::placeholder {
    color: #37474F;
    font-weight: normal;
    font-size: 13px;
}

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

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

.ais-SearchBox-form::before {
    content: 'search';
    font-family: 'Material Icons';
    position: absolute;
    right: 24px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: max-content;
    font-size: 20px;
    color: #BBC3C4;
}

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

/* Select */
.ais-SortBy-select {
    border-radius: 8px;
    font-size: 13px;
    line-height: 18px;
    color: #37474F;
    min-width: 200px;
}

/* Hits & InfiniteHits */
.ais-InfiniteHits,
.ais-Hits {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.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-list {
    display: grid;
    grid-gap: 24px 30px;
    justify-content: space-between;
    grid-template-columns: auto auto auto;
}

.ais-InfiniteHits-loadMore, 
.ais-InfiniteHits-loadMore:focus {
    background: #fff;
    border: 1px solid #37474F;
    padding: 14px 20px;
    border-radius: 8px;
    text-transform: capitalize;
    font-size: 14px;
    color: #37474F;
    text-transform: inherit;
}

.ais-InfiniteHits-loadMore:hover,
.ais-InfiniteHits-loadMore:active {
    background: #37474F;
    border: 1px solid #37474F;
    color: #fff;
}

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

.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 {
    margin-top: 4px;
    margin-bottom: 4px;
}

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

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

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

/* Panel */
.ais-Panel {
    border: 1px solid #F3F8F9;
    border-radius: 0 0 8px 8px;
}

.ais-Panel-header {
    display: block;
    position: relative;
    margin: 0;
    padding: 20px;
    font-size: 15px;
    background: #F3F8F9;
    border: 0;
    line-height: 19px;
    font-weight: 700;
}

.is-widget-container-price_EUR_default .ais-Panel,
.is-widget-container-price_EUR_default .ais-Panel-header {
    border-radius: 8px 8px 0 0;
}

.ais-Panel-header .name::before {
    font-family: 'Font Awesome 6 Pro';
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    position: relative;
    top: 2px;
}

.is-widget-container-price_EUR_default .name::before {
    content: "\f153";
}

.is-widget-container-wine_colour .name::before {
    content: '\f53f';
}

.is-widget-container-label .name::before {
    content: '\f4e3';
}

.is-widget-container-country .name::before {
    content: '\f7a2';
}

.is-widget-container-wine_origin .name::before {
    content: '\f5a0';
}

.is-widget-container-appellation .name::before {
    content: '\f60d';
}

.is-widget-container-culture .name::before {
    content: '\f4d8';
}

.is-widget-container-what_occasion .name::before {
    content: '';
    width: 19px;
    height: 19px;
    background-size: 19px 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' fill='%2337474f'%3E%3C!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M384 192c0-106-85.96-192-192-192S0 85.96 0 192c0 84.42 101.3 196.4 158.8 238.7l-29.07 58.14c-2.469 4.969-2.219 10.84 .6875 15.56C133.3 509.1 138.5 512 144 512h96c5.531 0 10.69-2.875 13.62-7.594c2.906-4.719 3.156-10.59 .6875-15.56l-29.07-58.14C282.7 388.4 384 276.4 384 192zM176 96C131.9 96 96 131.9 96 176C96 184.8 88.84 192 80 192S64 184.8 64 176C64 114.3 114.3 64 176 64C184.8 64 192 71.16 192 80S184.8 96 176 96z'/%3E%3C/svg%3E");
}

.is-widget-container-rating_summary .name::before {
    content: '\f005';
}

.is-widget-container-drinks_type_level_1 .name::before{
    content: '';
    width: 19px;
    height: 19px;
    background-size: 19px 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2337474f'%3E%3C!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM224 304C224 330.5 202.5 352 176 352C149.5 352 128 330.5 128 304C128 277.5 149.5 256 176 256C202.5 256 224 277.5 224 304zM288 288C288 252.7 316.7 224 352 224C387.3 224 416 252.7 416 288C416 323.3 387.3 352 352 352C316.7 352 288 323.3 288 288zM288 176C288 202.5 266.5 224 240 224C213.5 224 192 202.5 192 176C192 149.5 213.5 128 240 128C266.5 128 288 149.5 288 176zM320 128C320 92.65 348.7 64 384 64C419.3 64 448 92.65 448 128C448 163.3 419.3 192 384 192C348.7 192 320 163.3 320 128z'/%3E%3C/svg%3E");
}

.is-widget-container-beer_color .name::before {
    content: '\f043';
}

.is-widget-container-beer_style .name::before {
    content: '\f0fc';
}

.ais-Panel-body {
    padding: 24px;
}

.ais-RefinementList-item {
    position: relative;
    margin: 0;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 400;
}

.ais-RefinementList-item div {
    width: 175px;
    display: block;
}

.ais-RefinementList-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    width: calc(100% + 48px);
    position: relative;
    left: -24px;
    padding: 0 24px;
}

.ais-RefinementList-label {
    cursor: pointer;
}

#instant-search-facets-container .ais-RefinementList-label.checked input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
  
.ais-RefinementList-label::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
    height: 15px;
    width: 15px;
    background-color: #ffffff;
    border: 1px solid #BBC3C4;
    border-radius: 4px;
}

.ais-RefinementList-label.checked::after {
    background-color: #00656E !important;
    border: 0;
}

.ais-RefinementList-label.checked::before {
    content: 'check';
    font-family: 'Material Icons';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
    height: 15px;
    width: 15px;
    color: #ffffff;
    font-size: 13px;
    z-index: 8;
    font-weight: bold;
}

input[type="checkbox"].ais-RefinementList-checkbox {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
}

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

.rheostat-handle {
    border: 0;
    top: -.7em !important;
    margin-top: 0 !important;
    margin-left: -.4em;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    outline: none;
    background: #00656E !important;
    position: relative;
}

.ais-RangeSlider .rheostat-background {
    height: 10px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border: none;
    background: #f3f8f9;
}

.ais-RangeSlider .rheostat-progress {
    position: absolute;
    height: 10px;
    border-radius: 8px;
    background: #dbe5e6 !important;
}

.rheostat-horizontal {
    margin-bottom: 10px !important;
}

/* Pagination */
.ais-Pagination-list {
    margin: 2em 0;
    justify-content: center;
}

.ais-Pagination-item {
    padding: 1em;
}

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

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

/* CurrentRefinements */
.ais-CurrentRefinements-list:not(:empty) {
    margin-bottom: 32px;
}

.ais-CurrentRefinements-item {
    width: 100%;
    display: block;
}

.ais-CurrentRefinements-label {
    font-weight: bold;
    display: block;
    margin-top: 32px;
}

.ais-CurrentRefinements-category {
    display: inline-block;
    padding: 8px 24px;
    padding-right: 24px;
    border: 1px solid #37474F;
    width: max-content;
    border-radius: 8px;
    margin: 5px 4px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    position: relative;
    padding-right: 52px;
    color: #37474F;
}

button.ais-CurrentRefinements-delete {
    line-height: inherit;
    box-shadow: none;
    font-size: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    padding: 8px 0px;
}

button.ais-CurrentRefinements-delete::before {
    content: 'clear';
    font-family: 'Material Icons';
    position: absolute;
    right: 24px;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 16px;
    height: max-content;
}

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%;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    padding: 0;
    padding-bottom: 0px;
    border: none;
    color: #37474F;
    border-bottom: 1px solid #37474F;
    border-radius: 0;
    padding-bottom: 10px;
    text-decoration: underline;
}

.ais-ClearRefinements-button:hover {
    background: transparent;
    border: none;
    border-bottom: 1px solid #37474F;
}

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

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


li.ais-Hits-item {
    display: inline-block;
}