/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */
import { css } from "lit";
var slider_styles_default = css`:host {
  --track-size: 0.5em;
  --thumb-width: 1.4em;
  --thumb-height: 1.4em;
  --marker-width: 0.1875em;
  --marker-height: 0.1875em;
}
:host([orientation="vertical"]) {
  width: auto;
}
#label:has(~ .vertical) {
  display: block;
  order: 2;
  max-width: none;
  text-align: center;
}
#description:has(~ .vertical) {
  order: 3;
  text-align: center;
}
#label.has-label ~ #slider.horizontal {
  margin-block-start: 0.5em;
}
#label.has-label ~ #slider.vertical {
  margin-block-end: 0.5em;
}
#slider {
  touch-action: none;
}
#slider:focus {
  outline: none;
}
#slider:focus-visible:not(.disabled) #thumb,
#slider:focus-visible:not(.disabled) #thumb-min,
#slider:focus-visible:not(.disabled) #thumb-max {
  outline: var(--wa-focus-ring);
}
#track {
  position: relative;
  border-radius: 9999px;
  background: var(--wa-color-neutral-fill-normal);
  isolation: isolate;
}
.horizontal #track {
  height: var(--track-size);
}
.vertical #track {
  order: 1;
  width: var(--track-size);
  height: 200px;
}
.disabled #track {
  cursor: not-allowed;
  opacity: 0.5;
}
#indicator {
  position: absolute;
  border-radius: inherit;
  background-color: var(--wa-form-control-activated-color);
}
#indicator:dir(ltr) {
  right: calc(100% - max(var(--start), var(--end)));
  left: min(var(--start), var(--end));
}
#indicator:dir(rtl) {
  right: min(var(--start), var(--end));
  left: calc(100% - max(var(--start), var(--end)));
}
.horizontal #indicator {
  top: 0;
  height: 100%;
}
.vertical #indicator {
  top: calc(100% - var(--end));
  bottom: var(--start);
  left: 0;
  width: 100%;
}
#thumb,
#thumb-min,
#thumb-max {
  z-index: 3;
  position: absolute;
  width: var(--thumb-width);
  height: var(--thumb-height);
  border: solid 0.125em var(--wa-color-surface-default);
  border-radius: 50%;
  background-color: var(--wa-form-control-activated-color);
  cursor: pointer;
}
.disabled #thumb,
.disabled #thumb-min,
.disabled #thumb-max {
  cursor: inherit;
}
.horizontal #thumb,
.horizontal #thumb-min,
.horizontal #thumb-max {
  top: calc(50% - var(--thumb-height) / 2);
}
:is(.horizontal #thumb, .horizontal #thumb-min, .horizontal #thumb-max):dir(ltr) {
  right: auto;
  left: calc(var(--position) - var(--thumb-width) / 2);
}
:is(.horizontal #thumb, .horizontal #thumb-min, .horizontal #thumb-max):dir(rtl) {
  right: calc(var(--position) - var(--thumb-width) / 2);
  left: auto;
}
.vertical #thumb,
.vertical #thumb-min,
.vertical #thumb-max {
  bottom: calc(var(--position) - var(--thumb-height) / 2);
  left: calc(50% - var(--thumb-width) / 2);
}
:host([range]) #thumb-min:focus-visible,
:host([range]) #thumb-max:focus-visible {
  z-index: 4;
  outline: var(--wa-focus-ring);
}
#markers {
  pointer-events: none;
}
.marker {
  z-index: 2;
  position: absolute;
  width: var(--marker-width);
  height: var(--marker-height);
  border-radius: 50%;
  background-color: var(--wa-color-surface-default);
}
.marker:first-of-type,
.marker:last-of-type {
  display: none;
}
.horizontal .marker {
  top: calc(50% - var(--marker-height) / 2);
  left: calc(var(--position) - var(--marker-width) / 2);
}
.vertical .marker {
  top: calc(var(--position) - var(--marker-height) / 2);
  left: calc(50% - var(--marker-width) / 2);
}
#references {
  position: relative;
}
#references slot {
  display: flex;
  justify-content: space-between;
  height: 100%;
}
#references ::slotted(*) {
  color: var(--wa-color-text-quiet);
  font-size: 0.875em;
  line-height: 1;
}
.horizontal #references {
  margin-block-start: 0.5em;
}
.vertical {
  display: flex;
  margin-inline: auto;
}
.vertical #track {
  order: 1;
}
.vertical #references {
  order: 2;
  width: min-content;
  margin-inline-start: 0.75em;
}
.vertical #references slot {
  flex-direction: column;
}
.vertical #references slot {
  flex-direction: column;
}
`;
export {
  slider_styles_default as default
};
