.promo-popup,
.promo-popup * {
  box-sizing: border-box;
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 13, 28, 0);
  opacity: 0;
  pointer-events: none;
  perspective: 1400px;
  transition: opacity 0.28s ease, background 0.28s ease;
}

.promo-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(8, 13, 28, 0.45);
}

.promo-popup__dialog {
  width: auto;
  max-width: none;
  transform-style: preserve-3d;
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease;
}

.promo-popup.is-visible .promo-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.promo-popup__inner {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
  font-size: 0;
  line-height: 0;
}

.promo-popup__link {
  position: relative;
  display: block;
  max-width: 100%;
  text-decoration: none;
  background: transparent;
  line-height: 0;
}

.promo-popup__link.is-static {
  cursor: default;
}

.promo-popup__image {
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  height: auto;
}

.promo-popup__topbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 18px;
  background: rgba(248, 249, 251, 0.96);
  overflow-x: auto;
  scrollbar-width: none;
}

.promo-popup__topbar.is-hidden {
  display: none !important;
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.promo-popup__topbar.is-centered {
  justify-content: center;
}

.promo-popup__topbar.is-left {
  justify-content: flex-start;
}

.promo-popup__topbar.has-bottom-close {
  padding-right: 156px;
}

.promo-popup__topbar::-webkit-scrollbar {
  display: none;
}

.promo-popup__topbar.is-icons-only {
  display: flex;
  grid-template-columns: none;
  grid-auto-flow: column;
  gap: 12px;
  padding: 8px 10px;
  justify-content: center;
}

.promo-popup__topbar.is-icons-only .promo-popup__topitem {
  font-size: 0;
  line-height: 1;
  gap: 0;
  text-align: center;
  white-space: nowrap;
}

.promo-popup__topbar.is-icons-only .promo-popup__topitem span:last-child {
  display: none;
}

.promo-popup__topbar.is-icons-only .promo-popup__topicon {
  width: 24px;
  height: 24px;
}

.promo-popup__topbar.is-icons-only .promo-popup__topicon svg {
  width: 16px;
  height: 16px;
}

.promo-popup__topitem {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243041;
  font: 700 0.9rem/1 "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.promo-popup__topitem:hover {
  opacity: 0.82;
}

.promo-popup__topitem:focus-visible {
  outline: 2px solid rgba(31, 64, 223, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

.promo-popup__topicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  flex: none;
}

.promo-popup__topicon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.promo-popup__cta {
  position: absolute;
  right: 20px;
  bottom: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  color: #1f40df;
  font: 800 clamp(1.08rem, 2.5vw, 1.65rem) / 1 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.promo-popup__close {
  position: absolute;
  right: 10px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: #fff;
  font: 900 2rem/1 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.promo-popup__close.is-top {
  top: 8px;
  bottom: auto;
}

.promo-popup__close.is-bottom {
  top: auto;
  bottom: 8px;
  font-size: 1.8rem;
}

.promo-popup__close:hover {
  color: #dce7ff;
}

.promo-popup__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.promo-popup.is-closing {
  pointer-events: none;
}

.promo-popup.is-closing.promo-popup--close-flip {
  animation: muniPopupOverlayClose 0.25s ease forwards;
}

.promo-popup.is-closing.promo-popup--close-flip .promo-popup__dialog {
  animation: muniPopupCloseFlip 0.25s ease forwards;
}

.promo-popup.is-visible .promo-popup__dialog.promo-popup--open-flip-slow {
  animation: muniPopupFlipSlow 1.15s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
  transform-origin: center center;
}

.promo-popup.is-visible .promo-popup__dialog.promo-popup--open-flip-strong {
  animation: muniPopupFlipStrong 1.35s cubic-bezier(0.18, 0.88, 0.24, 1) forwards;
  transform-origin: left center;
}

.promo-popup.is-visible .promo-popup__dialog.promo-popup--open-flip-drop {
  animation: muniPopupFlipDrop 1.25s cubic-bezier(0.17, 0.89, 0.26, 1.05) forwards;
  transform-origin: top center;
}

@keyframes muniPopupFlipSlow {
  0% {
    opacity: 0;
    transform: rotateY(-105deg) translateZ(-220px) scale(0.82);
    filter: blur(8px);
  }

  45% {
    opacity: 1;
    transform: rotateY(18deg) translateZ(34px) scale(1.03);
    filter: blur(0);
  }

  68% {
    transform: rotateY(-8deg) translateZ(18px) scale(1.01);
  }

  84% {
    transform: rotateY(3deg) translateZ(8px) scale(1);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0) scale(1);
    filter: blur(0);
  }
}

@keyframes muniPopupFlipStrong {
  0% {
    opacity: 0;
    transform: rotateY(-135deg) translateX(-80px) translateZ(-260px) scale(0.78);
    filter: blur(10px);
  }

  38% {
    opacity: 1;
    transform: rotateY(24deg) translateX(10px) translateZ(50px) scale(1.04);
    filter: blur(0);
  }

  62% {
    transform: rotateY(-14deg) translateX(0) translateZ(24px) scale(1.02);
  }

  82% {
    transform: rotateY(6deg) translateZ(10px) scale(1);
  }

  100% {
    opacity: 1;
    transform: rotateY(0) translateX(0) translateZ(0) scale(1);
  }
}

@keyframes muniPopupFlipDrop {
  0% {
    opacity: 0;
    transform: rotateX(78deg) rotateY(-45deg) translateY(-50px) translateZ(-220px) scale(0.8);
    filter: blur(8px);
  }

  48% {
    opacity: 1;
    transform: rotateX(-12deg) rotateY(10deg) translateY(8px) translateZ(35px) scale(1.03);
    filter: blur(0);
  }

  72% {
    transform: rotateX(6deg) rotateY(-4deg) translateY(-3px) translateZ(15px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: rotateX(0) rotateY(0) translateY(0) translateZ(0) scale(1);
  }
}

@keyframes muniPopupOverlayClose {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes muniPopupCloseFlip {
  from {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.92) rotateY(18deg) translateY(20px);
  }
}

.promo-popup__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.promo-popup-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0d1220;
  color: #fff;
  font: 600 0.72rem/1.15 "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 2147483648;
  opacity: 0;
  visibility: hidden;
}

.promo-popup-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #0d1220 transparent transparent transparent;
}

.promo-popup-tooltip.is-below::after {
  top: auto;
  bottom: 100%;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #0d1220 transparent;
}

@media (max-width: 900px) {
  .promo-popup {
    padding: 16px;
  }

  .promo-popup__inner {
    border-radius: 0;
  }

  .promo-popup__topbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 6px;
    padding: 7px 8px;
    overflow: visible;
  }

  .promo-popup__topbar.has-bottom-close {
    padding-right: 10px;
  }

  .promo-popup__topitem {
    gap: 3px;
    font-size: 0.56rem;
    white-space: normal;
    line-height: 1.12;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .promo-popup__topitem span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .promo-popup__topicon {
    width: 20px;
    height: 20px;
  }

  .promo-popup__topicon svg {
    width: 14px;
    height: 14px;
  }

  .promo-popup__topbar.is-icons-only .promo-popup__topicon {
    width: 24px;
    height: 24px;
  }

  .promo-popup__topbar.is-icons-only .promo-popup__topicon svg {
    width: 16px;
    height: 16px;
  }

  .promo-popup__cta {
    right: 14px;
    bottom: 60px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 1rem;
  }

  .promo-popup__close {
    right: 6px;
    width: 30px;
    height: 30px;
    font-size: 1.7rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  }

  .promo-popup__close.is-top {
    top: 6px;
  }

  .promo-popup__close.is-bottom {
    bottom: 6px;
    font-size: 1.6rem;
  }
}
