.po-hp-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.po-hp-popup[hidden] {
  display: none !important;
}

.po-hp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 45, 0.72);
  backdrop-filter: blur(2px);
}

.po-hp-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  background: #0b0b0b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: po-hp-popup-in 0.28s ease-out;
}

.po-hp-popup__body {
  max-height: min(88vh, 900px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.po-hp-popup__image {
  display: block;
  width: 100%;
  height: auto;
}

.po-hp-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f37021;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.po-hp-popup__close:hover,
.po-hp-popup__close:focus-visible {
  background: #002147;
  outline: none;
}

@keyframes po-hp-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .po-hp-popup {
    padding: 10px;
  }

  .po-hp-popup__dialog {
    max-height: 90vh;
    border-radius: 10px;
  }

  .po-hp-popup__body {
    max-height: 90vh;
  }

  .po-hp-popup__close {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

body.po-hp-popup-open {
  overflow: hidden;
}
