/* Sales Tax & VAT — wine red + gold */
.tx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .tx-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.tx-inputs .field { margin-bottom: 18px; }
.tx-inputs small { line-height: 1.45; }

.cur, .pct { position: relative; }
.cur-sym { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 650; pointer-events: none; }
.cur input { padding-left: calc(20px + var(--sym-w, 1ch)); }
.pct span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 650; pointer-events: none; }
.pct input { padding-right: 34px; }
.tx-inputs input[type=text] { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; min-height: 52px; }

.tx-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .12s, background .12s, color .12s;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.tx-out { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.tx-total {
  position: relative; border-radius: 14px; padding: 18px 20px 20px; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 70%, black));
  box-shadow: 0 10px 28px -14px var(--accent);
}
.tx-total span { display: block; font-size: 13.5px; font-weight: 650; opacity: .85; }
.tx-total b { display: block; margin-top: 2px; font: 800 clamp(34px, 5vw, 46px)/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tx-copy { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; box-shadow: none; }
.tx-copy:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.tx-rows { margin: 8px 6px 0; }
.tx-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tx-rows #txParts { display: contents; }
.tx-rows .tx-part { padding-left: 22px; font-size: 14.5px; }
.tx-rows .tx-part dt { color: var(--muted); }
.tx-rows div:last-child { border-bottom: 0; font-weight: 700; }
.tx-rows dt { color: var(--ink-2); font-weight: 550; }
.tx-rows dd { margin: 0; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tx-rows .tx-sum dd { color: var(--accent); }
@media (prefers-color-scheme: dark) { .tx-rows .tx-sum dd { color: var(--link); } }
.tx-sentence { font-size: 14px; margin: 4px 14px 10px; min-height: 1.4em; }
