/*
 * Lobb on X: the Sign in with X button, X's mark, a linked X account, and the page of a handle that
 * is not on Lobb yet. Loaded only by the pages that show one of these, after the main stylesheet.
 * Colours and sizes are the main stylesheet's own tokens and numbers.
 */

.x-logo {
  flex: none;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Sign in with X: the logo, then the words. */
.button--x {
  gap: 10px;
}

/*
 * Beside a yellow button: solid paper with ink text, the same size. It is as easy to find as the
 * yellow one, and the screen still has one yellow button.
 */
.button--x-paper {
  background: var(--paper);
  color: var(--ink);
}

.button--x-paper:hover {
  background: #fff;
}

.button--x-paper:active {
  background: var(--paper2);
}

.setup .button + .button--x-paper,
.setup .ways-passkey + .button--x-paper,
.setup #passkey-none + .button--x-paper {
  margin-top: 8px;
}

.x-consent {
  margin-top: 10px;
}

/* A linked X account: its picture where a wallet has its dot, then X's mark beside the name. */
.x-avatar {
  flex: none;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line-on-ink);
  object-fit: cover;
}

.linked > .x-avatar {
  grid-row: 1 / span 2;
  align-self: center;
}

.linked-name .x-logo,
.x-name .x-logo {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  vertical-align: -1px;
}

/* The lists on the X page and the profile home: what waits to be paid, what waits to be claimed. */
.x-list-label {
  margin-top: 22px;
}

.x-list-label:first-child {
  margin-top: 0;
}

.x-list {
  margin-top: 10px;
}

.x-list + .button,
.x-empty + .button {
  margin-top: 18px;
}

.x-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 18px;
  font-size: 15px;
}

.x-who .x-avatar {
  width: 36px;
  height: 36px;
}

.x-who-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.x-who-handle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.x-waiting {
  margin-bottom: 22px;
}

/* The page of a handle: who it is, then the amount to make wait for them. */
.page-x .wallets + .ask {
  margin-top: 12px;
}

/* A row that says something and leads nowhere. */
.activity-row--still {
  cursor: default;
}

@media (hover: hover) {
  .activity-row--still:hover {
    background: var(--card-on-ink);
  }
}

/* The post a payer sends themselves: the words as they will be posted, then the way to X's composer. */
.x-post {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-on-ink);
  color: var(--text-on-ink);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.x-post + .button {
  margin-top: 12px;
}
