.carousel-wrapper {
  overflow: hidden;
}

.carousel {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--size-16);
  padding: var(--size-8);
}

@media (--screen-sm-max) {
  .carousel {
    gap: var(--size-8);
  }
}


.carousel__header {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: var(--size-32);
  padding-bottom: var(--size-16)
}

// The specificity inside PromoCard is too high for transition / box-shaodw, so we need to use !important below
.carousel__card,
.carousel__card:hover,
.carousel__card:focus,
.carousel__card:focus-within {
  text-decoration: none;
  transition: none !important;
  box-shadow: none !important;
}

.carousel__card {
  display: block;
  position: relative;
  text-align: left;
  border: none;
  overflow: hidden;
  background: var(--color-background-neutral);
  border-radius: var(--size-32);
  scroll-snap-align: center;
  -webkit-scroll-snap-align: center;
  transition: all 0.4s !important;
}

@media (--screen-xl) {
  .carousel__card {
    min-width: 280px;
    width: 280px;
    height: 280px;
  }
}

@media (--screen-md) {
  .carousel-wrapper  {
    overflow: visible;
  }

  .carousel {
    margin: 0 calc(-1 * var(--size-8));
  }
}


@media (--screen-lg-max) {
  .carousel__card {
    min-width: 242px;
    width: 242px;
    height: 242px;
  }
}


@media (--screen-sm-max) {
  .carousel__card {
    min-width: 336px;
    width: 336px;
    height: 336px;
    scroll-snap-stop: always;
  }
}

.carousel__card:focus, .carousel__card:has(:focus-visible) {
    outline: var(--ring-outline-color) solid var(--ring-outline-width) !important;
    outline-offset: var(--ring-outline-offset) !important;
}

.carousel__card:hover {
  background-color: var(--color-background-neutral-hover);
}

.carousel__card:focus {
  background-color: var(--color-background-neutral-hover);
}

.carousel__card-content {
  height: 100%;
  font-weight: normal;
  padding: var(--size-24);
}

.carousel__indicators {
  display: flex;
  justify-content: center;
  padding-top: var(--size-8);
  gap: var(--size-8);
}

.carousel__indicator {
  width: var(--size-12);
  height: var(--size-12);
  border-radius: var(--size-8);
  background: var(--color-interactive-secondary);
  border: none;
  appearance: none;
  transition: all 0.1s;
}

.carousel__indicator:hover {
  width: var(--size-16)
}

.carousel__indicator--selected,
.carousel__indicator--selected:hover {
  background: var(--color-interactive-primary);
  width: var(--size-24);
}