html.email-popup-open, html.email-popup-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.email-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #e1eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(5, 40, 75, .18);
  color: #173a59;
  text-align: left;
}

.email-popup::backdrop {
  background: rgba(5, 25, 45, .35);
  backdrop-filter: blur(4px);
}
.email-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #536d83;
  font-size: 26px;
  cursor: pointer;
}
.email-popup__close:hover { background: #f0f4f8; }
.email-popup__eyebrow { margin: 0 35px 8px 0; color: #52748f; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.email-popup h2 { margin: 0 0 10px; color: #054581; font-size: 23px; line-height: 1.2; }
.email-popup #email-popup-description { margin: 0 0 20px; color: #536d83; font-size: 14px; line-height: 1.5; }
.email-popup label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.email-popup input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #bacbd9; border-radius: 8px; color: #173a59; font: inherit; font-size: 16px; }
.email-popup__submit { width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 8px; background: #789bb9; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: not-allowed; }
.email-popup__notice { margin: 10px 0 0; color: #536d83; font-size: 12px; line-height: 1.4; }
.email-popup__dismiss { display: block; margin: 12px auto 0; padding: 6px 0; border: 0; background: transparent; color: #315d80; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.email-popup :focus-visible { outline: 3px solid #1a73c8; outline-offset: 2px; }

@media (max-width: 600px) {
  .email-popup { padding: 22px; }
}
