#mnLegacyPopup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  pointer-events: none;
}

#mnLegacyPopup.is-visible {
  display: block;
  pointer-events: auto;
}

#mnLegacyPopup .mn-legacy-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

#mnLegacyPopup .mn-legacy-popup__frame {
  position: relative;
  width: min(460px, calc(100vw - 24px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a !important;
}

#mnLegacyPopup .mn-legacy-popup__frame *,
#mnLegacyPopup .mn-legacy-popup__content *,
#mnLegacyPopup .mn-legacy-popup__title,
#mnLegacyPopup .mn-legacy-popup__desc,
#mnLegacyPopup .mn-legacy-popup__close,
#mnLegacyPopup .mn-legacy-popup__cta {
  color: #0f172a !important;
}

#mnLegacyPopup .mn-legacy-popup__content {
  background: #ffffff !important;
  padding: 18px 18px 16px;
}

#mnLegacyPopup .mn-legacy-popup__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8 !important;
  background: #dbeafe;
  padding: 5px 9px;
  border-radius: 999px;
}

#mnLegacyPopup .mn-legacy-popup__title {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

#mnLegacyPopup .mn-legacy-popup__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155 !important;
}

#mnLegacyPopup .mn-legacy-popup__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

#mnLegacyPopup .mn-legacy-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

#mnLegacyPopup .mn-legacy-popup__cta--primary {
  background: #2563eb;
  color: #ffffff !important;
  border: 1px solid #2563eb;
}

#mnLegacyPopup .mn-legacy-popup__cta--secondary {
  background: #f8fafc;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

#mnLegacyPopup .mn-legacy-popup__close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  #mnLegacyPopup .mn-legacy-popup__frame {
    top: auto;
    transform: none;
    margin-top: auto;
    margin-bottom: 10px;
    width: calc(100vw - 16px);
    border-radius: 12px;
  }

  #mnLegacyPopup .mn-legacy-popup__content {
    padding: 16px 14px 14px;
  }

  #mnLegacyPopup .mn-legacy-popup__title {
    font-size: 18px;
  }

  #mnLegacyPopup .mn-legacy-popup__actions {
    flex-direction: column;
  }

  #mnLegacyPopup .mn-legacy-popup__cta {
    width: 100%;
  }
}
