.price-slider-field {
    min-width: 0;
}

.price-slider-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.price-slider-caption {
    color: var(--bs-secondary-color);
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-slider-stack {
    display: grid;
    gap: 14px;
}

.price-slider-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.price-slider-meta strong {
    min-width: 0;
    color: var(--bs-body-color);
    font-size: .7rem;
    font-weight: 900;
    direction: rtl;
    text-align: left;
}

.price-slider-field.has-price-value .price-slider-meta strong {
    color: var(--bs-primary);
}

.price-range-control {
    --price-range-progress: 0%;
    width: 100%;
    height: 22px;
    margin: 1px 0 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    direction: ltr;
}

.price-range-control::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            var(--bs-primary) 0 var(--price-range-progress),
            rgba(var(--bs-secondary-rgb), .22) var(--price-range-progress) 100%
        );
}

.price-range-control::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(var(--bs-secondary-rgb), .22);
}

.price-range-control::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: var(--bs-primary);
}

.price-range-control::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6.5px;
    appearance: none;
    -webkit-appearance: none;
    border: 3px solid var(--bs-body-bg);
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), .28), 0 3px 8px rgba(15, 23, 42, .16);
    transition: transform .15s ease, box-shadow .15s ease;
}

.price-range-control::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid var(--bs-body-bg);
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), .28), 0 3px 8px rgba(15, 23, 42, .16);
}

.price-range-control:hover::-webkit-slider-thumb,
.price-range-control:focus-visible::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .13);
}

.price-range-control:focus-visible {
    outline: none;
}

.global-search-field.price-slider-field {
    align-self: start;
}

.global-search-field.price-slider-field .price-slider-meta {
    margin-top: 6px;
}

[data-bs-theme="dark"] .price-range-control::-webkit-slider-runnable-track {
    background:
        linear-gradient(
            to right,
            var(--bs-primary) 0 var(--price-range-progress),
            rgba(255, 255, 255, .18) var(--price-range-progress) 100%
        );
}

[data-bs-theme="dark"] .price-range-control::-moz-range-track {
    background: rgba(255, 255, 255, .18);
}

@media (max-width: 575.98px) {
    .price-slider-input-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .price-slider-meta {
        font-size: .65rem;
    }

    .price-slider-meta strong {
        font-size: .68rem;
    }

    .price-range-control {
        height: 28px;
    }

    .price-range-control::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
        margin-top: -8.5px;
    }

    .price-range-control::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
}
