.ad-slider[hidden],
.ad-slider-arrow[hidden],
.ad-slider-dots[hidden] {
  display: none !important;
}

.ad-slider {
  width: 100%;
  overflow: hidden;
  background: var(--paper, #fff);
}

.ad-slider.is-pending {
  visibility: hidden;
}

.ad-slider-frame {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.ad-slider-track {
  position: relative;
  width: 100%;
  height: clamp(240px, 30vw, 430px);
  overflow: hidden;
  background: var(--paper, #fff);
}

.ad-slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.ad-slider-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.ad-slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ad-slider-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(12, 16, 34, 0.62);
  color: #fff;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ad-slider-arrow:hover,
.ad-slider-arrow:focus-visible {
  background: rgba(12, 16, 34, 0.88);
}

.ad-slider-previous {
  left: clamp(10px, 2.5vw, 32px);
}

.ad-slider-next {
  right: clamp(10px, 2.5vw, 32px);
}

.ad-slider-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.ad-slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(12, 16, 34, 0.45);
  cursor: pointer;
}

.ad-slider-dot[aria-current="true"] {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(12, 16, 34, 0.5);
}

@media (max-width: 640px) {
  .ad-slider-track {
    height: clamp(140px, 47vw, 220px);
  }

  .ad-slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .ad-slider-dots {
    bottom: 8px;
    gap: 12px;
  }

  .ad-slider-dot {
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .ad-slider-track {
    height: clamp(210px, 34vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-slider-slide {
    transition: none;
  }
}
