.nms-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 8, 6, 0.78);
  opacity: 0;
  transition: opacity 180ms ease;
}

.nms-promo-popup.is-visible {
  display: flex;
  opacity: 1;
}

.nms-promo-popup__dialog {
  position: relative;
  width: min(92vw, 560px);
  max-height: 92vh;
  border: 1px solid rgba(249, 224, 118, 0.55);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.nms-promo-popup__image {
  display: none;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}

.nms-promo-popup__image.is-active {
  display: block;
}

.nms-promo-popup__close,
.nms-promo-popup__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #1e1e1e;
  background: #f9e076;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nms-promo-popup__close {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  font-size: 28px;
  line-height: 1;
}

.nms-promo-popup__nav {
  top: 50%;
  width: 42px;
  height: 42px;
  font-size: 28px;
  transform: translateY(-50%);
}

.nms-promo-popup__nav--prev {
  left: 10px;
}

.nms-promo-popup__nav--next {
  right: 10px;
}

.nms-promo-popup__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nms-promo-popup__dot {
  width: 9px;
  height: 9px;
  border: 1px solid #f9e076;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.nms-promo-popup__dot.is-active {
  background: #f9e076;
}

body.nms-promo-popup-open {
  overflow: hidden;
}

@media only screen and (max-width: 767px) {
  .nms-promo-popup {
    padding: 12px;
  }

  .nms-promo-popup__dialog {
    width: min(96vw, 430px);
    max-height: 88vh;
  }

  .nms-promo-popup__image {
    max-height: 84vh;
  }

  .nms-promo-popup__close {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .nms-promo-popup__nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
