/* Coin colours for .coin-cp, .coin-sp, .coin-gp and .coin-pp (U31, U32).
   Colours live in tokens.css. Contrast on #fff: cp 7.1, sp 6.1, gp 6.3, pp text on chip 8.1. Print is black. */
.coin { white-space: nowrap; }
/* A small metal dot makes each denomination recognisable; the unit text still carries the meaning. */
.coin-cp::before, .coin-sp::before, .coin-gp::before, .coin-pp::before {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .3em; border-radius: 50%;
  border: 1px solid rgba(43, 38, 34, .45); vertical-align: -.02em;
}
.coin-cp::before { background: var(--wm-coin-dot-cp); }
.coin-sp::before { background: var(--wm-coin-dot-sp); }
.coin-gp::before { background: var(--wm-coin-dot-gp); }
.coin-pp::before { background: var(--wm-coin-dot-pp); }
.coin-cp { color: var(--wm-coin-cp); }
.coin-sp { color: var(--wm-coin-sp); }
.coin-gp { color: var(--wm-coin-gp); }
.coin-pp { color: var(--wm-coin-pp); background: var(--wm-coin-pp-bg); padding: 0 .25em; border-radius: .2em; }
@media print {
  .coin { color: #000 !important; background: none !important; padding: 0; }
  .coin::before { display: none; }
}

/* Coin input widget (U84 S1): four cells, one row on wide screens, a 2 x 2 grid below 576 px.
   All four labels are plain text with a dot; platinum has no dark pill here (the display pill is unchanged). */
.wm-coin-input { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 28rem; }
.wm-coin-input-cell { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.wm-coin-input-cell input { min-width: 4.5rem; flex: 1 1 auto; max-width: none; }
.wm-coin-input .wm-coin-label { flex: none; background: none; padding: 0; }
.wm-coin-input .coin-pp.wm-coin-label { color: var(--wm-coin-pp-text); }
@media (max-width: 575.98px) { .wm-coin-input { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
