.root {
  --point-size: 14px;
  --track-height: 8px;
  --track-bg: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
  --slider-color: var(--color-accent-30);
  cursor: pointer;
  width: 100%;
  padding: calc(var(--point-size) / 2) 0;
  border-radius: var(--border-radius-tiny);
  &.disabled {
    --slider-color: var(--color-neutral-60);
    cursor: not-allowed;
    .track {
      pointer-events: none;
    }
  }
}

.track {
  height: var(--track-height);
  background: var(--track-bg);
  position: relative;
  width: 100%;
  border-radius: calc(var(--track-height) / 2);
}

.pointHolder {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - var(--point-size));
  height: 100%;
}

.handle {
  cursor: pointer;
  cursor: -webkit-grab;
  position: absolute;
  width: var(--point-size);
  height: var(--point-size);
  top: calc(50% - var(--point-size) / 2);
  border-radius: 50%;
  background: var(--slider-color);
  border: 1px solid var(--color-neutral-100);
  &.selected,
  &:focus-visible {
    outline: 2px solid var(--color-accent-30);
  }
  &:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
  }
}

.range {
  position: absolute;
  background: var(--slider-color);
  height: 100%;
  top: 0;
  left: 0;
  // transition: all 0.4s ease-out;
  pointer-events: none;
}

.dragging {
  cursor: grab;
}
