/* Prices (static/pricing.js): the build total panel and the price next to each mod. */
.price-chip {
  margin-left: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap;
}
.price-chip-mine { color: var(--hazard); }
.custom-option-off .price-chip { opacity: 0.5; }

.price-panel { min-width: 0; }
.price-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.price-total-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.price-total-value { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; color: var(--ink); }
.price-total-split { flex-basis: 100%; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }

.price-lines { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
.price-lines th, .price-lines td { border-top: 1px solid var(--rule); padding: 7px 0; vertical-align: top; }
.price-lines th { text-align: left; font: 400 14px var(--font-body); text-transform: none; letter-spacing: 0; color: var(--ink); padding-right: 10px; overflow-wrap: anywhere; }
.price-lines td { text-align: right; white-space: nowrap; }
.price-name { display: block; font-weight: 600; }
.price-detail { display: block; font-size: 12px; color: var(--ink-soft); }
.price-cell { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-mono); }
.price-currency { color: var(--ink-soft); }
.price-input {
  width: 8ch; font: 500 14px var(--font-mono); text-align: right; color: var(--ink);
  background: transparent; border: 1px solid transparent; padding: 3px 4px;
  -moz-appearance: textfield; appearance: textfield;
}
.price-input::-webkit-outer-spin-button, .price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input:hover { border-color: var(--rule); }
.price-input:focus { border-color: var(--hazard); background: var(--asphalt); outline: none; }
.price-fixed { font-family: var(--font-mono); font-size: 14px; padding-right: 5px !important; }
.price-reset {
  display: block; margin: 2px 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer;
  font: 12px var(--font-body); color: var(--hazard); text-decoration: underline;
}

.price-settings { border-top: 1px solid var(--rule); padding-top: 8px; }
.price-settings summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.price-settings[open] summary { margin-bottom: 10px; }
.price-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.price-settings-grid input[type="number"] { width: 100%; font: 500 14px var(--font-mono); padding: 6px; color: var(--ink); background: var(--asphalt); border: 1px solid var(--rule); }
.price-check { grid-column: 1 / -1; font-size: 14px; cursor: pointer; }
.price-check input { accent-color: var(--hazard); }
