/* What the AI agents being bought cost together. Before a system is chosen it shows the price of one; after, the total
   for the count picked under a mark that names it. Every rule starts at .buy-total, so its cards never restyle its parts. */
.buy-total { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.buy-total[hidden] { display: none; }
.buy-total .buy-total-mark {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  line-height: 1.3; color: var(--ok);
}
.buy-total .buy-total-mark::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}
.buy-total .buy-total-mark[hidden] { display: none; }
.buy-total .buy-total-price { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.buy-total .buy-total-price b {
  font-family: var(--mono); font-size: 28px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.buy-total .buy-total-per { font-family: var(--sans); font-size: var(--fs-s); font-weight: 500; color: var(--ink-4); }
.buy-total small { max-width: 46ch; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; line-height: 1.45; color: var(--ink-4); }
.buy-total small[hidden] { display: none; }
.buy-total small em { font-style: normal; font-weight: 600; color: var(--ok); }
