.site-popup-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-popup-dialog {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 24px));
  max-height: min(92vh, 900px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  color: #172b39;
  background: #fff;
  box-shadow: 0 18px 48px #10263855;
}
.site-popup-dialog[open] { display: flex; flex-direction: column; }
.site-popup-dialog::backdrop { background: #071924a8; }
.site-popup-content { flex: 1 1 auto; min-height: 0; padding: 20px 20px 8px; overflow-y: auto; }
.site-popup-count { margin: 0 0 8px; color: #536977; font-size: .85rem; }
.site-popup-content h2 { margin: 0 0 16px; padding-right: 44px; font-size: clamp(1.1rem, 3vw, 1.5rem); }
.site-popup-content img {
  display: block;
  width: 70%;
  max-height: 42vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #eef3f7;
}
.site-popup-close-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #18384b;
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}
.site-popup-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 20px;
}
.site-popup-actions button {
  min-height: 44px;
  border: 1px solid #bfd0dc;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  color: #18384b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.site-popup-actions button:last-child { background: #18384b; color: #fff; }
.site-popup-dialog button:focus-visible { outline: 3px solid #f39c39; outline-offset: 2px; }

@media (max-width: 420px) {
  .site-popup-content { padding: 16px 16px 8px; }
  .site-popup-actions { padding: 10px 16px 16px; }
  .site-popup-actions button { flex: 1 1 100%; }
}
