/* Passkey explainer is isolated so previously cached auth CSS cannot expose its raw disclosure UI. */
.tfa-passkey-help {
  position: relative;
  margin-top: 0.75rem;
}

.tfa-passkey-help[open] {
  display: flex;
  flex-direction: column;
}

.tfa-passkey-help summary {
  order: 2;
  width: fit-content;
  margin: 0 auto;
  color: var(--tfa-brand-dark);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.tfa-passkey-help summary::marker,
.tfa-passkey-help summary::-webkit-details-marker {
  display: none;
  content: "";
}

.tfa-passkey-help summary:hover {
  color: var(--tfa-brand);
}

.tfa-passkey-help summary:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--tfa-brand-soft);
  outline-offset: 3px;
}

.tfa-passkey-help summary .fa-question-circle {
  margin-right: 0.35rem;
  font-size: 1.15rem;
}

.tfa-passkey-help-card {
  order: 1;
  margin-bottom: 0.75rem;
  padding: 1.35rem 3.5rem 1.35rem 1.35rem;
  border: 1px solid #d8e2ee;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  color: #394150;
}

.tfa-passkey-help-card h3 {
  margin-bottom: 0.75rem;
  color: var(--tfa-brand-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.tfa-passkey-help-card p {
  margin-bottom: 1rem;
  line-height: 1.55;
}

.tfa-passkey-help-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tfa-passkey-help-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.65rem;
  font-weight: 600;
}

.tfa-passkey-help-card li .fa {
  width: 1rem;
  color: var(--tfa-brand-dark);
  text-align: center;
}

.tfa-passkey-help-close {
  display: none;
}

.tfa-passkey-help[open] .tfa-passkey-help-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tfa-brand-dark);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0.3rem var(--tfa-brand-soft);
  color: #172033;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}
