.mpd-slider-x {
  min-width: 0;
}

.mpd-slider-x-wrap {
  display: flex;
  gap: var(--mpd-slider-x-gap, 10px);
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--mpd-slider-x-scroll-padding, 0px);
  scroll-snap-type: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mpd-slider-x-wrap::-webkit-scrollbar {
  display: none;
}

.mpd-slider-x-slide,
.mpd-slider-x-wrap > * {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.mpd-slider-is-snapping .mpd-slider-x-wrap {
  scroll-snap-type: x mandatory;
}

.mpd-slider-x-dragging .mpd-slider-x-wrap {
  cursor: grabbing;
  scroll-behavior: auto;
}

.mpd-slider-x-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.mpd-slider-x-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--mpd-color-primary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mpd-slider-x-dot.is-active,
.mpd-slider-x-dot.active {
  background: var(--mpd-color-primary);
}

.mpd-slider-hide-dots .mpd-slider-x-dots,
.mpd-slider-hide-dots .mpd-slider-dots {
  display: none;
}

.mpd-slider-main {
  box-shadow: var(--mpd-shadow-sm);
}

.mpd-slider-thumb {
  box-shadow: var(--mpd-shadow-sm);
  transition: border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mpd-slider-thumb:hover,
.mpd-slider-thumb:focus-visible,
.mpd-slider-thumb.is-active,
.mpd-slider-thumb[aria-current="true"] {
  box-shadow: var(--mpd-shadow-md);
  transform: scale(1.012);
}

.mpd-slider-thumb:active {
  box-shadow: var(--mpd-shadow-null);
  transform: scale(0.985);
}

.mpd-slider-thumb.is-active,
.mpd-slider-thumb[aria-current="true"] {
  border-width: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .mpd-slider-thumb {
    transition: none;
  }

  .mpd-slider-thumb:hover,
  .mpd-slider-thumb:focus-visible,
  .mpd-slider-thumb.is-active,
  .mpd-slider-thumb[aria-current="true"],
  .mpd-slider-thumb:active {
    transform: none;
  }
}
