/* Ensures [hidden] hides the modal even if a theme CSS reset overrides the attribute. */
.fim-newsletter__modal[hidden] {
  display: none;
}

/* Full-viewport overlay. */
.fim-newsletter__modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clickable backdrop behind the dialog. */
.fim-newsletter__modal-overlay {
  position: absolute;
  inset: 0;
}

/* Scrollable dialog above the backdrop. */
.fim-newsletter__modal-dialog {
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

/* Close button reset so it is always clickable regardless of theme styles. */
.fim-newsletter__modal-close {
  cursor: pointer;
  border: none;
  background: transparent;
}
