/* Injected into the page. Token values scoped to the pill — not the full sheet. */

a[data-mm-cashtag] {
  --color-border-muted: #b7bbc866;
  --color-background-muted: #f3f5f9;
  --color-text-default: #121314;
  --color-success-default: #457a39;
  --color-error-default: #ca3542;
}

html[data-theme='dark'] a[data-mm-cashtag],
html[data-theme='dim'] a[data-mm-cashtag] {
  --color-border-muted: #858b9a33;
  --color-background-muted: #1c1d1f;
  --color-text-default: #ffffff;
  --color-success-default: #baf24a;
  --color-error-default: #ff7584;
}

a[data-mm-cashtag],
a[data-mm-cashtag]:link,
a[data-mm-cashtag]:visited,
a[data-mm-cashtag]:hover,
a[data-mm-cashtag]:active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 2px;
  padding: 2px 10px 2px 3px;
  border-radius: 999px;
  border: 1px solid var(--color-border-muted);
  background-color: var(--color-background-muted);
  color: var(--color-text-default) !important;
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 1.2;
  vertical-align: middle;
  text-decoration: none;
  white-space: nowrap;
}

a[data-mm-cashtag] .mm-cashtag-pill-label,
a[data-mm-cashtag] .mm-cashtag-pill-label > span:not(.mm-cashtag-pill-price) {
  color: inherit !important;
}

a[data-mm-cashtag] .mm-cashtag-pill-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

a[data-mm-cashtag] .mm-cashtag-pill-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

a[data-mm-cashtag] .mm-cashtag-pill-price--up {
  color: var(--color-success-default) !important;
}

a[data-mm-cashtag] .mm-cashtag-pill-price--down {
  color: var(--color-error-default) !important;
}
