:root {
  --sliderBackground: #d9d9d9;
}

.custom-number {
  appearance: none;
  height: 52px;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px 8px;
  width: 100%;
}

.custom-number::-webkit-inner-spin-button,
.custom-number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-number:focus-visible {
  outline: none;
}

@media (max-width: 768px) {
  .custom-number {
    height: auto;
    padding: 12px 12px 8px;
  }
}
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: transparent;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* Для Chrome, Safari, Edge */
.custom-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--primaryColor) 0%,
    var(--primaryColor) var(--range-progress),
    var(--sliderBackground) var(--range-progress),
    var(--sliderBackground) 100%
  );
  border-radius: 0 0 12px 12px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 0px;
  width: 0px;
}

/* Для Firefox */
.custom-range::-moz-range-track {
  width: 100%;
  height: 8px;
  background: var(--sliderBackground);
  border-radius: 0 0 12px 12px;
}

.custom-range::-moz-range-progress {
  height: 8px;
  background: var(--primaryColor);
  border-radius: 0 0 12px 12px;
}

.custom-range::-moz-range-thumb {
  height: 0px;
  width: 0px;
}

/* Focus */
.custom-range:focus {
  outline: none;
}
