/* MailPoet overlay modal (see od-mailpoet-popup in functions.php) */
.od-mailpoet-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.od-mailpoet-popup.is-open {
  display: flex;
}

.od-mailpoet-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.od-mailpoet-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 900px);
  overflow: auto;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
}

.od-mailpoet-popup__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.od-mailpoet-popup__close:hover,
.od-mailpoet-popup__close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.od-mailpoet-popup__form {
  position: relative;
}

body.od-mailpoet-popup-open {
  overflow: hidden;
}
