/* Filter chips (brandbook "Wallet" filters): 40 px, field border, one row
   that scrolls sideways. The selected chip is navy (.is-on or
   aria-pressed="true"). */
.mm-chips {
  display: flex;
  gap: var(--mm-space-2);
  margin: -2px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mm-chips::-webkit-scrollbar {
  display: none;
}

.mm-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin: 0;
  padding: 0 var(--mm-space-3);
  border: 1px solid var(--mm-field);
  border-radius: var(--mm-radius-field);
  background: var(--mm-surface);
  color: var(--mm-text);
  font: 500 15px var(--mm-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* base.css gives every :focus-visible a 4 px radius; a chip keeps its own. */
.mm-chip:focus-visible {
  outline: none;
  box-shadow: var(--mm-focus);
  border-radius: var(--mm-radius-field);
}

.mm-chip svg {
  width: 17px;
  height: 17px;
}

.mm-chip em {
  font-style: normal;
  color: var(--mm-muted);
  font-variant-numeric: tabular-nums;
}

.mm-chip.is-on,
.mm-chip[aria-pressed="true"] {
  background: var(--mm-primary);
  border-color: var(--mm-primary);
  color: var(--mm-surface);
}

.mm-chip.is-on em,
.mm-chip[aria-pressed="true"] em {
  color: var(--mm-primary-surface);
}

/* A selected chip's icon takes the chip's white, like its label, whatever
   status colour it carries off (.c-waiting would be dark on navy). */
.mm-chip.is-on svg,
.mm-chip[aria-pressed="true"] svg {
  color: inherit;
}

.mm-chip--icon {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.mm-chip .c-ready {
  color: var(--mm-ready);
}

.mm-chip .c-action {
  color: var(--mm-action);
}

.mm-chip .c-waiting {
  color: var(--mm-waiting);
}
