/** Auto-completion menu */
html {
    --autocomplete-muted-color: #969faf;
}

#algolia-autocomplete-container .aa-dropdown-menu .before_special, .aa-Panel .before_special {
    color: #aaaaaa;
    text-decoration: line-through;
    font-size: 12px;
}

#algolia-autocomplete-container .aa-dropdown-menu .tier_price, .aa-Panel .tier_price {
    color: #666666;
    font-size: 10px;
}

#algolia-autocomplete-container .aa-dropdown-menu .tier_price .tier_value, .aa-Panel .tier_price .tier_value {
    color: #54A5CD;
    font-size: 12px;
}

#algolia-autocomplete-container .aa-dropdown-menu .info-without-thumb .category-tag, .aa-Panel .info-without-thumb .category-tag {
    color: #3284b6;
}

#algolia-autocomplete-container .aa-dropdown-menu .info-without-thumb .details, .aa-Panel .info-without-thumb .details {
    font-size: 10px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 30px;
    max-height: 30px;
    display: -webkit-box;
}

#algolia-autocomplete-container .aa-dropdown-menu .info-without-thumb .details em, .aa-Panel .info-without-thumb .details em {
    color: #222222;
}

#algolia-autocomplete-tt.algolia-autocomplete {
    width: 100%;
    display: inline-block !important;
}

#algolia-autocomplete-container .aa-dropdown-menu, .aa-Panel {
    position: absolute;
    margin-top: -1px;
    right: 0;
    width: 100%;
    z-index: 1000 !important;
    border: 1px solid #BBB;
    border-top: 3px solid #8EB4D0;
    border-radius: 1px;
    background: white;
}
@media (min-width: 992px) {
    #algolia-autocomplete-container .aa-dropdown-menu, .aa-Panel {
        min-width: 800px !important;
    }
}

@media (min-width: 769px) {
    #algolia-autocomplete-container .aa-dropdown-menu, .aa-Panel {
        width: 71.1%;
        min-width: 680px;
        padding-left: 8px;
    }

    .aa-Panel.productColumn1 section:nth-child(1) .aa-List {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .aa-Panel.productColumn1 section:nth-child(1) .aa-List li {
        width: 285px;
    }
    .aa-Panel.productColumn2 section:nth-child(2) .aa-List {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .aa-Panel.productColumn2 section:nth-child(2) .aa-List li {
        width: 285px;
    }

    .aa-Panel ul{
        padding-inline-start: 0px;
        margin-bottom: 0px !important;
    }
}

.aa-Panel.productColumn2 section:nth-child(2) .aa-List li:hover, .aa-Panel.productColumn1 section .aa-List li:hover{
    background-color: #f2f2f2;
}

#algolia-autocomplete-container .aa-dropdown-menu .col-2, .aa-Panel .col-2 {
    position: relative;
}

#algolia-autocomplete-container .aa-dropdown-menu .col-2 .col-left, .aa-Panel .col-2 .col-left {
    width: 67%;
}

#algolia-autocomplete-container .aa-dropdown-menu .col-2 .col-right, .aa-Panel .col-2 .col-right {
    width: 33%;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-no-results-products, .aa-Panel .aa-no-results-products {
    padding: 40px 40px;
    min-height: 250px;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-no-results-products .title, .aa-Panel .aa-no-results-products .title {
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 16px;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-no-results-products .suggestions, .aa-Panel .aa-no-results-products .suggestions {
    margin-bottom: 30px;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-no-results-products .see-all a, .aa-Panel .aa-no-results-products .see-all a {
    color: #636363;
    font-weight: bold;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-no-results, .aa-Panel .aa-no-results {
    padding: 10px;
    font-style: italic;
}

#algolia-autocomplete-container .aa-dropdown-menu .category, .aa-Panel .category, .aa-Panel .aa-PanelLayout section .aa-SourceHeader {
    padding: 4px;
    color: rgb(166, 166, 166);
    text-align: left;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
}

#algolia-autocomplete-container .aa-dropdown-menu .category-suggestions, .aa-Panel .category-suggestions{
    padding: 4px;
    color: #54A5CD;
    text-align: left;
    font-size: 0.7em;
    text-transform: uppercase;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit, .aa-Panel .algoliasearch-autocomplete-hit {
    display: inline-block;
    position: relative;
    padding: 5px 10px;
    color: #000;
    text-align: left;
    text-decoration: none;
    width: 96%;
    overflow: hidden;
}

#algolia-autocomplete-container .aa-dropdown-menu .other-sections .aa-dataset-suggestions .algoliasearch-autocomplete-hit {
    padding-left: 30px;
}

.aa-Panel .aa-ItemLink.algolia-suggestions:has(svg.algolia-glass-suggestion) {
    position: relative;
    padding: 5px 0 5px 25px !important;
}

.aa-Panel .aa-ItemLink.algolia-suggestions svg.algolia-glass-suggestion.magnifying-glass {
    display: none;
}

.aa-Panel .aa-ItemLink.algolia-suggestions:has(svg.algolia-glass-suggestion) svg.algolia-glass-suggestion.magnifying-glass {
    display: block;
    position: absolute;
    right: auto;
    left: 5px;
    top: 7px;
    fill: #A6A6A6;
    stroke: #A6A6A6;
}

/*
 * Same hover highlight as the recent-searches rows (.aa-RecentSearchItem:hover), for a consistent
 * feel across every section of the autocomplete dropdown. Applied directly to the suggestion's own
 * <a> (it's already the full clickable row - see .algoliasearch-autocomplete-hit's display:inline-
 * block; width:96% above) rather than the parent <li>.
 *
 * Verified live (CSS.getMatchedStylesForNode with :hover forced) that a plain rule here loses to
 * ".aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) li a:hover
 * {background-color: inherit !important}" below - meant to suppress hover on the categories/
 * filter sidebar, which also happens to render as section:nth-child(1), the same position
 * Suggestions renders in. Matching/exceeding that selector's specificity (6 class-level parts vs
 * its 5) plus !important is what actually wins here, not a plain hover rule.
 */
.aa-Panel.productColumn2 .aa-PanelLayout section .aa-ItemLink.algolia-suggestions:hover,
.aa-Panel.productColumn1 .aa-PanelLayout section .aa-ItemLink.algolia-suggestions:hover {
    background-color: #f2f2f2 !important;
}

#algolia-autocomplete-container .aa-dropdown-menu.aa-without-products .col9, .aa-Panel .col9:hover {
    background-color: #F9F9F9;
}

#algolia-autocomplete-container .aa-dropdown-menu.aa-without-products #autocomplete-products-footer {
    display: none;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-dataset-products .aa-suggestion, .aa-Panel .aa-dataset-products .aa-suggestion {
    display: inline-block;
    width: 100%;
}

@media (min-width: 769px) {
    #algolia-autocomplete-container .aa-dropdown-menu .aa-dataset-products .aa-suggestion, .aa-Panel .aa-dataset-products .aa-suggestion {
        display: inline-block;
        width: 50%;
    }
}


#algolia-autocomplete-container .aa-dropdown-menu .aa-dataset-products .algoliasearch-autocomplete-hit, .aa-Panel .aa-dataset-products .algoliasearch-autocomplete-hit {
    padding: 15px 10px;
}

.autocomplete-wrapper, .aa-Panel {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

.autocomplete-wrapper:after, .aa-Panel:after {
    clear: both;
    content: '';
}

#algolia-autocomplete-container .col9, .aa-Panel .col9 {
    float: right;
    box-sizing: border-box;
}

#algolia-autocomplete-container .col3, .aa-Panel .col3 {
    float: right;
    box-sizing: border-box;
}

#algolia-autocomplete-container.reverse .col3, .aa-Panel.reverse .col3 {
    float: left;
    min-width: 100%;
}

#algolia-autocomplete-container.reverse .col9, .aa-Panel.reverse .col9 {
    float: left;
    min-width: 100%;
    display: flex;
    height: 100%;
    flex: 1;
}

@media (min-width: 769px) {
    #algolia-autocomplete-container .col9, .aa-Panel .col9 {
        border-left: solid 1px #eeeeee;
        width: 70%;
        right: 0;
        height: 100%;
    }

    #algolia-autocomplete-container .col3, .aa-Panel .col3 {
        float: left;
        width: 30%;
    }

    #algolia-autocomplete-container.reverse .col3, .aa-Panel.reverse .col3 {
        float: left;
        width: 30%;
    }

    #algolia-autocomplete-container.reverse .col9, .aa-Panel.reverse .col9 {
        border-right: solid 1px #eeeeee;
        float: left;
        width: 70%;
    }
}

#algolia-autocomplete-container .other-sections, .aa-Panel .other-sections {
    margin: 20px 10px 70px;
}


.aa-dataset-products .aa-suggestions {
    margin: 10px auto 10px auto;
}

.aa-dataset-suggestions {
    display: none;
}

@media (min-width: 769px) {
    .aa-dataset-suggestions {
        display: block;
    }
}


@media (min-width: 769px) {
    .aa-dataset-products .aa-suggestions {
        margin: 10px auto 50px auto;
    }
}


.aa-dataset-products .aa-suggestions:after {
    content: '';
    display: block;
    clear: both;
}

#algolia-autocomplete-container .aa-dropdown-menu .other-sections .algoliasearch-autocomplete-hit, .aa-Panel .other-sections .algoliasearch-autocomplete-hit {
    padding-left: 10px;
}

#algolia-autocomplete-container .aa-dropdown-menu .other-sections .aa-suggestions, .aa-Panel .other-sections .aa-suggestions {
    margin-bottom: 20px;
}

#algolia-autocomplete-container .aa-dropdown-menu .aa-cursor .algoliasearch-autocomplete-hit, .aa-Panel .aa-cursor .algoliasearch-autocomplete-hit {
    background-color: #f2f2f2;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit em, .aa-Panel .algoliasearch-autocomplete-hit em {
    font-weight: bold;
    font-style: normal;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-price, .aa-Panel .algoliasearch-autocomplete-price {
    font-size: 1.1em;
    color: #54A5CD;
    height: 22px;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .thumb, .aa-Panel .algoliasearch-autocomplete-hit .thumb {
    float: left;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .thumb img, .aa-Panel .algoliasearch-autocomplete-hit .thumb img {
    width: 50px;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .info, .aa-Panel .algoliasearch-autocomplete-hit .info {
    margin-left: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#autocomplete-products-footer {
    background-color: #F9F9F9;
    text-align: center;
    display: none;
    position: absolute;
    width: 70%;
    padding: 10px 0;
    bottom: 0;
    left: 30%;
}

#algolia-autocomplete-container.reverse #autocomplete-products-footer {
    right: auto;
    left: 0;
}

@media (min-width: 769px) {
    #autocomplete-products-footer {
        display: block;
    }
}

#autocomplete-products-footer span {
    color: #15769c;
    font-weight: 600;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-category, .aa-Panel .algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-category {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
}

#algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-category em, .aa-Panel .algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-category em {
    color: #222;
}

.algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-category span:nth-child(n+2):before {
    content: " | ";
}

.algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-price .after_special:after {
    content: " ";
}

.algoliasearch-autocomplete-hit .info .algoliasearch-autocomplete-price .tier_price {
    padding-left: 5px;
}


#algolia-autocomplete-container .aa-dropdown-menu .footer_algolia {
    position: absolute;
    width: 100%;
    padding: 10px;
    text-align: center;
    bottom: 0;
    left: 4px;
    font-size: 13px;
}

#algolia-autocomplete-container.reverse .aa-dropdown-menu .footer_algolia {
    left: auto;
    right: 4px;
}

@media (min-width: 769px) {
    #algolia-autocomplete-container .aa-dropdown-menu .footer_algolia {
        width: 30%;
    }
}

#algolia-autocomplete-container .aa-dropdown-menu .footer_algolia span {
    color: #B8B8B8;
    font-size: 10px;
}

#algolia-autocomplete-container .aa-dropdown-menu .footer_algolia img {
    display: inline;
    height: 1.5em;
    vertical-align: bottom;
    max-width: 130px;
}

#algolia-autocomplete-container:after, .autocomplete-wrapper:after {
    clear: both;
    content: '';
}

#algolia_instant_selector .cross-wrapper .clear-refinement {
    display: block;
    position: relative;
    top: 5px;
    left: 5px;
}
#algoliaAutocomplete{
    position: relative;
}
#algoliaAutocomplete .aa-SubmitButton{
    background: none;
    border: none;
    position: absolute;
    right: 0px;
    height: 32px;
    box-shadow: none;
}
#algoliaAutocomplete .aa-ClearButton{
    position: absolute;
    right: 1px;
    top: 1px;
    height: 30px;
    border: none;
    background: #fff;
    display: none;
}

#algoliaAutocomplete .aa-LoadingIndicator {
    position: absolute;
    top: 20%;
    right: 10px;
}

.aa-Panel li.aa-Item{
    list-style-type: none;
}

.aa-Panel .aa-PanelLayout{
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);*/
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding-bottom: 45px;
}
.aa-Panel .aa-PanelLayout section{
    padding-top: 10px;
}
.aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) li a, .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(2) li a, .aa-Panel .aa-PanelLayout section:nth-child(3) li a, .aa-Panel .aa-PanelLayout section:nth-child(4) li a, .aa-Panel .aa-PanelLayout section:nth-child(5) li a{
    color: inherit;
    display: block;
    /*padding: 5px 10px;*/
}
.aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) li a:hover, .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(2) li a:hover, .aa-Panel .aa-PanelLayout section:nth-child(3) li a:hover, .aa-Panel .aa-PanelLayout section:nth-child(4) li a:hover, .aa-Panel .aa-PanelLayout section:nth-child(5) li a:hover{
    background-color: #f2f2f2;
    text-decoration: none;
}
.footer_algolia{
    position: absolute;
    bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-start;
}

.footer_algolia .algolia-search-by-label {
    color: var(--autocomplete-muted-color);
    font-size: .9em;
    margin-right: 5px;
}

.footer_algolia img {
    min-width: 80px;
}

@media (min-width: 992px) {
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2), .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(1){
        margin-left: 2.5rem !important;
        min-width: 570px !important;
    }
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1),
    .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(2),
    .aa-Panel .aa-PanelLayout section:nth-child(3),
    .aa-Panel .aa-PanelLayout section:nth-child(4),
    .aa-Panel .aa-PanelLayout section:nth-child(5){
        width: 220px !important;
    }
}
@media (max-width: 768px) {
    #algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .info, .aa-Panel .algoliasearch-autocomplete-hit .info{
        padding-left: 15px;
    }
}
@media (min-width: 769px) {
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1){
        grid-area: 1 / 1 / 2 / 2;
        padding-top: 20px;
        width: 180px;
    }
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2){
        border-left: 1px solid #BBB;
        margin-bottom: 0px;
        margin-left: 1.5rem;
        min-width: 480px;
        grid-area: 1 / 2 / 5 / 3;
    }

    .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(1){
        border-left: 1px solid #BBB;
        margin-bottom: 0px;
        margin-left: 1.5rem;
        min-width: 48px;
        grid-area: 1 / 2 / 5 / 3;
    }
    .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(2){
        grid-area: 1 / 1 / 2 / 2;
        padding-top: 20px;
        width: 180px;
    }
    .aa-Panel .aa-PanelLayout section:nth-child(3){
        grid-area: 2 / 1 / 3 / 2;
        width: 180px;
    }
    .aa-Panel .aa-PanelLayout section:nth-child(4){
        grid-area: 3 / 1 / 4 / 2;
        width: 180px;
    }
    .aa-Panel .aa-PanelLayout section:nth-child(5){
        grid-area: 4 / 1 / 5 / 2;
        width: 180px;
    }
    #algolia-autocomplete-container .aa-dropdown-menu .algoliasearch-autocomplete-hit .info, .aa-Panel .algoliasearch-autocomplete-hit .info {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .aa-Panel .aa-PanelLayout {
        justify-content: start;
        width:100%;
        display: flex;
        flex-direction: column;
    }
    .footer_algolia{
        width: 100%;
        justify-content: center;
    }
    .aa-Panel .aa-List {
        padding-left: 0px;
    }
    #autocomplete-products-footer{
        left: 0;
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
    .footer_algolia{
        text-align: center;
        padding-top: 15px;
    }
    .aa-Panel .aa-PanelLayout section {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
    #algoliaAutocomplete{
        margin-bottom: 10px;
        clear: both;
    }
    #algoliaAutocomplete.block-search input{
        left: inherit;
        position: relative;
        margin: 0px;
    }
    #algoliaAutocomplete .aa-SubmitButton{
        z-index: 2;
    }
}

.aa-Panel mark{
    background: none;
    font-weight: 600;
}
.aa-Panel .aa-PanelLayout section .aa-SourceNoResults{
    padding: 5px;
}


.ais-Hits-list .ais-Hits-item .products-list .product-items .product-item .product-item-info{
    display: flex;
    width: 100%;
    padding: 16px 12px;
    border-radius: 8px;
    gap: 24px;
    box-shadow: 0px 0px 16px -1px rgba(0, 0, 0, 0.08);
    position: relative;
}
.ais-Hits-item .result-wrapper{
    padding: 0;
}
.ais-Hits-list .ais-Hits-item .chat-add-to-cart, 
.ais-Hits-list .ais-Hits-item .tocart{
    background: #2fac66;
    border: 1px solid #2fac66;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    padding: 7px 15px;
    font-size: 1.6rem;
    box-sizing: border-box;
    vertical-align: middle;
    font-size: 12px;
    display: block;
    width: 100%;
    border-radius: 8px;
}
.ais-Hits-list .ais-Hits-item .product-item .tocompare:before{
    content:"";
}
.ais-Hits .price-wrapper{
    text-align: left;
    font-weight: 500;
    margin: 0 0 8px;
}
.ais-Hits .ais-Hits-item .result-wrapper{
    padding: 0;
}

#algolia-autocomplete-container .aa-dropdown-menu .category, .aa-Panel .category, .aa-Panel .aa-PanelLayout section .aa-SourceHeader{
    color: #333;
}
.aa-Panel{
    justify-content: flex-end;
    border: 0;
    border-radius: 8px;
    box-shadow: 0px 0px 16px -1px rgba(0, 0, 0, 0.08);
}
.aa-Panel .aa-ItemLink.algolia-suggestions:has(svg.algolia-glass-suggestion) svg.algolia-glass-suggestion.magnifying-glass{
    display:none
}
.aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) li a:hover{
    background-color: inherit !important;
}
.aa-Panel .aa-ItemLink.algolia-suggestions:has(svg.algolia-glass-suggestion){
    padding-left: 5px !important;
}
.footer_algolia{
    display: none
}
.aa-Panel .aa-PanelLayout{
    display: block;
}
.aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2){
    border: 0;
    padding: 0;
    margin: 0 !important;
}
.aa-Panel.productColumn2 section:nth-child(2) .aa-List li:hover, .aa-Panel.productColumn1 section .aa-List li:hover{
    background-color: inherit;
}
.aa-Panel.productColumn2 section:nth-child(2) .aa-List li{
    padding-left: 5px;
}
.aa-Panel li.aa-Item{
    margin-bottom: 2px;
    background: inherit !important;
}
.aa-Panel li.aa-Item:hover{
    background-color: inherit !important;
}
.aa-Panel li.aa-Item .aa-ItemLink{
    color: #333;
}
/*
 * The recent-searches source is never shown alongside any other CONTENT section (hooks.js's
 * `search` override returns [] for it as soon as there's a query, and the other sections only
 * populate once there's a query) - so it's always the sole content of the panel when visible, and
 * can safely span the panel's full width without colliding with the Suggestions/products grid/
 * column rules above (nth-child-based, tuned for the "query typed", multi-section state only).
 *
 * !important throughout this chain: something in the nth-child/column rules above (whichever ends
 * up matching this section positionally) was winning over a plain width:100% here, without there
 * being an isolated, safely-scoped selector to out-specificity it instead - forcing it is the
 * reliable option since nothing else legitimately needs to constrain this specific source's width.
 *
 * NOTE: verified live via a headless-browser DOM inspection (not just reading CSS) that the panel
 * always also contains a `<div id="algoliaFooter" class="footer_algolia">` sibling right after
 * this section - so ":only-child" here NEVER matched and this whole block was silently inert.
 * Matching on the section's presence alone (no ":only-child") is correct, since that footer div
 * isn't a competing content column.
 */
.aa-Panel .aa-PanelLayout:has(> section[data-autocomplete-source-id="recentSearchesPlugin"]){
    /*
     * .aa-Panel itself is "display:flex; flex-direction:row-reverse; flex-wrap:wrap;" (see
     * ".autocomplete-wrapper, .aa-Panel" above - it lays out a categories sidebar/products grid
     * side by side when those are present), so .aa-PanelLayout is a flex item here, not a plain
     * block child - a bare `width` doesn't reliably claim the row under flexbox without
     * flex-basis/flex-grow too, which is why width:100% alone wasn't enough.
     */
    flex: 1 1 100% !important;
    width: 100% !important;
}
.aa-Panel section[data-autocomplete-source-id="recentSearchesPlugin"]{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/*
 * The real culprit (found via DevTools): .aa-Panel gets a "productColumn1"/"productColumn2"
 * class, and - only at >=992px - ".aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1)"
 * (this section, since recent-searches always renders alone - see note above) is hard-coded to
 * "width: 220px !important". That selector has 4 class-level parts (.aa-Panel, .productColumn2,
 * .aa-PanelLayout, :nth-child) + 1 element (section), so a plain width:100% !important on a
 * lower-specificity selector can never beat it. Matching that same specificity here (via the
 * data-autocomplete-source-id attribute in place of :nth-child) and declaring it later in this
 * file settles the tie in our favor instead of fighting it with ever-more !important.
 */
.aa-Panel.productColumn2 .aa-PanelLayout section[data-autocomplete-source-id="recentSearchesPlugin"],
.aa-Panel.productColumn1 .aa-PanelLayout section[data-autocomplete-source-id="recentSearchesPlugin"]{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}
.aa-Panel section[data-autocomplete-source-id="recentSearchesPlugin"] .aa-List{
    width: 100% !important;
}
.aa-Panel section[data-autocomplete-source-id="recentSearchesPlugin"] li.aa-Item{
    width: 100% !important;
    box-sizing: border-box !important;
}
/*
 * Same full-width treatment for the Suggestions section - but unlike recent-searches, Suggestions
 * CAN render alongside the products/categories columns once there are enough results, and forcing
 * it to always claim the full row would break that side-by-side layout. Scoped with ":only-of-type"
 * (matches only when this <section> has no *other section* sibling - the non-section
 * "#algoliaFooter" div doesn't count, same as the recent-searches case above) so it only takes
 * effect when Suggestions is genuinely the panel's sole content, exactly as in the reported case.
 */
.aa-Panel .aa-PanelLayout:has(> section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type){
    flex: 1 1 100% !important;
    width: 100% !important;
}
.aa-Panel section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.aa-Panel.productColumn2 .aa-PanelLayout section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type,
.aa-Panel.productColumn1 .aa-PanelLayout section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}
.aa-Panel section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type .aa-List{
    width: 100% !important;
}
.aa-Panel section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type li.aa-Item{
    width: 100% !important;
    box-sizing: border-box !important;
}
/*
 * The persistent right-hand gap even outside hover (reported separately from the hover-color
 * check) comes from ".algoliasearch-autocomplete-hit" (legacy, pre-dates this fix) hard-coding
 * "width: 96%" on the suggestion's own <a> - a permanent ~4% empty gutter regardless of how wide
 * its ancestors are. That rule carries no !important and only 2 classes of specificity, so this
 * plain override (no !important needed) wins outright.
 */
.aa-Panel section[data-autocomplete-source-id="querySuggestionsPlugin"]:only-of-type .algoliasearch-autocomplete-hit{
    width: 100%;
    box-sizing: border-box;
}
.aa-Panel li.aa-Item .aa-RecentSearchItem{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    box-sizing: border-box;
    padding: 6px 4px;
}
.aa-Panel li.aa-Item .aa-RecentSearchItem:hover{
    background-color: #f2f2f2;
}
.aa-Panel li.aa-Item .aa-RecentSearchItem .aa-ItemLink{
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aa-Panel li.aa-Item .aa-RecentSearchRemoveButton{
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 0 4px;
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.aa-Panel li.aa-Item .aa-RecentSearchRemoveButton:hover{
    color: #333;
}
.products-list .product-items .product-item .product-item-name,
.products-list .product-items .product-item .product-item-inner-left{
    text-align: left;
}
.products-list .product-items .product-item .price-wrapper span{
    color: #333;
}
.products-list .product-items .product-item .product-item-inner .product-item-inner-right{
    margin-top: 8px;
}
.products-list .product-items .product-item .product-item-link img{
    width: 100%;
    height: auto;
}
@media(max-width: 767px){
    .aa-Panel .aa-PanelLayout section{
        padding: 0 !important;
    }
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1){
        width: 100% !important;
    }
    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2){
        width: 100% !important;
        margin-left: 0 !important;
    }
    .products-list .product-items .product-item .product-item-actions{
        margin-top: 12px;
    }
    .products-list .product-items .product-item .place-of-origin{
        margin-top: 8px;
    }
}

/*
 * Chat/Contact Supplier button sizing to match the category page (PLP).
 * PLP gets this from Magento_Catalog's _extend.less, but that's scoped under
 * ".products-list .product-items .product-item", an ancestor chain the Algolia
 * InstantSearch hit markup (.ais-Hits-item .product-item) doesn't have. Mirrored here,
 * scoped to the hit markup instead.
 */
.ais-Hits-list .ais-Hits-item .product-chat-button,
.ais-Hits-list .ais-Hits-item .product-contact-supplier-button{
    margin-bottom: 8px;
}
.ais-Hits-list .ais-Hits-item .product-chat-button .contact-chat-add-to-cart,
.ais-Hits-list .ais-Hits-item .product-contact-supplier-button .contact-supplier-add-to-cart{
    /*
     * The Chat link is an <a> (Contact Supplier is a <button>) - <a> defaults to display:inline,
     * on which `width` has no effect at all. Explicit here (PLP's version relies on Chat's <a>
     * inheriting a block/flex display from ".products-list .product-items" ancestor rules this
     * page's markup doesn't have) and !important to win over the base ".action.primary" button
     * style's own display/width.
     */
    display: block !important;
    font-size: 12px !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
}
.ais-Hits-list .ais-Hits-item .product-chat-button .contact-chat-add-to-cart{
    /*
     * PLP's Chat <a> (list.phtml) has an inline style="line-height: 2.4rem" that this markup
     * doesn't carry - <a> and <button> compute height from padding/line-height differently, so
     * without this the Chat link renders shorter than the (already-matching) Contact Supplier
     * <button> next to it.
     */
    line-height: 2.4rem !important;
}
.ais-Hits-list .ais-Hits-item .product-item-actions{
    margin-left: 0;
}
.products-list .product-items .product-item .product-image-wrapper-slider.owl-carousel .owl-item{
    min-height: 160px;
}
.products-list .product-items .product-item .product-image-wrapper-slider.owl-carousel .owl-item .owl-lazy.product-image-photo{
    opacity: 1;
}
.rheostat-handle-lower .rheostat-tooltip {
    position: relative;
    left: 8px;
    min-width: 60px;
}
.rheostat-handle-upper .rheostat-tooltip {
    position: relative;
    right: 32px;
    width: 100px;
}
@media(min-width: 768px){
    .ais-Hits-list .ais-Hits-item .product-item-actions{
        margin-left: auto;
    }
}

/*
 * "Contact Supplier" modal - two-column field layout to match the category page.
 * PLP's grid comes from ".contact-supplier #ask-form, .contact-supplier [id*='ask-form'] .modal-body"
 * in Magento_Catalog's _extend.less; the shared modal here
 * (Algolia_CustomAlgolia::instant/search-extras.phtml) uses a fixed id
 * (#algolia-contact-supplier-form, since there's one shared modal instead of one per product) that
 * doesn't match that "*=ask-form" selector, so it fell back to a single column. Mirrored explicitly
 * for this id instead.
 */
#algolia-contact-supplier-form{
    margin-bottom: 0;
}
#algolia-contact-supplier-form .modal-body{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}
#algolia-contact-supplier-form .form-group{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#algolia-contact-supplier-form .modal-footer{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px;
}
#algolia-contact-supplier-form .modal-footer .secondary{
    background: transparent;
    display: flex;
    height: 38px;
    width: 100px;
    align-items: center;
    justify-content: center;
    border-color: #2FAC66;
    color: #2FAC66;
    border-width: 1px;
    order: 3;
}
#algolia-contact-supplier-form .modal-footer .secondary:hover{
    background: #eaf7f0;
}
#algolia-contact-supplier-form .modal-footer .primary{
    order: 4;
}
@media(max-width: 768px){
    #algolia-contact-supplier-form .modal-body{
        grid-template-columns: 1fr;
    }
}
.ais-Hits-list .ais-Hits-item .product-item-inner-right{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 4px;
}