/**
 * Каркас попапа (позиционирование, скролл). Оформление — в themes/*.css
 */
body.mega-popup-open {
  overflow: hidden;
}

.mega-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.mega-popup-overlay[hidden] {
  display: none !important;
}

.mega-popup-dialog {
  width: 100%;
  max-width: 420px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mega-popup-title {
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.3;
}

.mega-popup-disclaimer {
  margin: 0 0 20px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.mega-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mega-popup-btn:hover {
  text-decoration: none;
}

.mega-popup-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
