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

a[data-mm-cashtag] {
  --color-border-muted: #b4b4b566;
  --color-background-muted: #b4b4b528;
  --color-background-default: #ffffff;
  --color-text-default: #131416;
  --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: #ffffff14;
  --color-background-default: #000000;
  --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: 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;
}

html[data-theme='dark'] a[data-mm-cashtag],
html[data-theme='dim'] a[data-mm-cashtag],
html[data-theme='dark'] a[data-mm-cashtag]:link,
html[data-theme='dim'] a[data-mm-cashtag]:link,
html[data-theme='dark'] a[data-mm-cashtag]:visited,
html[data-theme='dim'] a[data-mm-cashtag]:visited,
html[data-theme='dark'] a[data-mm-cashtag]:hover,
html[data-theme='dim'] a[data-mm-cashtag]:hover,
html[data-theme='dark'] a[data-mm-cashtag]:active,
html[data-theme='dim'] a[data-mm-cashtag]:active {
  background: var(--color-background-default);
}

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;
}
