/* Overlay base */
.mw-sp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 9998;
}

/* Popup container */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

/* When active (fade in) */
.mw-sp-overlay.is-visible,
.popup.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup wrapper */
.popup-wrapper {
  text-align: center;
  background: #fff;
  width: 600px;
  max-width: 92vw;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(47,76,103,.2);
  border-top: 11px solid #f7b31f;
  position: relative;
}

/* Close button */
.mw-sp-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: .5 !important;
  cursor: pointer;
  background: none !important;
  padding: 0 !important;
  font-size: 49px !important;
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
}

/* Prevent scroll when popup is open */
body.mw-sp-lock {
  overflow: hidden;
}
