/* /azure/promo-popup-widget/assets/css/promo-popup-widget.css */
.az-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.az-promo-popup[hidden] {
  display: none;
}

.az-promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.az-promo-popup__dialog {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.az-promo-popup__media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  overflow: hidden;
  border-radius: 18px;
}

.az-promo-popup__media::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: min(92%, 680px);
  height: min(24vw, 190px);
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(110, 212, 255, 0.85) 0%, rgba(110, 212, 255, 0.52) 30%, rgba(87, 168, 255, 0.28) 56%, rgba(87, 168, 255, 0.12) 74%, rgba(87, 168, 255, 0) 100%);
  filter: blur(44px);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.az-promo-popup__media::after {
  content: '';
  position: absolute;
  inset: -8% -22%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0) 72%
  );
  transform: translateX(-135%) skewX(-18deg);
  opacity: 0;
  animation: az-promo-popup-shimmer 1.6s ease-out 0.45s 1 forwards;
}

.az-promo-popup__media img {
  display: block;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(700px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(100, 210, 255, 0.16),
    0 0 56px rgba(82, 168, 255, 0.1),
    0 24px 80px rgba(15, 23, 42, 0.38);
}

@keyframes az-promo-popup-shimmer {
  0% {
    transform: translateX(-135%) skewX(-18deg);
    opacity: 0;
  }

  12% {
    opacity: 0.7;
  }

  62% {
    opacity: 0.55;
  }

  100% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

.az-promo-popup__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
}

.az-promo-popup__close:hover {
  background: #ffffff;
}

.az-promo-popup__close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

html.az-promo-popup-open,
body.az-promo-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .az-promo-popup__dialog {
    padding: 16px;
  }

  .az-promo-popup__media img {
    max-width: min(700px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    border-radius: 14px;
  }

  .az-promo-popup__media {
    border-radius: 14px;
  }

  .az-promo-popup__media::before {
    bottom: 0;
    width: min(96%, 460px);
    height: min(28vw, 130px);
    filter: blur(30px);
  }

  .az-promo-popup__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}
