/* File name: carouselHeroStyling.css */

@media only screen and (max-width: 1199px) {
  .main-wrapper {
    padding: 0 16px;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.promo-hero-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100%;
}

.promo-hero-carousel,
.promo-hero-carousel.promo-loaded {
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
  margin: 0 auto;
  max-width: 760px;
  scroll-behavior: smooth;
  background: #ffffff;
  box-shadow: 0 3px 6px #00000029;
}

.promo-hero-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  -ms-overflow-style: none; /* IE & Edge */
  scrollbar-width: none; /* Firefox */
  position: relative;
}

.promo-hero-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

@media (max-width: 375px) {
  .promo-hero-tabs {
    min-height: 100px;
  }
}

.promo-hero-tabs {
  display: flex;
  margin: 16px auto 8px;
  max-width: 760px;
  width: 100%;
  min-height: 60px;
}

.hero-tab {
  width: calc((100% - 48px) / 4);
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font: var(--font-11px-small-regular);
  flex-direction: column;
  flex: 1;
}

.hero-tab:not(:first-child) {
  margin-left: 16px;
}

.hero-tab.active {
  border-bottom: 2px solid #ee3780;
  font-weight: 600;
}

.promo-hero-carousel-container {
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  padding: 0;
  max-width: 380px;
  margin: 0 auto;
  overflow: visible;
}

.promo-hero-card {
  flex: 0 0 100%;
  margin-right: 16px;
  scroll-snap-align: start;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.promo-hero-card:last-child {
  margin-right: 0;
}

.promo-hero-link,
.promo-hero-carousel-wrapper .banner-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.promo-hero-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
}

.promo-hero-content {
  min-height: 227px;
}

.promo-hero-carousel-wrapper img {
  width: 100%;
  max-width: 376px;
  min-height: 160px;
  object-fit: cover;
  aspect-ratio: 4 / 1.5;
}

.promo-hero-section {
  position: relative;
  width: 100%;
}

.promo-hero-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promo-hero-text {
  flex-grow: 1;
  overflow: auto;
}

.promo-hero-text h2 {
  margin: 16px 16px 0;
  font: var(--font-18px-large-semi-bold);
  color: #222;
}

.carousel__slide-p,
.carousel__slide-terms {
  margin: 16px;
  font-weight: 400;
  font-size: 14px;
  color: #333;
  /* height: 111px; */
}

.carousel__slide-p {
  overflow: auto;
}

.promo-hero-button {
  width: 100%;
  border-radius: 0 0 3px 3px;
  font-display: optional;
  padding: 12px 20px;
  font-size: 1rem;
}

/* ------------------- MEDIA QUERIES ------------------- */

@media (min-width: 425px) and (max-width: 767px) {
  .promo-hero-tabs {
    min-height: 70px;
  }

  .promo-hero-carousel-wrapper img {
    aspect-ratio: 3 / 1.5;
  }
  .promo-hero-carousel-wrapper img {
    width: 100%;
    max-width: 100%;
    max-height: 196px;
    object-position: top;
  }
  .carousel__slide-p {
    min-height: 105px;
  }
  .promo-hero-carousel-wrapper,
  .promo-hero-carousel {
    min-height: 468px;
    height: 468px;
  }
}

@media (min-width: 768px) {
  .promo-hero-carousel-wrapper img {
    min-height: 365px;
    max-width: 100%;
  }
  .promo-hero-carousel-wrapper,
  .promo-hero-carousel {
    min-height: 590px;
  }
  .promo-hero-tabs {
    min-height: 40px;
  }
  .carousel__slide-p {
    min-height: 80px;
  }
  .promo-hero-carousel-wrapper,
  .promo-hero-carousel {
    min-height: 598px;
    height: 598px;
  }
  .promo-hero-content {
    min-height: 228px;
  }
}
@media (min-width: 1200px) {
  .promo-hero-carousel,
  .promo-hero-carousel.promo-loaded {
    max-width: 1200px;
  }
}

@media (min-width: 1200px) {
  .hero-tab {
    background: none;
    border: none;
    font: var(--font-14px-body-regular);
  }

  .hero-tab.active {
    border-bottom: 2px solid #ee3780;
    font-weight: 600;
  }

  .promo-hero-tabs {
    min-height: 50px;
  }

  .carousel__slide-p {
    min-height: auto;
  }

  .promo-hero-carousel-wrapper img {
    min-height: 316px;
  }

  .promo-hero-carousel-wrapper,
  .promo-hero-carousel {
    min-height: 310px;
    height: 310px;
  }

  .promo-hero-content {
    min-height: 310px;
  }

  .promo-hero-card {
    margin: 0 auto 0 0;
    display: flex;
    flex-direction: row;
  }

  .promo-hero-link,
  .promo-hero-carousel-wrapper .banner-wrapper {
    flex-direction: row;
    width: 100%;
  }

  .promo-hero-image {
    flex: 0 0 50%;
    padding: 0;
  }

  .promo-hero-content {
    flex: 1;
    padding: 16px;
    justify-content: center;
  }

  .promo-hero-text {
    margin-bottom: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 0;
  }

  .promo-hero-button {
    width: 253px;
    border-radius: 44px;
    margin-left: 16px;
  }

  .promo-hero-carousel-wrapper img {
    width: 50%;
  }
}
