.vps-range {
    position: relative;
    width: 100%;
}

.vps-range__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vps-range__track-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
    overflow: visible;
}

.vps-range__slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 6px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--blue) 0%,
        var(--blue) var(--range-progress, 0%),
        var(--bg-color-hover) var(--range-progress, 0%),
        var(--bg-color-hover) 100%
    );
    cursor: pointer;
    outline: none;
}

.vps-range__slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(23, 95, 204, 0.25);
}

.vps-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 2px 8px rgba(23, 95, 204, 0.35);
    cursor: grab;
}

.vps-range__slider:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.vps-range__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 2px 8px rgba(23, 95, 204, 0.35);
    cursor: grab;
}

.vps-range__slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.vps-range__ticks {
    display: none;
}

.service-calc-group.service-calc-group_100 .vps-range__track-wrap {
    padding-bottom: 28px;
}

.service-calc-group.service-calc-group_100 .vps-range__ticks {
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 22px;
    height: 24px;
    pointer-events: none;
}

.vps-range__tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vps-range__tick-mark {
    display: block;
    width: 2px;
    height: 6px;
    border-radius: 1px;
    background: var(--bg-color-hover);
}

.vps-range__tick-label {
    font-size: 11px;
    line-height: 1;
    color: var(--mute);
    white-space: nowrap;
}

.vps-range__value.qty-wrap {
    flex-shrink: 0;
    gap: 6px;
    min-width: 88px;
    padding: 12px 16px;
}

.vps-range__value .qty-field {
    width: 3ch;
    min-width: 32px;
    font-weight: 600;
    color: var(--blue);
}

.vps-range__unit {
    font-size: 14px;
    color: var(--mute);
    white-space: nowrap;
}

.service-calc-group.fg1 .vps-range__row,
.service-calc-group:not(.service-calc-group_100):not(.service-calc-group_wide) .vps-range__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.service-calc-group.fg1 .vps-range__value.qty-wrap,
.service-calc-group:not(.service-calc-group_100):not(.service-calc-group_wide) .vps-range__value.qty-wrap {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

@media (max-width: 540px) {
    .vps-range__row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .vps-range__value.qty-wrap {
        width: 100%;
        min-width: 0;
    }

    .service-calc-group.service-calc-group_100 .vps-range__track-wrap {
        padding-bottom: 24px;
    }

    .vps-range__tick-label {
        font-size: 10px;
    }
}
