#Search-Drawer {

    & .side-panel-header {

        & .aa-Form {
            border: none !important;
            box-shadow: none !important;

            & input,
            &:focus-within {
                border: none !important;
                box-shadow: none !important;
            }
        }
    }

    & .aa-MainContainer {
        min-width: auto;
    }
}

.aa-Panel {
    height: calc(100vh - 72px);
    width: 480px !important;
    margin-left: -30px !important;
    margin-top: 6px;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;

    & .aa-PanelLayout {
        max-height: calc(100% - 8px);
        height: auto;

        & .aa-ItemContent {
            flex-direction: row !important;
        }
    }
}

.aa-Source[data-autocomplete-source-id="products"] .aa-List {
    display: flex !important;
    flex-direction: column;
}

.template-collection {

    & #main-content {

        & > .section-app-wrapper {

            & > .app-wrapper {
                margin-top: 0;
            }
        }
    }

    & .ais-page {

        & .ais-h2,
        & .ais-input {
            display: none;
        }
    }
}

.template-search,
.template-collection {

        & .ais-page {
            max-width: 100%;
            padding: 0;
            color: #30221a !important;

            & .ais-facets {
                width: 250px;

                & .ais-facet--count {
                    display: none;
                }

                & .ais-facet-dropdown-wrapper {
                    --bg-body-rgb: 251, 247, 248;

                    & .ais-Panel-body {
                        width: 250px;
                        overflow-y: scroll;
                        max-height: 250px;
                        scrollbar-width: none;
                        color: #30221a !important;
                    }

                    & .ais-facet--header {
                        background: transparent;
                        font-weight: 500;
                        color: #30221a !important;
                        display: flex;
                        cursor: pointer;

                        &:has(~ .ais-facet-dropdown-container:not(.closed)) {

                            & .expand-icon {

                                &:before {
                                    transform: translatey(-50%) rotate(-90deg);
                                    opacity: 0;
                                }

                                &:after {
                                    transform: translatey(-50%) rotate(0);
                                }

                            }
                        }

                        & .expand-icon {
                            position: relative;
                            width: 12px;
                            height: 12px;
                            cursor: pointer;
                            display: block;
                            margin-right: 17px;

                            &:before, &:after {
                                content: "";
                                display: block;
                                background-color: #333;
                                position: absolute;
                                top: 50%;
                                left: 0;
                                transition: .35s;
                                width: 100%;
                                height: 1px;
                            }

                            &:before {
                                transform: translatey(-50%);
                            }

                            &:after {
                                transform: translatey(-50%) rotate(90deg);
                            }
                        }
                    }

                    & .ais-facet--subheader {
                        text-transform: uppercase;
                        font-size: 14px;
                        margin-left: 10px;
                        margin-top: 15px;
                        color: rgb(48, 34, 26);
                        display: block;
                    }

                    & .ais-facet-dropdown-container {
                        transition: all .3s;
                        display: block !important;
                        overflow: hidden;
                        height: auto;

                        & input.ais-dropdown-checkbox {
                            display: none;
                        }

                        & .ais-facet--item {
                            border-left: none !important;
                            margin-left: 0 !important;
                            padding-left: 0 !important;

                            & .ais-facet--checkbox {
                                height: 14px;
                                width: 14px;
                            }

                            & .ais-RefinementList-label {
                                text-transform: uppercase;
                            }
                        }
                    }


                    & div[class*="ais-facet-price"] {

                        & .rheostat-marker {
                            display: none;
                        }

                    }

                    & div[class*="ais-facet-heel_type"],
                    & div[class*="ais-facet-work_boot_features"],
                    & div[class*="ais-facet-safety_toe_type"],
                    & div[class*="ais-facet-toe_shape"],
                    & div[class*="ais-facet-safety_features"] {

                        & .ais-RefinementList-list {
                            display: grid;
                            grid-template-columns: repeat(3, 48px);
                            gap: 20px;

                            & .ais-facet--item {
                                width: 48px;

                                &:hover {

                                    & .safety-feature-filter {
                                        box-shadow: 0 0 0 1px #5a433466 inset;
                                        border-radius: 100%;
                                    }

                                    & img {
                                        transform: scale(.9);
                                    }

                                    & span {
                                        text-decoration: underline;
                                    }
                                }

                                & .safety-feature-filter {
                                    height: auto;
                                    width: 48px;
                                    box-shadow: 0 0 0 1px var(--color-body) inset;
                                    transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                    overflow: visible;
                                    position: relative;

                                    & span {
                                        height: 20px;
                                        width: 63px;
                                        position: absolute;
                                        bottom: -23px;
                                        left: -6.5px;
                                        color: #5a5a5a;
                                        text-indent: 0;
                                        font-size: 10px;
                                        text-align: center;
                                        line-height: 10px;
                                        white-space: break-spaces;
                                    }

                                    & input {
                                        display: none;
                                    }

                                    & img {
                                        height: 100%;
                                        width: 100%;
                                        object-fit: contain;
                                        object-position: center;
                                        border-radius: 50%;
                                        transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                    }
                                }
                            }
                        }
                    }

                    & div[class*="ais-facet-options.color"],
                    & div[class*="ais-facet-meta.shopify.color-pattern"],
                    & div[class*="ais-facet-color_id"] {

                        & .ais-RefinementList-list {
                            display: grid;
                            grid-template-columns: repeat(3, 48px);
                            gap: 20px;

                            & .ais-RefinementList-item {
                                cursor: default;
                                padding: 0;
                                margin-bottom: 20px;

                                & label {
                                    cursor: pointer;
                                    height: 48px;
                                    width: 48px;
                                    border-radius: 50%;
                                    color: transparent;
                                    font-size: 0;
                                    position: relative;
                                    transition: all .25s cubic-bezier(.104, .204, .492, 1);

                                    &:after {
                                        content: "";
                                        display: block;
                                        position: absolute;
                                        width: 100%;
                                        height: 100%;
                                        border-radius: 50%;
                                        background-size: contain;
                                        background-color: var(--bg-color, "black");
                                        transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                    }

                                    &:hover {
                                        z-index: 1;
                                        box-shadow: 0 0 0 1px #5a433466 inset;
                                        border-radius: 100%;

                                        &:after {
                                            transform: scale(.9);
                                        }
                                    }

                                    & input {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }

                    &.ais-facet-inventory_available {

                        & .ais-RefinementList-list {

                            & .ais-RefinementList-item {

                                & .ais-RefinementList-label {
                                    position: relative;
                                    display: inline-block;
                                    width: 48px;
                                    height: 24px;

                                    & input {
                                        opacity: 0;
                                        width: 0;
                                        height: 0;

                                        &:checked + span {
                                            background-color: #30221a;
                                        }

                                        &:focus + span {
                                            box-shadow: 0 0 1px #30221a;
                                        }

                                        &:checked + span:before {
                                            -webkit-transform: translateX(26px);
                                            -ms-transform: translateX(26px);
                                            transform: translateX(26px);
                                        }
                                    }

                                    & span {
                                        display: block;
                                        position: absolute;
                                        cursor: pointer;
                                        top: 0;
                                        left: 0;
                                        right: 0;
                                        bottom: 0;
                                        background-color: #ccc;
                                        -webkit-transition: .4s;
                                        transition: .4s;
                                        border-radius: 34px;
                                        color: transparent;

                                        &:before {
                                            position: absolute;
                                            content: " ";
                                            height: 16px;
                                            width: 16px;
                                            left: 4px;
                                            bottom: 4px;
                                            background-color: white;
                                            -webkit-transition: .4s;
                                            transition: .4s;
                                            border-radius: 50%;
                                        }
                                    }
                                }
                            }
                        }
                    }

                    & .ais-RangeSlider {

                        & .rheostat-handle {
                            border-radius: 0;
                            position: relative;

                            &:after {
                                content: '|||';
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 19px;
                                height: 17px;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                font-size: 10px;
                            }
                        }
                    }
                }
            }

            & .ais-block {
                width: calc(100% - 250px);

                & .ais-search-header {
                    visibility: collapse;
                    display: flex;
                    justify-content: space-between;
                    color: #30221a !important;

                    &:after {
                        display: none;
                    }

                    & * {
                        visibility: visible;
                    }

                    & .left,
                    & .right {
                        display: flex;
                        align-items: center;
                    }

                    & .right {

                        & .ais-stats-container {
                            order: 1;
                            text-transform: uppercase !important;

                            & .ais-Stats-text,
                            & .ais-stats--nb-results {
                                font-size: 12px !important;
                                text-transform: uppercase;
                                letter-spacing: .1em;
                                font-weight: 400 !important;
                                font-style: normal;
                                font-family: Archivo, sans-serif;
                            }
                        }

                        & .ais-sort {
                            color: transparent;

                            select {
                                text-transform: uppercase;
                            }

                            & .ais-SortBy-select {
                                margin: 0;
                                margin-right: 20px;
                            }
                        }
                    }

                    & .ais-change-display {
                        display: none;
                    }

                    & .ais-SortBy {

                        & .ais-SortBy-select {
                            appearance: auto;
                        }
                    }

                    & .ais-clear-refinements-container {
                        position: relative;
                        top: 0;
                        left: 0;
                        margin-top: -6px;

                        & .ais-ClearRefinements {
                            margin-left: 20px;

                            & .ais-ClearRefinements-button {
                                text-transform: uppercase !important;
                                font-size: .75rem;
                                line-height: 1.0625rem;
                                letter-spacing: var(--button-letter-spacing, .02em);
                                transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                text-decoration: none !important;
                                position: relative;

                                &:before {
                                    background: rgba(var(--color-accent-rgb), .4);
                                }

                                &:before,
                                &:after {
                                    content: "";
                                    display: block;
                                    position: absolute;
                                    top: calc(100% + 2px);
                                    left: 0;
                                    width: 100%;
                                    height: 1px;
                                    pointer-events: none;
                                    transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                }

                                &:after {
                                    background: var(--color-accent);
                                    transform-origin: left center;
                                    transform: scaleX(0);
                                    transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                }

                                &:hover {
                                    &:after {
                                        transform: scale(1);
                                    }
                                }
                            }
                        }
                    }

                    & .ais-current-refined-values-container {

                        & .ais-current-refined-values--header {
                            display: none;
                        }

                        & .ais-current-refined-values {
                            margin: 0;
                            padding: 0;

                            & .ais-current-refined-values--list {
                                display: flex;
                                justify-content: flex-start;
                                gap: 10px;

                                & .ais-current-refined-values--item {

                                    & .ais-current-refined-values--link {
                                        transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                        text-transform: uppercase;
                                        font-size: .75rem;

                                        &:before {
                                            display: none;
                                        }

                                        &:after {
                                            background: transparent;
                                            content: "\2a2f";
                                            display: table-cell;
                                            padding: 0 0 0 8px;
                                            vertical-align: middle;
                                            width: 26px;
                                            border-left: 1px solid #e0e0e0;
                                            transition: all .25s cubic-bezier(.104, .204, .492, 1);
                                        }

                                        &:hover {
                                            border-color: var(--color-accent);

                                            &:after {
                                                background-color: var(--color-accent);
                                                color: var(--color-border);
                                            }
                                        }

                                        &[data-attribute="price"] {

                                            & .ais-current-refined-values--label {
                                                display: inline !important;
                                            }
                                        }

                                        & > div {
                                            height: 100%;
                                            max-width: unset;
                                            display: flex;
                                            gap: 8px;
                                            align-items: center;
                                            margin: 0;
                                            min-height: 31px;
                                            background: transparent;
                                            padding: 0 10px;

                                            & .ais-current-refined-values--label {
                                                display: none;
                                            }

                                            & .color-filter {
                                                height: 16px;
                                                width: 16px;
                                                display: block;
                                                border-radius: 50%;
                                            }

                                            & img {
                                                height: 16px;
                                                width: 16px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                & .ais-results-as-block {

                    & .ais-Hits-list {
                        display: grid;
                        grid-gap: 20px;
                        grid-template-columns: 24% 24% 24% 24%;

                        & .ais-Hits-item {

                            & .ais-hit {
                                width: 100%;
                                margin: 0 !important;
                                padding: 0 !important;

                                & .ais-hit--picture {
                                    width: 100%;
                                    height: auto;
                                    aspect-ratio: 1/1;
                                    overflow: hidden;
                                    position: relative;

                                    & img {
                                        height: 100%;
                                        width: 100%;
                                        object-fit: cover;
                                    }
                                }

                                & .ais-hit--details {
                                    margin-top: 20px;
                                    display: flex;
                                    flex-direction: column;

                                    & * {
                                        margin-top: 0 !important;
                                    }

                                    & .ais-hit--subtitle {
                                        order: 0;
                                        font-weight: 400;
                                        font-family: Archivo, sans-serif;
                                        color: rgb(48, 34, 26);
                                        font-size: 11px;
                                        line-height: 11px;
                                        letter-spacing: 1.1px;
                                        text-transform: uppercase;
                                        margin-bottom: 8px;

                                        & span:not(:last-child) {
                                            display: none;
                                        }
                                    }

                                    & .ais-hit--title {
                                        order: 1;
                                        font-weight: 500;
                                        font-family: Archivo, sans-serif;
                                        color: rgb(48, 34, 26);
                                        font-size: 15px;
                                        line-height: 22.5px;
                                        letter-spacing: normal;
                                        text-transform: uppercase;
                                        margin-bottom: 8px;
                                        word-wrap: break-word;
                                        overflow-wrap: break-word;
                                        white-space: normal;
                                        
                                        & * {
                                            word-wrap: break-word;
                                            overflow-wrap: break-word;
                                            white-space: normal;
                                        }
                                    }

                                    & .ais-hit--price {
                                        order: 2;

                                        & b {
                                            color: rgb(156, 2, 2);
                                            font-family: 'Archivo', sans-serif;
                                            font-size: 15px;
                                            font-weight: 400 !important;
                                            letter-spacing: 0.3px;
                                            line-height: 15px;
                                        }

                                        & .ais-hit--price-striked {
                                            opacity: 80%;
                                        }
                                    }

                                    & .ais-hit--cart {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
}

.custom-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 1%;

    & input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;

        &:checked ~ .checkmark {
            background-color: #30221A;

            &:after {
                display: block;
            }
        }
    }

    & .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 17px;
        width: 17px;
        background-color: #eee;
        border-radius: 50%;

        &:after {
            content: "";
            position: absolute;
            display: none;
            top: 5px;
            left: 5px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: white;
        }
    }

}

body.child-store {

    & #omnisend-forms-wrapper {
        display: none;
    }
}

.checkout-button {
    border-radius: 0;

    & .amount {
        display: none;
    }
}


.hidden {
    display: none !important;
}

.hidden-opacity {
    opacity: 0 !important;
}

#algolia-shopify-instantsearch.ais-results-size-preload {
    visibility: hidden;
}

/* PLP */
.ais-page .product-card a,
.ais-page .product-card div,
.ais-page .product-card input,
.ais-page .product-card li,
.ais-page .product-card p,
.ais-page .product-card span,
.ais-page .product-card ul {
    box-sizing: border-box;
    font-size: inherit;
    line-height: inherit;
}

.ais-page .product-card a {
    color: var(--color-accent);
}

.ais-page .product-card--badges .badge {
    font-size: 10px;
    padding: 0 10px;
    line-height: 0;
}

.ais-page .product-card-info .product-card-vendor {
    margin-bottom: 8px;
    font-size: .6875rem;
    letter-spacing: .1em;
}

.ais-page .product-card-info .product-card-vendor a{
    color: var(--color-body);
}

.ais-page .product-card-title {
    font-size: calc(var(--font-product-title-scale, 1) * .9375rem) !important;
    line-height: calc(var(--font-product-title-line-height-scale, 1) * 1.5) !important;
    font-weight: var(--font-body-medium-weight, 500) !important;
    letter-spacing: normal !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.ais-page .product-card-sizes--container {
    padding: 8px;
}

.ais-page .product-card-sizes--size {
    padding: 0 6px;
    font-size: .75rem !important;
}

.ais-page .product-card-sizes--remaining {
    font-size: .75rem !important;
    margin-left: 10px;
}

.ais-page .product-card-sizes--container:empty {
    display: none !important;
}

.ais-page .column, .ais-page.columns {
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

@media print, screen and (min-width: 48em) {
    .ais-page .column, .ais-page.columns {
      padding-right: 0.9375rem;
      padding-left: 0.9375rem; 
    } 
}

.ais-InfiniteHits-loadMore {
    opacity: 0;
    pointer-events: none;
    height: 1px;
    margin: 0;
    padding: 0;
    border: none;
}

.wpd-processed .card-price-amount {
    display: none;
}