/*** Custom Algolia Changes ***/
@media (min-width: 769px) {
    .aa-Panel.productColumn2 section:nth-child(2) .aa-List li {
        width: 100% !important
    }
}

@media (min-width: 992px) {

    body .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: 360px !important;
    }

    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2),
    .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(1) {
        margin-left: 0.7rem !important;
    }

    .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(2),
    .aa-Panel.productColumn1 .aa-PanelLayout section:nth-child(1) {
        margin-left: 8rem !important;
        min-width: 570px !important;
    }
}

@media (max-width: 767px) {
    #algolia-autocomplete-container .col9 {
        min-width: 100%;
    }

    .page-wrapper .page-header {
        min-height: 150px;
    }

    .algolia-custom-input .second-nav,
    li.authorization-link.no-dashboard .custom-name {
        display: none;
    }

    .algolia-custom-input .aa-Form {
        margin-top: 10px;
    }
}

body .aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) .aa-SourceHeader {
    display: none;
}

.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 {
    padding: 0 10px 0 !important;
    line-height: 1.3 !important;
    overflow: hidden;
}

#algolia-autocomplete-container .aa-dropdown-menu .info-without-thumb .details,
.aa-Panel .info-without-thumb .details {
    height: 13px !important;
    -webkit-line-clamp: 1 !important;
}

#autocomplete-products-footer {
    width: 100% !important;
    left: 0 !important;
}

.aa-Panel.productColumn2 .aa-PanelLayout section:nth-child(1) li a::before {
    content: "\f002";
    font-family: "Font Awesome 6 Pro";
    color: #787575;
    font-size: 14px;
    margin-right: 10px;
}

li a span.before_special_price {
    color: #e53b3b;
    font-weight: 700;
    margin-left: 5px;
}

li a span.after_special.promotion.special_prefix {
    color: #54A5CD;
}

li a span.after_special.promotion.special_prefix span.after_special_prefix {
    color: #8d8b8b;
}

li a span.after_special.promotion.special_prefix,
li a span.after_special.promotion.special_prefix span.after_special_prefix {
    font-size: 1.3rem;
}

[data-content-type='row'][data-appearance='contained'] {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

[data-content-type='row'][data-appearance='contained'] [data-element='inner'] {
    padding: 0 !important;
}

/** Gift Card Cart/Checkout **/
.amcard-field-container.-cart>form,
.amcard-field-container.-cart>button {
    display: none;
}

.amcard-field-container.-cart.show-giftcard>form,
.amcard-field-container.-cart.show-giftcard>button {
    display: block;
}