.html-sale-products-page .sale-products-page .page-title {
    margin-bottom: 12px;
}

.sale-stock-availability-notice {
    align-items: flex-start;
    background: #fff8ef;
    border-inline-start: 4px solid #d88942;
    color: #4a4036;
    display: flex;
    font-size: 14px;
    gap: 10px;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 12px 14px;
}

.sale-stock-availability-notice-icon {
    align-items: center;
    background: #d88942;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 20px;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    margin-top: 1px;
    width: 20px;
}

.sale-filters-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    padding: 18px;
}

.sale-filters-heading {
    align-items: center;
    display: flex;
    font-size: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sale-filters-heading-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.sale-filters-heading .sale-filters-heading-clear {
    display: none;
}

.sale-filters-heading-count {
    align-items: center;
    background: #e67e23;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    margin-inline-start: 5px;
    min-width: 22px;
    vertical-align: middle;
}

.sale-filters-close,
.sale-filters-open {
    display: none;
}

.sale-filter-group {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 0;
    padding: 18px 0 0;
}

.sale-filter-group + .sale-filter-group {
    margin-top: 18px;
}

.sale-filter-group legend {
    color: #333;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sale-filter-group-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: space-between;
    min-height: 32px;
    padding: 0;
    text-align: start;
    width: 100%;
}

.sale-filter-group-toggle::after {
    border-bottom: 4px solid transparent;
    border-left: 6px solid #c96c1d;
    border-top: 4px solid transparent;
    content: "";
    height: 0;
    margin-inline-end: 8px;
    transform: rotate(90deg);
    transition: transform .2s ease;
    width: 0;
}

.sale-filter-group-toggle[aria-expanded="false"]::after {
    transform: rotate(0);
}

[dir="rtl"] .sale-filter-group-toggle::after {
    border-left: 0;
    border-right: 6px solid #c96c1d;
    transform: rotate(-90deg);
}

[dir="rtl"] .sale-filter-group-toggle[aria-expanded="false"]::after {
    transform: rotate(0);
}

.sale-filter-group-toggle:focus-visible {
    outline: 2px solid #c96c1d;
    outline-offset: 2px;
}

.sale-filter-group-content {
    padding-top: 10px;
}

.sale-filter-group-content[hidden] {
    display: none;
}

.sale-filter-list,
.sale-category-filter-tree,
.sale-category-filter-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sale-filter-scroll {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-inline-end: 6px;
    scrollbar-color: #d88942 #f5f1ed;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.sale-category-filter-scroll {
    max-height: 440px;
    max-height: min(440px, 52vh);
}

.sale-manufacturer-filter-scroll {
    max-height: 360px;
    max-height: min(360px, 42vh);
}

.sale-filter-scroll::-webkit-scrollbar {
    width: 8px;
}

.sale-filter-scroll::-webkit-scrollbar-track {
    background: #f5f1ed;
    border-radius: 4px;
}

.sale-filter-scroll::-webkit-scrollbar-thumb {
    background: #d88942;
    border-radius: 4px;
}

.sale-filter-scroll::-webkit-scrollbar-thumb:hover {
    background: #c96c1d;
}

.sale-category-filter-row {
    align-items: center;
    display: flex;
    min-height: 36px;
}

.sale-category-filter-row > label {
    flex: 1 1 auto;
    min-width: 0;
}

.sale-category-filter-toggle,
.sale-category-filter-toggle-spacer {
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
}

.sale-category-filter-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #c96c1d;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
}

.sale-category-filter-toggle::before {
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    content: "";
    height: 0;
    transition: transform .2s ease;
    width: 0;
}

.sale-category-filter-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

[dir="rtl"] .sale-category-filter-toggle::before {
    border-left: 0;
    border-right: 6px solid currentColor;
}

[dir="rtl"] .sale-category-filter-toggle[aria-expanded="true"]::before {
    transform: rotate(-90deg);
}

.sale-category-filter-toggle:focus-visible {
    outline: 2px solid #c96c1d;
    outline-offset: 1px;
}

.sale-category-filter-children {
    border-inline-start: 1px solid #ece2d7;
    margin: 3px 0 8px 16px;
    padding-inline-start: 10px;
}

.sale-category-filter-children[hidden] {
    display: none;
}

.sale-filter-list label,
.sale-category-filter-tree label {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 36px;
    text-align: start;
}

.sale-category-filter-tree label > span:not(.sale-filter-count) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sale-filter-list input,
.sale-category-filter-tree input {
    accent-color: #e67e23;
    flex: 0 0 auto;
    height: 18px;
    inset: auto;
    margin: 0;
    position: static;
    width: 18px;
}

.sale-filter-count {
    color: #777;
    margin-inline-start: auto;
}

.sale-filter-actions {
    align-items: center;
    display: flex;
    gap: 15px;
    margin-top: 22px;
}

.sale-filter-apply {
    min-height: 44px;
    padding: 0 20px;
}

.sale-filters-auto-apply .sale-filter-apply {
    display: none;
}

.sale-filters-auto-apply .sale-filter-actions {
    display: none;
}

.sale-filters-panel.sale-filters-loading {
    cursor: progress;
}

.sale-filters-panel.sale-filters-loading .sale-filter-count {
    opacity: .55;
}

.sale-filter-clear {
    align-items: center;
    color: #555;
    display: inline-flex;
    min-height: 44px;
    text-decoration: underline;
}

.sale-active-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.sale-active-filter {
    background: #f1f1f1;
    border-radius: 3px;
    color: #333;
    padding: 7px 10px;
}

.sale-active-filters a {
    margin-inline-start: 4px;
    text-decoration: underline;
}

.sale-filter-overlay {
    display: none;
}

.html-sale-products-page .product-selectors {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.html-sale-products-page .pager {
    overflow: hidden;
}

.html-sale-products-page .pager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 1024px) {
    body.sale-filters-opened {
        overflow: hidden;
    }

    .sale-filters-open {
        align-items: center;
        background: #444;
        border: 0;
        color: #fff;
        display: inline-flex;
        font-size: 14px;
        font-weight: 700;
        gap: 8px;
        justify-content: center;
        margin-bottom: 15px;
        min-height: 44px;
        padding: 0 20px;
        text-transform: uppercase;
    }

    .sale-active-filter-count {
        align-items: center;
        background: #ff9600;
        border-radius: 50%;
        display: inline-flex;
        height: 24px;
        justify-content: center;
        min-width: 24px;
    }

    .html-sale-products-page .side-2 {
        background: #fff;
        bottom: 0;
        display: block;
        float: none;
        height: 100%;
        inset-inline-start: 0;
        margin: 0;
        max-width: 390px;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
        width: min(90vw, 390px);
        z-index: 1102;
    }

    [dir="rtl"] .html-sale-products-page .side-2 {
        transform: translateX(105%);
    }

    .sale-filters-opened.html-sale-products-page .side-2,
    .html-sale-products-page .sale-filters-opened .side-2 {
        transform: translateX(0);
    }

    .sale-filters-panel {
        border: 0;
        min-height: 100%;
        padding: 20px;
    }

    .sale-filters-heading {
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        margin: -20px -20px 12px;
        min-height: 64px;
        padding: 10px 12px 10px 20px;
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .sale-filters-heading .sale-filters-heading-clear {
        display: inline-flex;
        font-size: 13px;
        min-height: 44px;
        padding: 0 4px;
    }

    .sale-filter-group {
        padding-top: 8px;
    }

    .sale-filter-group + .sale-filter-group {
        margin-top: 8px;
    }

    .sale-filter-group-content {
        padding-top: 4px;
    }

    .sale-filter-group-toggle {
        min-height: 44px;
    }

    .sale-filters-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #333;
        display: inline-flex;
        font-size: 32px;
        height: 44px;
        justify-content: center;
        width: 44px;
    }

    .sale-filter-list label,
    .sale-category-filter-tree label {
        min-height: 44px;
    }

    .sale-category-filter-row {
        min-height: 44px;
    }

    .sale-category-filter-toggle,
    .sale-category-filter-toggle-spacer {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .sale-category-filter-scroll {
        max-height: 360px;
        max-height: min(360px, 38vh);
    }

    .sale-manufacturer-filter-scroll {
        max-height: 280px;
        max-height: min(280px, 30vh);
    }

    .sale-filter-overlay {
        background: rgba(0, 0, 0, .55);
        bottom: 0;
        display: block;
        inset-inline: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0;
        transition: opacity .25s ease;
        z-index: 1101;
    }

    .sale-filters-opened .sale-filter-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .html-sale-products-page .product-selectors > div {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .sale-stock-availability-notice {
        font-size: 13px;
        padding: 12px;
    }

    .sale-filters-open,
    .html-sale-products-page .product-sorting,
    .html-sale-products-page .product-page-size {
        width: 100%;
    }

    .html-sale-products-page .product-sorting select,
    .html-sale-products-page .product-page-size select {
        max-width: 100%;
        width: 100%;
    }

    .sale-active-filters {
        align-items: stretch;
        flex-direction: column;
    }
}
