fieldset:disabled .price-slider * {
    pointer-events: none;
}

.price-slider,
.price-slider * {
    box-sizing: border-box;
}

.price-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.price-slider__heading {
    color: var(--gray-950);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.price-slider__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.price-slider-inputs {
    display: flex;
    align-items: center;
}

.price-slider-input {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 11px 5px 11px 5px !important;
    margin: 0;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    cursor: text;
}

.price-slider-input_from {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.price-slider-input_to {
    border-left-color: transparent;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.price-slider-input:has(input:focus) {
    border-color: var(--blue);
}

.price-slider-input_to:has(input:focus) {
    border-left-color: var(--blue);
}

.price-slider-input::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    z-index: 2;
    width: 12px;
    background: linear-gradient(to left, var(--white), transparent);
    pointer-events: none;
}

.price-slider-input input {
    color: var(--gray-950);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
    margin: 0;
    padding: 0 0 0 20px;
    border: none;
    outline: none;
    cursor: text;
}

.price-slider-input__prefix {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    color: var(--gray-700);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    padding: 12px 0 12px 6px;
    pointer-events: none;
}

.price-slider-input__content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    padding: 6px 12px 6px 23px;
    overflow: hidden;
    pointer-events: none;
}

.price-slider-input__price-backdrop {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 0 0 2px;
    background-color: var(--white);
}

.price-slider-input input:focus ~ .price-slider-input__content .price-slider-input__price-backdrop {
    visibility: hidden;
}

.price-slider-input input:not(:placeholder-shown) ~ .price-slider-input__content .price-slider-input__price-backdrop {
    color: var(--gray-950);
}

.price-slider-input__currency {
    color: var(--gray-700);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}

.price-slider-input input:not(:placeholder-shown) ~ .price-slider-input__content .price-slider-input__currency {
    color: var(--gray-950);
}

.price-slider-range {
    position: relative;
    height: 24px;
    width: 100%;
}

.price-slider-range__button {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--blue);
    outline: none;
    background-color: var(--white);
    will-change: left;
}

.price-slider-range__button_left {
    left: 0;
    z-index: 2;
}

.price-slider-range__button_right {
    left: calc(100% - 24px);
    z-index: 3;
}

.price-slider-range__button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
}

.price-slider-range::after,
.price-slider-range__filled {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    border-radius: 10px;
}

.price-slider-range::after {
    content: "";
    z-index: 0;
    background-color: var(--gray-300);
}

.price-slider-range__filled {
    z-index: 1;
    background-color: var(--blue);
}

.price-slider-per-night {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-slider-per-night__text {
    color: var(--gray-950);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}
