/* POPBiz. ブランド表記のみ Impact を適用 */
.brand-popbiz {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

/* MFA 体験ページ: エラー・成功・処理中（body 直下の全画面オーバーレイ＋中央） */

.mfa-test-feedback {
  display: none;
  pointer-events: none;
}

.mfa-test-feedback.mfa-test-feedback--open {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  box-sizing: border-box;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

.mfa-test-feedback.mfa-test-feedback--open .result-message:not(.hidden),
.mfa-test-feedback.mfa-test-feedback--open .loading-indicator:not(.hidden) {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: min(28rem, calc(100% - 2rem));
  width: min(28rem, calc(100% - 2rem));
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22);
}

body.mfa-test-feedback-modal-active {
  overflow: hidden;
}

/* MFA体験の流れ */
.mfa-flow-guide {
  margin-top: 0.25rem;
  padding: 1.125rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #475569;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.mfa-flow-guide__title {
  margin: 0 0 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.mfa-flow-guide__steps {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mfa-flow-guide__step {
  margin: 0;
  padding-left: 0.125rem;
}

.mfa-flow-guide__section {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed #e2e8f0;
}

.mfa-flow-guide__section-title {
  margin: 0 0 0.5rem;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .mfa-flow-guide {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .mfa-flow-guide__title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    font-size: 0.9375rem;
  }

  .mfa-flow-guide__steps {
    gap: 0.4375rem;
  }

  .mfa-flow-guide__section {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .mfa-flow-guide__section-title {
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
  }
}
