/* Multiple files use the existing calculator form and shared print settings. */
#batchFiles[hidden], #singleQuantityField[hidden] { display: none !important; }
.batch-files { margin: 18px 0 0; display: grid; gap: 10px; }
.batch-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 38px;
  align-items: center;
  gap: 6px 12px;
  padding: 16px;
  border: 1px solid rgba(139, 164, 230, .2);
  border-radius: 16px;
  background: rgba(18, 28, 53, .55);
}
.batch-file-name {
  grid-column: 1 / span 2;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: var(--text, #f8fafc);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.batch-file-quantity {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  margin: 0;
  color: var(--muted, #9fb0c9);
  font-size: 13px;
}
.batch-file-quantity input, input.batch-file-quantity {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  padding: 11px 9px;
  border: 1px solid rgba(139, 164, 230, .3);
  border-radius: 10px;
  background: #0c1428;
  color: #f8fafc;
  font: inherit;
  font-size: 16px;
}
.batch-file-status { grid-column: 1; grid-row: 2; color: var(--muted, #9fb0c9); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.batch-file-price { grid-column: 1; grid-row: 3; color: #f8fafc; font-size: 16px; font-weight: 700; }
.batch-file-remove {
  grid-column: 3;
  grid-row: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(139, 164, 230, .25);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #b8c8e4;
  font-size: 21px;
  cursor: pointer;
}
.batch-file-remove:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.batch-files :focus-visible { outline: 2px solid #7c9cff; outline-offset: 3px; }
.batch-summary { display: grid; gap: 12px; }
.batch-summary .summary-row span { min-width: 0; overflow-wrap: anywhere; }
.batch-summary .summary-row strong { overflow-wrap: anywhere; }
.batch-summary .batch-file-row { grid-template-columns: minmax(0, 1fr) auto; }
.batch-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px; border-radius: 18px; background: rgba(72, 108, 245, .1); font-size: 21px; font-weight: 700; }
.batch-actions { display: grid; gap: 12px; margin-top: 18px; }
.batch-actions button { width: 100%; }
.batch-actions button:disabled { opacity: .45; cursor: not-allowed; }
.field-row:has(#singleQuantityField[hidden]) { grid-template-columns: minmax(0, 1fr); }
.viewer-head-v506 > div:first-child { min-width: 0; }
.viewer-model-name { margin: 10px 0 0; color: #f1f5ff; font-size: clamp(16px, 1.3vw, 21px); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.viewer-model-name[hidden] { display: none !important; }
.viewer-head-v506 .viewer-badges-v506 { flex-shrink: 0; }
.batch-model-summary strong { display: block; }
.batch-model-meta { color: var(--muted, #9fb0c9); font-size: 14px; line-height: 1.5; }
.batch-calculation-progress { margin: 0; }
/* Match the single-model price cards on the two-column/tablet layout too. */
@media (max-width: 1180px) {
  body.calculator-page-v507 #resultBox:has(.batch-summary) { padding: 0 !important; border: 0; background: transparent; }
  body.calculator-page-v507 #resultBox .batch-summary .main-price strong { color: #f1f5ff !important; }
  body.calculator-page-v507 #resultBox .batch-summary .main-price span,
  body.calculator-page-v507 #resultBox .batch-summary .summary-row > span { font-size: 14px; }
  body.calculator-page-v507 #resultBox .batch-summary .summary-row strong { color: #f1f5ff !important; font-size: 20px !important; }
}
@media (max-width: 480px) {
  .batch-file-row { grid-template-columns: minmax(0, 1fr) 78px 32px; gap: 5px 9px; padding: 12px; }
  .batch-file-name { font-size: 14px; }
  .batch-file-remove { width: 32px; height: 36px; }
  .batch-total { padding: 16px; font-size: 19px; }
}
