/* === Слайдер: общий стиль === */
.credit-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    #5fb02d 0%,
    #5fb02d var(--progress, 0%),
    #e5e7eb var(--progress, 0%),
    #e5e7eb 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

/* Десктопная версия — более высокий трек */
.credit-slider.desktop {
  height: 30px;
}

/* === Ползунок (thumb) === */
.credit-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5fb02d;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.credit-slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5fb02d;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

/* Анимация при наведении и нажатии */
.credit-slider::-webkit-slider-thumb:hover,
.credit-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.credit-slider::-webkit-slider-thumb:active,
.credit-slider::-moz-range-thumb:active {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .credit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5fb02d;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
  }
}

/* commonslider */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  border-radius: 10px !important;
  background: #e5e7eb;
  border-radius: 2px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #5fb02d;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
.slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #5fb02d;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 48rem) {
  .slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
}

.slider::-moz-range-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.progress-fill {
  height: 100%;
  background: #5fb02d;
  border-radius: 8px;
  width: 0%;
  transition: width 0.3s ease;
}
