.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(--primary) 0%,
    var(--primary) var(--range-progress),
    #D9D9D9 var(--range-progress),
    #D9D9D9 100%
  );
  border-radius: 0 0 12px 12px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  transform: translateY(-4px);
  background: radial-gradient(
    circle at center,
    var(--white) 4px,
    var(--primary) 4px
  );
  border-radius: 999px;
}

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

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

.custom-range::-moz-range-thumb {
  height: 12px;
  width: 12px;
  transform: translateY(-4px);
  background: var(--primary);
}

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