/* Soldier - Form Custom: compact custom-details box above the cart button.
   One row per print position (text + logo), then a note. */
.sa-custom-box { clear:both; flex-basis:100%; width:100%; box-sizing:border-box; margin:4px 0 16px; padding:14px 16px 12px; border:1px solid var(--line,#dcd8cc); border-left:3px solid var(--accent-dark,#746341); background:#fff; font-size:14px; }
.sa-custom-box[hidden] { display:none; }
.sa-custom-title { margin:0 0 12px; font-weight:700; }
.sa-custom-title span { font-weight:400; font-size:12px; color:var(--muted,#5d6156); }
.sa-custom-row { display:grid; grid-template-columns:104px minmax(0,1fr); align-items:center; column-gap:12px; margin:0 0 10px; }
.sa-custom-label { margin:0; padding:0; font-size:13px; font-weight:600; color:var(--ink,#1e211a); }
.sa-custom-inputs { display:flex; gap:8px; min-width:0; }
.sa-custom-box input[type="text"], .sa-custom-box textarea { width:100%; min-width:0; box-sizing:border-box; padding:9px 10px; border:1px solid #c9ccc0; border-radius:2px; background:#fff; font:inherit; color:inherit; }
.sa-custom-box textarea { resize:vertical; min-height:56px; }
.sa-custom-box input[type="text"]:focus, .sa-custom-box textarea:focus { outline:2px solid var(--accent-dark,#746341); outline-offset:1px; border-color:var(--accent-dark,#746341); }
.sa-custom-file { position:relative; flex:none; display:flex; cursor:pointer; }
.sa-custom-file input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.sa-custom-file-btn { display:flex; align-items:center; padding:0 12px; border:1px solid var(--ink,#1e211a); border-radius:2px; background:#fff; font-size:13px; font-weight:600; white-space:nowrap; }
.sa-custom-row.has-file .sa-custom-file-btn { border-color:var(--accent-dark,#746341); background:#f7f4ea; }
.sa-custom-file input:focus-visible + .sa-custom-file-btn { outline:2px solid var(--accent-dark,#746341); outline-offset:2px; }
.sa-custom-file-name { grid-column:2; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--ink,#1e211a); }
.sa-custom-file-name:empty { display:none; }
.sa-custom-row--note { align-items:start; }
.sa-custom-row--note .sa-custom-label { padding-top:9px; }
.sa-custom-hint { margin:2px 0 0; font-size:12px; color:var(--muted,#5d6156); }
.woocommerce-variation-add-to-cart:has(.sa-custom-box:not([hidden])), form.cart:has(> .sa-custom-box:not([hidden])) { flex-wrap:wrap; }
@media (max-width:600px) {
  .sa-custom-box { padding:12px 12px 10px; }
  .sa-custom-row { grid-template-columns:minmax(0,1fr); row-gap:4px; }
  .sa-custom-file-name { grid-column:1; }
  .sa-custom-row--note .sa-custom-label { padding-top:0; }
}
