.search-filters__toolbar-container {
    display: block;
    margin: 0 4px;
}

.search-filters__toolbar-inner {
    max-width: 100%;
    margin: 0 auto;
}

.search-filters__toolbar-content {
    padding: 0;
    display: flex;
    align-items: center;
}

.search-filters__toolbar {
    display: flex;
}

.search-filters__toolbar-view-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: var(--rds-toolbar-gap);
    width: 100%;
}

.search-filters__product-count {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    word-break: break-word;
}

.search-filters__product-count {
    text-align: center;
    width: 100%;
}

.search-filters__toolbar-item {
    display: flex;
}

.search-filters__sorting {
    display: flex;
    align-items: center;
}

.search-filters__sort-list {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    z-index: 2;
    right: 0;
    color: rgb(var(--rds-toolbar-text-color));
}

.search-filters__sort-list {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.search-filters__sort-list {
    width: 250px;
    background: rgb(var(--rds-toolbar-background-color));
    right: 0;
    cursor: pointer;
    word-break: break-word;
    border: 1px solid #eee;
    height: auto;
    margin: 0;
    padding: 5px;
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        max-height 0.3s ease;
}

.search-filters__sort-list.search-filters__sort-list-loading {
    overflow: hidden;
}

.search-filters__sort-list.search-filters__sort-list-active {
    display: block;
    opacity: 1;
    max-height: 400px;
    overflow: visible auto;
}

.search-filters__sort-button {
    min-width: 200px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    word-break: break-word;
    gap: 15px;
    color: rgb(var(--rds-toolbar-text-color));
    padding: 2px 10px;
    border: 1px solid #000;
    border-radius: 4px;
}

.search-filters__sort-label {
    margin-right: 10px;
    word-break: break-word;
    font-weight: 700;
    font-size: 16px;
}

.search-filters__sort-button .svg-wrapper {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.search-filters__sort-button {
    font-size: 14px;
}

.search-filters__sort-option {
    min-width: 200px;
    margin: 0;
    padding: 10px 20px;
}

.search-filters__sort-option-item-label-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-filters__view-more-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 16px;
}

.search-filters__page-info {
    font-size: 13px;
    color: rgb(var(--rds-color-base-text), 0.5);
}

.search-filters__load-previous-btn,
.search-filters__load-more-btn {
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(var(--rds-color-border-btn));
    padding: 10px 15px;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    text-decoration: none;
    color: rgb(var(--rds-color-text-btn));
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-color: rgb(var(--rds-color-background-btn));
    letter-spacing: 0.1rem;
    min-height: 42px;
    max-width: 210px;
    border-radius: 5px;
}

.search-filters__load-more-btn {
    display: inline-flex;
}

.search-filters__load-previous-btn {
    display: flex;
    max-width: max-content;
}

.search-filters__no-search-result .search-filters__toolbar-container,
.search-filters__no-search-result .search-filters__filter-tree-column {
    display: none;
}

.search-filters__filter-sort-label {
    font-size: 16px;
}

.search-filters__toolbar-item--product-count {
    font-size: 14px;
    color: rgba(var(--rds-color-foreground), 0.5);
}

.search-filters__scroll-to-top-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 8px;
    justify-content: center;
    clear: both;
    box-shadow: none;
    opacity: 1;
    overflow: hidden;
    cursor: pointer;
    background-color: rgb(var(--rds-color-background-scroll-to-top));
}

.search-filters__scroll-to-top.search-filters__scroll-to-top-btn--visible {
    display: none;
}

.search-filters__scroll-to-top {
    display: none;
    z-index: 5;
    width: auto;
    height: auto;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    position: fixed;
    top: 85%;
    right: 30px;
    clear: both;
    box-shadow: none;
    opacity: 1;
    overflow: hidden;
}

.search-filters__load-previous {
    display: block;
    margin: 5px 4px 0;
}

.search-filters__no-search-result .search-filters__load-previous,
.search-filters__no-search-result .search-filters__load-more {
    display: none;
}

.search-filters__load-previous-text,
.search-filters__load-more-text {
    font-weight: 700;
}

.search-filters__sort-option-item-input {
    opacity: 0;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    height: 30px;
    cursor: pointer;
}

.search-filters__sort-option-item-label {
    position: absolute;
    width: 100%;
    height: 30px;
    top: 0;
    left: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    word-break: break-word;
    word-break: break-word;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-content: center;
    z-index: 2;
}

.search-filters__sort-option-item-label-wrapper:hover,
.search-filters__sort-option-item-label:hover,
.search-filters__sort-option-item-label--active {
    text-decoration: underline;
}

.search-filters__sort-option-item-label--active {
    pointer-events: none;
}

.search-filters__sort-option--loading.search-filters__sort-list-active {
    overflow: hidden;
}

.icon-scroll-to-top {
    transform: rotate(-180deg);
}

.search-filters__load-more {
    display: none;
}

.search-filters__infinite-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-filters__infinite-scroll-text {
    font-size: 13px;
    color: rgb(var(--rds-color-base-text), 0.5);
}

@media screen and (min-width: 768px) {
    .search-filters__scroll-to-top.search-filters__scroll-to-top-btn--visible {
        display: block;
    }
    
    .search-filters__load-previous-btn,
    .search-filters__load-more-btn {
        font-size: 18px;
    }

    .search-filters__toolbar-container {
        margin: 0;
    }

    .search-filters__load-more {
        display: block;
    }

    .search-filters__infinite-scroll {
        display: none;
    }
}
