/* Account security uses an open layout; Wordfence owns its enrolment controls. */
.ntb-security-reminder {
  margin-block: 0 24px;
  padding-block: 12px;
  border-block-end: 1px solid var(--ntb-line-strong, #8fa0b2);
  color: var(--ntb-ink, #10243e);
  font-size: 16px;
  line-height: 1.6;
}

.ntb-security-reminder p {
  margin: 0;
  max-width: 75ch;
}

.ntb-account-security {
  min-width: 0;
  max-width: 100%;
  color: var(--ntb-ink, #10243e);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ntb-account-security > h2 {
  margin-block: 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.ntb-account-security > p {
  max-width: 75ch;
  margin-block: 0 16px;
}

.ntb-security-reminder a,
.ntb-account-security > p a {
  color: var(--ntb-blue, #153f73);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ntb-security-reminder a:focus-visible,
.ntb-account-security a:focus-visible,
.ntb-account-security input:focus-visible,
.ntb-account-security button:focus-visible {
  outline: 2px solid var(--ntb-blue, #153f73);
  outline-offset: 3px;
}

/* Scope to the existing NTB form. Wordfence owns the prompt and submission. */
.ntb-auth-form #wfls-prompt-overlay {
  z-index: 2;
  min-height: 240px;
  background: var(--ntb-surface, #fff);
}

.ntb-auth-form #wfls-prompt-wrapper {
  min-width: 0;
}

.ntb-auth-form #wfls-prompt-wrapper p {
  margin: 0 0 16px;
}

.ntb-auth-form #wfls-token {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ntb-ink, #10243e);
  background: #fff;
  border: 1px solid var(--ntb-line-strong, #8fa0b2);
}

.ntb-auth-form #wfls-token-submit {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.ntb-auth-form #wfls-token:focus-visible,
.ntb-auth-form #wfls-token-submit:focus-visible {
  outline: 2px solid var(--ntb-blue, #153f73);
  outline-offset: 3px;
}

/* In supporting browsers, give the challenge its own flow space: no clipped
   absolute overlay and no keyboard focus on the covered password fields.
   Hidden controls stay enabled/serializable for Wordfence's native submission. */
@supports selector(form:has(#wfls-prompt-overlay)) {
  .ntb-auth-form:has(#wfls-prompt-overlay) > :not(#wfls-prompt-overlay):not(script):not(style) {
    display: none;
  }

  .ntb-auth-form #wfls-prompt-overlay {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 0;
  }
}
