/* ============================================================================
   The ways to add an account (js/addaccount.js), one list wherever it is offered: the
   Overview's first-run card and the add-account dialog. Each is a row with an icon, its
   name and a line under it; the crypto row ends in a button for each exchange.
   ============================================================================ */
.add-acct-choices {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.add-acct-choices > li + li {
  border-top: 1px solid var(--line);
}

.add-acct-choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

button.add-acct-choice {
  cursor: pointer;
}

button.add-acct-choice:hover {
  background: var(--sunk);
}

button.add-acct-choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.add-acct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
}

.add-acct-icon svg {
  width: 18px;
  height: 18px;
}

.add-acct-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.add-acct-name {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ink);
}

.add-acct-sub {
  font-size: var(--fs-meta);
  color: var(--ink-3);
}

.add-acct-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

.add-acct-picks {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}

/* Narrow, the exchanges' buttons take a line of their own under the row's words. */
@media (max-width: 480px) {
  .add-acct-choice-picks {
    flex-wrap: wrap;
  }

  .add-acct-choice-picks .add-acct-text {
    flex-basis: calc(100% - 36px - var(--space-3));
  }

  .add-acct-picks {
    flex-basis: 100%;
    padding-left: calc(36px + var(--space-3));
  }

  .add-acct-pick {
    flex: 1;
  }
}
