.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 0 1.15em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}

.button:hover {
  background: var(--accent-strong);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled, .button[aria-disabled="true"] {
  background: var(--sunken);
  color: var(--ink-faint);
  cursor: default;
}

.button .icon {
  width: 1.15em;
  height: 1.15em;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--ink-faint);
  background: var(--surface);
}

.button--quiet {
  min-height: 36px;
  padding: 0 0.65em;
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.button--quiet:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.button--danger {
  color: var(--danger);
}

.button--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.button--icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

/* On console blue: paper buttons. */
.button--light {
  background: #eef2f7;
  color: var(--console-deep);
}

.button--light:hover {
  background: #fff;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-button:hover {
  text-decoration: underline;
}

.link-button--danger {
  color: var(--danger);
}

.button--money {
  background: var(--money);
  color: var(--console-deep);
}

.button--money:hover {
  background: var(--money-strong);
}

.button--small {
  min-height: 36px;
  padding: 0 0.9em;
  font-size: 0.9rem;
}

.button--large {
  min-height: 52px;
  padding: 0 1.4em;
  font-size: 1.05rem;
}
