.sliderContainer {
  position: relative;
  --outline: 1px solid var(--ds-color-base-default);
  --outline-offset: 1px;
  --border-radius: var(--ds-border-radius-md);
  --selected-square-colour: var(--ds-color-base-active);
  --unselected-square-colour: var(--ds-color-surface-tinted);
  --hover-square-color: var(--ds-color-base-hover);
  --slider-width: min(100%, 500px);
  --thumb-width: calc(var(--slider-width) / 12);
  --slider-height: clamp(0.3rem, 2vw, 3rem);
  max-width: var(--slider-width);
}

.sliderContainer.disabled {
  opacity: 0.3;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  aspect-ratio: 12;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  cursor: pointer;
  margin: 0;
  outline-offset: var(--outline-offset);
  outline: var(--outline);
  padding: 0;
  width: var(--slider-width);
  height: var(--slider-height);
}

.range:disabled {
  --thumb-background-colour: var(--ds-color-base-default);
  cursor: not-allowed;
}

.range::-webkit-slider-runnable-track {
  aspect-ratio: 12;
  background: var(--background);
  border-radius: var(--border-radius);
  height: var(--slider-height);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb-width);
}

.range::-moz-range-track {
  background: var(--background);
  border-radius: var(--border-radius);
}

.range::-moz-range-thumb {
  visibility: hidden;
  width: var(--thumb-width);
}

datalist {
  align-items: center;
  aspect-ratio: 12;
  border-radius: var(--border-radius);
  color: white;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: var(--slider-width);
  height: 100%;
  z-index: 1;
}

.option {
  display: flex;
  width: 100%;
  text-align: center;
  justify-content: center;
  height: 100%;
  align-items: center;
}

.option:first-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.option:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.option.outside {
  color: var(--ds-color-text-default);
}
