.q-slider {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.q-slider__label {
  display: block;
  font-size: 13px;
  line-height: 19.5px;
  color: #4d4d4d;
  margin-bottom: 8px;
  cursor: text;
  text-transform: capitalize;
}
.q-slider__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.q-slider__group {
  min-width: 216px;
  width: 216px;
  position: relative;
  touch-action: none;
  user-select: none;
}
.q-slider__track {
  position: relative;
  height: 8px;
  width: 100%;
  border-radius: 9999px;
  background: #ebebeb;
}
.q-slider__fill {
  position: absolute;
  height: 100%;
  border-radius: 9999px;
  background: var(--q-accent, var(--ss-primary));
}
.q-slider__thumb {
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  width: 6px;
  height: 14px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.21);
  transition: scale 100ms;
  flex-shrink: 0;
}
.q-slider__thumb::after {
  content: '';
  position: absolute;
  inset: -8px;
}
.q-slider__thumb:has(:focus-visible) {
  scale: 1.2;
  outline: 2px solid var(--ss-primary);
  outline-offset: 2px;
  z-index: 2;
}
.q-slider[data-dragging='true'] .q-slider__thumb:has(:focus) {
  scale: 1.2;
  z-index: 2;
}
.q-slider__input {
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  margin: -1px;
  position: fixed;
  top: 0;
  left: 0;
}
.q-slider__field {
  width: 48px;
  flex-shrink: 1;
}
.q-slider__field input {
  appearance: textfield;
}
[data-theme='dark'] .q-slider__field input:not(:disabled) {
  color: #fff;
}
.q-slider__field input::-webkit-inner-spin-button,
.q-slider__field input::-webkit-outer-spin-button {
  appearance: none;
}
.q-slider[data-disabled='true'] .q-slider__group {
  cursor: not-allowed;
}
.q-slider[data-disabled='true'] .q-slider__fill {
  background: #c9c9c9;
}
[data-theme='dark'] .q-slider__label {
  color: #a1a1a1;
}
[data-theme='dark'] .q-slider__track {
  background: #1f1f1f;
}
[data-theme='dark'] .q-slider__thumb {
  box-shadow: 0 0 0 1px #000;
}
[data-theme='dark'] .q-slider[data-disabled='true'] .q-slider__fill {
  background: #454545;
}
