/* Promotional carousel modal */
.promotion-modal .modal-dialog {
  width: min(88vw, 560px);
  max-width: 560px;
  margin: 1rem auto;
}

.promotion-modal .modal-content {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%);
}

.promotion-modal .carousel,
.promotion-modal .carousel-inner,
.promotion-modal .carousel-item {
  border-radius: 0.5rem;
}

.promotion-modal .carousel-item {
  text-align: center;
  background: #f7f5ef;
}

.promotion-modal .promotion-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 5rem);
  margin: 0 auto;
  object-fit: contain;
}

.promotion-modal .promotion-close {
  position: absolute;
  z-index: 5;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  color: #173f3a;
  font-size: 1.75rem;
  line-height: 1;
  background: rgb(255 255 255 / 94%);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 18%);
}

.promotion-modal .carousel-control-prev,
.promotion-modal .carousel-control-next {
  width: 12%;
  opacity: 1;
}

.promotion-modal .carousel-control-prev-icon,
.promotion-modal .carousel-control-next-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  background-color: rgb(23 63 58 / 82%);
  background-size: 55%;
  border-radius: 50%;
}

.promotion-modal .carousel-indicators {
  margin-bottom: 0.8rem;
}

.promotion-modal .carousel-indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.25rem;
  background-color: #fff;
  border: 1px solid rgb(23 63 58 / 65%);
  border-radius: 50%;
  opacity: 0.8;
}

.promotion-modal .carousel-indicators .active {
  background-color: #173f3a;
  opacity: 1;
}

@media (max-width: 575.98px) {
  .promotion-modal .modal-dialog {
    width: min(calc(100vw - 1.5rem), 520px);
    max-width: 520px;
    margin: 0.75rem auto;
  }

  .promotion-modal .promotion-image {
    max-height: calc(100dvh - 4rem);
  }

  .promotion-modal .promotion-close {
    top: 0.45rem;
    right: 0.45rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promotion-modal .carousel-item {
    transition: none;
  }
}
