/* hcg-carousel base styles */

.hcg-carousel {
  position: relative;
  box-sizing: border-box;
  --hcg-carousel-slides: 1;
  --hcg-carousel-gap: 0px;
  --hcg-carousel-duration: 400ms;
  --hcg-carousel-easing: ease;
}

.hcg-carousel *,
.hcg-carousel *::before,
.hcg-carousel *::after {
  box-sizing: border-box;
}

.hcg-carousel-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.hcg-carousel-viewport img,
.hcg-carousel-track img {
  -webkit-user-drag: none;
  user-drag: none;
}

.hcg-carousel-viewport.hcg-carousel-dragging,
.hcg-carousel-viewport.hcg-carousel-dragging * {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}

.hcg-carousel-viewport:active {
  cursor: grabbing;
}

.hcg-carousel-track {
  display: flex;
  gap: var(--hcg-carousel-gap);
  will-change: transform;
  transition: transform var(--hcg-carousel-duration) var(--hcg-carousel-easing);
}

.hcg-carousel-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hcg-carousel-slide {
  flex: 0 0 calc(
    (100% - var(--hcg-carousel-gap) * (var(--hcg-carousel-slides) - 1))
    / var(--hcg-carousel-slides)
  );
  min-width: 0;
}

.hcg-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.hcg-carousel-arrow:hover:not(:disabled) {
  background: #fff;
}

.hcg-carousel-arrow:focus {
  outline: 2px solid #4f7cff;
  outline-offset: 2px;
}

.hcg-carousel-arrow:focus:not(:focus-visible) {
  outline: none;
}

.hcg-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hcg-carousel-prev {
  left: 12px;
}

.hcg-carousel-next {
  right: 12px;
}

.hcg-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hcg-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
}

.hcg-carousel-dot:hover {
  background: #9ca3af;
}

.hcg-carousel-dot:focus {
  outline: 2px solid #4f7cff;
  outline-offset: 2px;
}

.hcg-carousel-dot:focus:not(:focus-visible) {
  outline: none;
}

.hcg-carousel-dot-active,
.hcg-carousel-dot[aria-selected="true"] {
  background: #4f7cff;
}

.hcg-carousel-disabled .hcg-carousel-viewport {
  cursor: default;
  opacity: 0.55;
}

.hcg-carousel-disabled .hcg-carousel-arrow,
.hcg-carousel-disabled .hcg-carousel-dot {
  pointer-events: none;
}
