.alf-step-articles {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.alf-step-articles article + article {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.alf-step-articles h2 {
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.alf-step-articles article > * + * {
  margin-top: .85rem;
}

.alf-step-articles ul,
.alf-step-articles ol {
  padding-inline-start: 1.5rem;
}

.alf-step-articles ul {
  list-style: disc;
}

.alf-step-articles ol {
  list-style: decimal;
}

.alf-step-articles a {
  color: #1d4ed8;
  text-decoration: underline;
}

.alf-step-articles img,
.alf-step-articles video,
.alf-step-articles iframe {
  max-width: 100%;
}

.alf-step-footer {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
}

.alf-ad-overlay {
  position: fixed;
  inset: 0;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  max-height: calc(100% - 1.5rem);
  margin: auto;
  padding: 1rem;
  overflow: auto;
  border: 0;
  border-radius: .75rem;
  background: #fff;
  color: #1e293b;
  text-align: center;
}

.alf-ad-overlay:not([open]),
.alf-ad-overlay [hidden] {
  display: none;
}

/* Give banner scripts layout dimensions while the overlay is waiting to open. */
.alf-ad-overlay[data-alf-ad-pending] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.alf-ad-overlay::backdrop {
  background: rgb(15 23 42 / 80%);
}

.alf-ad-overlay-banner {
  min-width: min(15rem, 65vw);
}

.alf-ad-overlay-banner img,
.alf-ad-overlay-banner iframe {
  max-width: 100%;
  margin-inline: auto;
}

.alf-ad-overlay-actions {
  display: grid;
  min-height: 2.75rem;
  margin-top: .75rem;
  place-items: center;
}

.alf-ad-overlay-close {
  min-height: 2.75rem;
  padding: .5rem 1.25rem;
  border-radius: .375rem;
  color: #fff;
  background: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
}

.alf-ad-overlay-close:hover,
.alf-ad-overlay-close:focus-visible {
  background: #1e40af;
}

body:has(.alf-ad-overlay[open]) {
  overflow: hidden;
}
