.filterByPrice {
    cursor: default;
}

.filterByPrice .dropdown_title {
    cursor: pointer;
}

.filterByPrice.open > .dropdown_content {
    max-height: 22rem;
}

.price-range-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-start: 0.35rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 1px 2px rgb(255 103 29 / 35%);
    vertical-align: middle;
}

.price-range-dot[hidden] {
    display: none;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 0.2rem 0.1rem 0.9rem;
    direction: rtl;
}

.price-range__field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: text;
}

.price-range__field input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: center;
    direction: ltr;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.price-range__field input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgb(255 103 29 / 22%);
}

.price-range__unit {
    flex: 0 0 auto;
    min-width: 2.4rem;
    font-size: 0.75rem;
}

.price-range__step {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-align: center;
}

.filterByPrice .range-slider {
    position: relative;
    height: 44px;
    margin: 0.35rem 18px 0.15rem;
    direction: ltr;
    touch-action: none;
}

.filterByPrice .range-track,
.filterByPrice .progress {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.filterByPrice .range-track {
    left: 0;
    right: 0;
    background: #e6e6e6;
    z-index: 0;
}

.filterByPrice .progress {
    right: 0;
    left: 0;
    background: var(--primary);
    z-index: 1;
}

.filterByPrice .range {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    direction: rtl;
    outline: none;
}

.filterByPrice .range--min {
    z-index: 2;
}

.filterByPrice .range--max {
    z-index: 3;
}

.filterByPrice .range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.filterByPrice .range::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--primary);
    box-shadow: 0 1px 3px rgb(0 0 0 / 28%);
    cursor: pointer;
}

.filterByPrice .range::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.filterByPrice .range::-moz-range-thumb {
    pointer-events: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--primary);
    box-shadow: 0 1px 3px rgb(0 0 0 / 28%);
    cursor: pointer;
}

.filterByPrice .range:focus-visible::-webkit-slider-thumb,
.filterByPrice .range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgb(255 103 29 / 35%), 0 1px 3px rgb(0 0 0 / 28%);
}

.shop_filter_empty {
    width: 100%;
    margin: 2.2rem 0;
    color: var(--text-secondary);
    font-weight: 700;
    text-align: center;
}

@media (pointer: coarse) {
    .filterByPrice .range::-webkit-slider-thumb,
    .filterByPrice .range::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }

    .filterByPrice .range::-webkit-slider-thumb {
        margin-top: -14px;
    }
}

@media screen and (max-width: 800px) {
    .shop_sidebar__inner {
        flex-wrap: wrap;
    }

    .filterByPrice {
        flex: 1 0 100%;
        width: 100%;
    }
}
