/*
 * Sign-up without a wallet (MADE_WALLET_SIGNUP): one tap, the email code's two short forms, and the
 * other ways under them, drawn smaller. Loaded only by the pages that show one of these, after the
 * main stylesheet and X's. Colours and sizes are the main stylesheet's own tokens and numbers.
 */

/* One tap: the first way is the step's one yellow button, and each after it is a quiet one under it. */
.made-tap .button + .button,
.made-tap .button + .setup-form,
.made-tap .setup-form + .button {
  margin-top: 8px;
}

.made-tap .setup-form .field {
  margin-top: 14px;
}

.made-code-again {
  display: block;
  margin: 12px auto 0;
}

.made-consent {
  margin-top: 12px;
}

/*
 * The other ways: a passkey, or the person's own wallet. A shut row under one tap, its label and a
 * caret; opened, the same parts as ever, a size down.
 */
.made-other {
  margin-top: 22px;
  border-top: 1px solid var(--line-on-ink);
}

.made-other-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.made-other-summary::-webkit-details-marker {
  display: none;
}

.made-other-summary .setup-label {
  margin-top: 0;
}

.made-other-summary:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Its own caret, whatever the step around it is doing: down while shut, up when open. */
.made-other:not([open]) .setup-caret {
  margin-top: -4px;
  transform: rotate(45deg);
}

.made-other[open] .setup-caret {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.made-other[open] > .made-other-summary + * {
  margin-top: 4px;
}

.setup .made-other .button {
  height: 42px;
  margin-top: 8px;
  font-size: 14px;
}

.setup .made-other .button + .button {
  margin-top: 8px;
}

.made-other .wallets {
  margin-top: 10px;
}

/* A handle suggested from the account the profile was made with. */
.made-suggested {
  margin-top: 8px;
}

/* The sign-in at Privy again under the made wallet's row, when its session there has ended. */
.made-again {
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--line-on-ink);
}

/*
 * The lock (MADE_WALLET_LOCK): its row and step, the authenticator app's QR code, and the changes
 * that wait on a profile with none.
 */
.made-lock-ways {
  margin-top: 16px;
}

.made-lock-ways .button + .button {
  margin-top: 8px;
}

.made-locks {
  margin-top: 12px;
}

/* The authenticator app's code: a paper tile, as the pay page's is, drawn in the page and sent nowhere. */
.made-lock-qr {
  display: flex;
  justify-content: center;
  width: 176px;
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
}

.made-lock-qr .qr {
  display: block;
  width: 100%;
  height: auto;
  shape-rendering: crispEdges;
}

.made-lock-qr .qr-paper {
  fill: var(--paper);
}

.made-lock-qr .qr-ink {
  fill: var(--ink);
}

.made-lock-secret {
  justify-content: center;
  word-break: break-all;
}

.made-lock-secret code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.made-lock-back {
  display: block;
  margin: 12px auto 0;
}

.made-lock-again {
  margin-top: 16px;
}

.made-lock + .button {
  margin-top: 14px;
}

.made-lock-nudge {
  margin-top: 14px;
}

/* What waits on a profile with no lock: first on the page, each with its own Cancel. */
.made-changes {
  margin: 0 0 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--yellow);
  border-radius: 10px;
}

.made-changes .setup-label {
  margin-top: 0;
  color: var(--yellow);
}

.made-change-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.made-change + .made-change {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-on-ink);
}

.setup .made-change-cancel {
  height: 38px;
  margin-top: 8px;
  font-size: 14px;
}

/*
 * The lock asked for by the page itself (MADE_WALLET_LOCK): Privy needs it before the wallet signs,
 * and what the person gives goes to Privy's own check. A window over the page, in the page's colours.
 */
.lock-ask {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 22px 20px 16px;
  border: 1px solid var(--line-on-ink);
  border-radius: 14px;
  background: var(--card-on-ink);
  color: var(--text-on-ink);
}

.lock-ask::backdrop {
  background: rgb(29 29 27 / 0.72);
}

.lock-ask-head {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
}

.lock-ask .setup-form .field {
  margin-top: 14px;
}

.lock-ask .button {
  width: 100%;
  margin-top: 10px;
}

.lock-ask-cancel {
  display: block;
  margin: 12px auto 0;
}
