dialog.nm-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 48px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #505050;
  overflow-y: auto;
  font-family: 'Albert Sans', sans-serif;
  box-shadow: 0 16px 64px #06214333;
}

dialog.nm-popup:not([open]) { display: none; }
dialog.nm-popup::backdrop { background: #06214399; }
html.nm-popup-open { overflow: hidden; }

.nm-popup .nm-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nm-popup .nm-popup__title {
  margin: 8px 0 24px;
  color: #062143;
  font: 500 28px/40px 'Albert Sans', sans-serif;
  overflow-wrap: anywhere;
}

.nm-popup .nm-popup__content,
.nm-popup .nm-popup__content p,
.nm-popup .nm-popup__content li {
  color: #505050;
  font: 400 16px/24px 'Albert Sans', sans-serif;
  overflow-wrap: anywhere;
}

.nm-popup .nm-popup__content p { margin: 0 0 16px; }
.nm-popup .nm-popup__content ul,
.nm-popup .nm-popup__content ol { margin: 0 0 16px; padding-left: 24px; }
.nm-popup .nm-popup__content strong,
.nm-popup .nm-popup__content b { font-weight: 600; }
.nm-popup .nm-popup__content a { color: #39bae5; text-decoration: none; }
.nm-popup .nm-popup__content img { max-width: 100%; height: auto; }

.nm-popup .nm-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  border: 2px solid #39bae5;
  border-radius: 100px;
  color: #39bae5;
  background: #fff;
  font: 500 16px/24px 'Albert Sans', sans-serif;
  text-align: center;
  text-decoration: none;
}

.nm-popup .nm-popup__cta:hover { color: #fff; background: #39bae5; }
.nm-popup :focus-visible { outline: 2px solid #2095ee; outline-offset: 3px; }

@media (max-width: 600px) {
  dialog.nm-popup { padding: 48px 24px 24px; }
}
