.custom-nyp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #d6d6d6;
  border-radius: 5px;
  outline: none;
  border: none;
  box-shadow: none;
}

/* Remove focus outline */
.custom-nyp-slider:focus {
  outline: none;
  box-shadow: none;
}

/* Track (Chrome, Safari) */
.custom-nyp-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #d6d6d6;
  border-radius: 5px;
  box-shadow: none;
  border: none;
}

/* Thumb (Chrome, Safari) */
.custom-nyp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: none;
  border: none;
}

/* Firefox track */
.custom-nyp-slider::-moz-range-track {
  height: 6px;
  background: #d6d6d6;
  border-radius: 5px;
  border: none;
  box-shadow: none;
}

/* Firefox thumb */
.custom-nyp-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: none;
}

.custom-nyp-slider-wrap {
  width: 100%;
  font-family: sans-serif;
}

/* Slider container for positioning bubble */
.custom-nyp-slider-container {
  position: relative;
  width: 100%;
}

/* Slider base */
.custom-nyp-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
}

/* Track fill (optional gradient effect) */
.custom-nyp-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    to right,
    #000 0%,
    #000 var(--progress, 0%),
    #ddd var(--progress, 0%),
    #ddd 100%
  );
  border-radius: 4px;
}

.custom-nyp-slider::-moz-range-track {
  height: 4px;
  background: #ddd;
  border-radius: 4px;
}

/* Thumb */
.custom-nyp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin-top: -5px;
}

.custom-nyp-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

/* Floating value bubble */
.custom-nyp-slider-value {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.custom-nyp-slider-wrap {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 15px;
  margin: 40px 0;
}

.custom-nyp-slider-wrap {
  width: 100%;
  font-family: sans-serif;
}

/* Labels */
.custom-nyp-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #000;
  font-weight: 600;
  margin-bottom: 0;
}

/* Container */
.custom-nyp-slider-container {
  position: relative;
  width: 100%;
  height: auto;
}

/* Track */
.custom-nyp-track {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
}

/* Progress fill */
.custom-nyp-progress {
  position: absolute;
  height: 100%;
  background: #000;
  border-radius: 2px;
  width: 0%;
}

/* Thumb */
.custom-nyp-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: grab;
  z-index: 2;
}

/* Tooltip */
.custom-nyp-tooltip {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Tooltip arrow */
.custom-nyp-tooltip .arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
}
