/* USFT compact installation-supply browser. */
.usft-calc .recommended-materials-head { margin: 10px 0 6px; }
.usft-calc .recommended-materials-head strong { color: var(--usft-green-deep, #174b24); font-size: 14px; }
.usft-calc .materials,
.usft-calc .supply-group-items { display: grid; grid-template-columns: 1fr; gap: 5px; }
.usft-calc .materials { margin-top: 6px; }
.usft-calc .recommendation-badge { display: inline-block; margin: 0 5px 0 0; padding: 2px 5px; border-radius: 999px; background: #eaf3e7; color: #315f2c; font-size: 8px; font-weight: 900; }
.usft-calc .browse-materials-toggle { width: 100%; margin-top: 8px; border: 1px solid #cfe0d3 !important; background: #fff !important; color: var(--usft-green-deep, #174b24) !important; display: flex; justify-content: space-between; align-items: center; }
.usft-calc .all-materials { margin-top: 6px; }
.usft-calc .supply-group { margin-bottom: 5px; overflow: hidden; border: 1px solid #dfe6e1; border-radius: 8px; background: #fff; }
.usft-calc .supply-group-toggle { width: 100%; min-height: 38px; padding: 7px 9px !important; border: 0 !important; border-radius: 0 !important; background: #f7fbf6 !important; color: var(--usft-green-deep, #174b24) !important; display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 12px !important; }
.usft-calc .supply-group-items { padding: 6px; }
.usft-calc .supply-group-items[hidden] { display: none !important; }
.usft-calc .material-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 54px; padding: 6px 7px; border: 1px solid #e1e7e3; border-radius: 7px; background: #fff; }
.usft-calc .material-card.is-selected { border-color: var(--usft-green, #3f8e2e); background: #f7fbf6; }
.usft-calc .accessory-thumb { width: 42px; height: 42px; object-fit: contain; border: 1px solid #e7ece8; border-radius: 6px; background: #fff; }
.usft-calc .material-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 1px 8px; align-items: center; min-width: 0; }
.usft-calc .material-card h4 { grid-column: 1; margin: 0; color: var(--usft-green-deep, #174b24); font-size: 12px; line-height: 1.2; }
.usft-calc .material-meta { grid-column: 1; color: #69736d; font-size: 9px; line-height: 1.25; }
.usft-calc .material-reason { display: none; }
.usft-calc .qty-controls { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: 32px 46px 32px; gap: 3px; align-items: center; margin: 0; }
.usft-calc .qty-controls button { min-height: 32px !important; padding: 0 !important; }
.usft-calc .qty-controls input { min-height: 32px !important; padding: 3px !important; text-align: center !important; font-size: 14px !important; }
.usft-calc .review-supply-row { grid-column: 2; grid-row: 1 / 3; display: inline-flex !important; align-items: center; gap: 5px; margin: 0 !important; font-size: 10px; font-weight: 800; white-space: nowrap; }
.usft-calc .review-supply-row input { margin: 0; }
.usft-calc .selected-materials { margin-top: 7px; padding: 8px; border: 1px solid #cfe0d3; border-radius: 7px; background: #f6faf6; }
.usft-calc .selected-materials > strong { display: block; margin-bottom: 5px; color: var(--usft-green-deep, #174b24); font-size: 12px; }
.usft-calc .selected-materials-list { display: flex; flex-wrap: wrap; gap: 4px; }
.usft-calc .selected-supply-chip { display: inline-flex; padding: 4px 6px; border: 1px solid #d7e2da; border-radius: 999px; background: #fff; color: #33483b; font-size: 9px; }
.usft-calc .ack-box { margin-top: 7px; padding: 8px; border: 1px solid #d8b85a; border-radius: 7px; background: #fff9e8; color: #5d4a18; font-size: 10px; }
@container (max-width: 520px) {
  .usft-calc .material-card { grid-template-columns: 42px minmax(0, 1fr); }
  .usft-calc .accessory-thumb { width: 38px; height: 38px; }
  .usft-calc .material-card-copy { grid-template-columns: 1fr; }
  .usft-calc .qty-controls,
  .usft-calc .review-supply-row { grid-column: 1; grid-row: auto; margin-top: 7px !important; }
  .usft-calc .qty-controls { grid-template-columns: 50px 68px 50px; gap: 8px; }
  .usft-calc .qty-controls button { min-width: 50px; min-height: 50px !important; font-size: 20px !important; }
  .usft-calc .qty-controls input { min-height: 50px !important; font-size: 18px !important; }
  .usft-calc .review-supply-row { min-height: 48px; white-space: normal; line-height: 1.3; }
  .usft-calc .review-supply-row input { width: 24px; height: 24px; flex: 0 0 24px; }
}
