/* Passkeys: the list on the profile (profiles/_passkeys) and the offer after signing in (profiles/passkeys/new) */

.passkey-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.passkey-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
}

.passkey-list__icon {
  display: inline-flex;
  color: var(--color-text-muted);

  svg {
    width: var(--icon-md);
    height: var(--icon-md);
  }
}

.passkey-list__body {
  flex: 1;
  min-width: 0;
}

.passkey-list__name {
  font-weight: var(--weight-medium);
}

.passkey-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.passkey-offer {
  max-width: 32rem;
  margin: var(--space-8) auto;
  text-align: center;
}

.passkey-offer__icon {
  display: inline-flex;
  justify-content: center;
  color: var(--color-primary);

  svg {
    width: 3rem;
    height: 3rem;
  }
}

.passkey-offer__title {
  font-size: var(--text-2xl);
}

.passkey-offer__actions {
  justify-content: center;
}

/* The add button wraps on a narrow phone instead of running off the card */
#passkeys [data-action="passkey#start"] {
  max-width: 100%;
  white-space: normal;
}
