/* UNISOFT Promo Popup — lightweight, CLS-safe (fixed overlay) */
.u-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(12, 18, 25, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.u-promo-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.u-promo-popup.is-no-anim,
.u-promo-popup.is-no-anim .u-promo-popup__dialog {
  transition: none;
}
.u-promo-popup__dialog {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-width: var(--u-promo-max-w, 800px);
  max-height: min(90vh, 100%);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(12, 18, 25, 0.28);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}
.u-promo-popup.is-open .u-promo-popup__dialog {
  transform: none;
}
.u-promo-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #12151a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(12, 18, 25, 0.18);
}
.u-promo-popup__close:hover {
  background: #fff;
}
.u-promo-popup__close:focus-visible {
  outline: 2px solid #0d7a5f;
  outline-offset: 2px;
}
.u-promo-popup__media {
  display: block;
  width: 100%;
  line-height: 0;
}
.u-promo-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85vh, 900px);
  object-fit: contain;
  aspect-ratio: var(--u-promo-ratio, auto);
  background: #f7f9fb;
}
.u-promo-popup__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.u-promo-popup__link:focus-visible {
  outline: 2px solid #0d7a5f;
  outline-offset: -2px;
}
@media (max-width: 767px) {
  .u-promo-popup {
    padding: 12px;
    align-items: center;
  }
  .u-promo-popup__dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 10px;
  }
  .u-promo-popup__close {
    top: 6px;
    right: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .u-promo-popup,
  .u-promo-popup__dialog {
    transition: none;
  }
}
