/* ══════════════════════════════════════════════════════════════════
   WorkAssist — Quick Order matrix (namespace .wa-bulk-*)
   ══════════════════════════════════════════════════════════════════ */

.wa-bulk{
  margin:0;padding:20px;background:#fff;border:1px solid #EDEBE6;border-radius:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.02),0 4px 12px rgba(20,20,18,.03);
  font-family:'Inter',sans-serif;box-sizing:border-box;
}
.wa-bulk *,.wa-bulk *::before,.wa-bulk *::after{box-sizing:border-box}

/* Head */
.wa-bulk-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #EDEBE6;flex-wrap:wrap;
}
.wa-bulk-eyebrow{
  font-size:11px;font-weight:800;color:#C7622B;text-transform:uppercase;letter-spacing:.14em;margin-bottom:4px;
}
.wa-bulk-sub{font-size:13px;color:#6B6966;line-height:1.5;max-width:520px}
.wa-bulk-summary{
  display:flex;align-items:center;gap:6px;font-family:'Inter',sans-serif;font-size:13px;
  background:#F5F4F0;border-radius:8px;padding:8px 12px;color:#4a4a48;font-weight:600;
  white-space:nowrap;
}
.wa-bulk-summary-total{color:#1a1a18;font-weight:800}
.wa-bulk-summary-sep{color:#c9c7c1}

/* ═════ DESKTOP: TABLE MATRIX ═════ */
.wa-bulk-table-wrap{margin:0;max-width:100%}
.wa-bulk-table{
  width:100%;border-collapse:separate;border-spacing:0;font-family:'Inter',sans-serif;
  table-layout:auto;
}

.wa-bulk-table thead th{
  padding:8px 10px 10px;text-align:center;vertical-align:bottom;background:transparent;
  border-bottom:1.5px solid #EDEBE6;
}
.wa-bulk-table thead th.wa-bulk-th-row{text-align:left;padding-left:4px;color:transparent}
.wa-bulk-col-attr{
  display:block;font-size:9px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.14em;margin-bottom:3px;
}
.wa-bulk-col-val{display:block;font-size:13px;font-weight:700;color:#1a1a18;line-height:1.2}

.wa-bulk-table tbody tr{background:transparent}
.wa-bulk-table tbody tr:nth-child(even) .wa-bulk-td-row,
.wa-bulk-table tbody tr:nth-child(even) .wa-bulk-td-cell{background:#FAFAF8}
.wa-bulk-table tbody tr + tr .wa-bulk-td-row,
.wa-bulk-table tbody tr + tr .wa-bulk-td-cell{border-top:1px solid #EDEBE6}

.wa-bulk-td-row{
  padding:12px 14px 12px 4px;text-align:left;vertical-align:middle;font-weight:600;color:#1a1a18;
  min-width:110px;
}
.wa-bulk-row-attr{
  display:block;font-size:9px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.14em;margin-bottom:2px;
}
.wa-bulk-row-val{display:block;font-size:14px;font-weight:700;color:#1a1a18;line-height:1.2}

.wa-bulk-td-cell{padding:10px;text-align:center;vertical-align:middle;min-width:96px}

.wa-bulk-cell-in{display:flex;flex-direction:column;align-items:center;gap:4px}
.wa-bulk-cell-label{display:none}

.wa-bulk-cell-stepper{position:relative;display:inline-flex;align-items:center}
.wa-bulk-cell-stepper .wa-bulk-step{display:none}
.wa-bulk-qty{
  width:76px;min-height:40px;padding:8px 6px;font-family:'Inter',sans-serif;
  font-size:15px;font-weight:600;text-align:center;color:#1a1a18;background:#fff;
  border:1.5px solid #E8E5DE;border-radius:8px;
  -moz-appearance:textfield;transition:border-color .15s,box-shadow .15s,background .15s;
}
.wa-bulk-qty::-webkit-outer-spin-button,
.wa-bulk-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.wa-bulk-qty:focus{border-color:#C7622B;outline:none;box-shadow:0 0 0 3px rgba(199,98,43,.12)}
.wa-bulk-qty.has-value{border-color:#C7622B;background:#FFF7F1;color:#1a1a18}

.wa-bulk-cell-price{font-size:11px;color:#6B6966;font-weight:600;line-height:1}
.wa-bulk-cell-price .amount,
.wa-bulk-cell-price .woocommerce-Price-amount{color:#6B6966;font-weight:600;font-size:11px}

.wa-bulk-cell-out,.wa-bulk-cell-none{
  display:flex;flex-direction:column;align-items:center;gap:4px;color:#c9c7c1;font-size:14px;
}
.wa-bulk-cell-out-tag{font-size:11px;font-weight:600;color:#c9c7c1;text-transform:uppercase;letter-spacing:.06em}
.wa-bulk-cell-none-tag{font-size:16px;color:#c9c7c1}

.wa-bulk-table.no-cols thead{display:none}
.wa-bulk-table.no-cols .wa-bulk-td-cell{text-align:left}

/* Actions */
.wa-bulk-actions{
  display:flex;align-items:center;gap:12px;margin:18px 0 0;padding:16px 0 0;
  border-top:1px solid #EDEBE6;flex-wrap:wrap;
}
.wa-bulk-reset{
  background:transparent;color:#6B6966;border:1px solid #E8E5DE;border-radius:8px;
  padding:10px 18px;font-size:13px;font-weight:600;font-family:'Inter',sans-serif;
  cursor:pointer;transition:border-color .15s,color .15s,background .15s;
}
.wa-bulk-reset:hover{border-color:#c9c7c1;color:#1a1a18;background:#F5F4F0}

.wa-bulk-submit{
  position:relative;background:#C7622B;color:#fff;border:none;border-radius:10px;
  padding:12px 26px;font-size:13px;font-weight:800;font-family:'Inter',sans-serif;
  text-transform:uppercase;letter-spacing:.06em;cursor:pointer;min-height:46px;
  box-shadow:0 2px 8px rgba(199,98,43,.15);transition:background .2s,opacity .2s;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 1 auto;
}
.wa-bulk-submit:hover:not(:disabled){background:#a84f1f;box-shadow:0 4px 14px rgba(199,98,43,.25)}
.wa-bulk-submit:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.wa-bulk-submit-spin{
  display:none;width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  border-radius:50%;animation:wa-bulk-spin .7s linear infinite;
}
.wa-bulk-submit.is-loading .wa-bulk-submit-spin{display:inline-block}
.wa-bulk-submit.is-loading .wa-bulk-submit-text{opacity:.7}
@keyframes wa-bulk-spin{to{transform:rotate(360deg)}}

.wa-bulk-view-cart{
  display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:#C7622B;
  text-decoration:none;padding:10px 16px;border:1px solid #EDDCCE;border-radius:8px;background:#FFF7F1;
}
.wa-bulk-view-cart:hover{background:#FFE9D9}

.wa-bulk-msg{
  margin:14px 0 0;font-size:13px;font-family:'Inter',sans-serif;color:#4a4a48;min-height:1em;line-height:1.5;
}
.wa-bulk-msg.is-ok{color:#1a7a3d;font-weight:600}
.wa-bulk-msg.is-err{color:#9a2a1f;font-weight:600}

/* ══════════════════════════════════════════════════════════════════
   MOBILE — CARDS BY ROW (color card → list of size lines)
   ══════════════════════════════════════════════════════════════════ */
@media(max-width:720px){
  .wa-bulk{padding:14px;border-radius:12px}
  .wa-bulk-head{flex-direction:column;align-items:stretch;gap:10px}
  .wa-bulk-sub{font-size:12.5px}
  .wa-bulk-summary{align-self:flex-start;font-size:12.5px}

  /* Kill table shape */
  .wa-bulk-table-wrap{overflow:visible;margin:0;width:100%;max-width:100%}
  .wa-bulk-table,
  .wa-bulk-table tbody,
  .wa-bulk-table tr,
  .wa-bulk-table th,
  .wa-bulk-table td{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0;margin:0;border:none!important;background:transparent!important}
  .wa-bulk-table thead{display:none!important}

  /* Card */
  .wa-bulk-table tbody tr{
    background:#FAFAF8!important;border:1px solid #EDEBE6!important;border-radius:12px;
    padding:14px!important;margin-bottom:12px!important;
  }
  .wa-bulk-table tbody tr:last-child{margin-bottom:0!important}

  /* Card title */
  .wa-bulk-td-row{
    padding:0 0 10px!important;margin:0 0 8px!important;
    border-bottom:1px solid #EDEBE6!important;
    display:flex!important;align-items:baseline;gap:10px;flex-wrap:wrap;
    background:transparent!important;
  }
  .wa-bulk-row-attr{
    display:inline-block;font-size:9px;letter-spacing:.14em;font-weight:700;color:#999;
    text-transform:uppercase;margin:0;
  }
  .wa-bulk-row-val{
    display:inline-block;font-size:17px;font-weight:800;color:#141412;letter-spacing:-0.01em;
  }

  /* Each variation row */
  .wa-bulk-td-cell{
    padding:10px 0!important;border-bottom:1px solid #EDEBE6!important;
    text-align:left;background:transparent!important;
  }
  .wa-bulk-td-cell:last-child{border-bottom:none!important;padding-bottom:2px!important}

  /* Line: label | stepper | price */
  .wa-bulk-cell-in,
  .wa-bulk-cell-out,
  .wa-bulk-cell-none{
    display:grid!important;
    grid-template-columns:1fr auto auto;
    align-items:center;gap:10px;flex-direction:row;text-align:left;
  }

  .wa-bulk-cell-label{
    display:flex!important;flex-direction:column;gap:2px;min-width:0;
  }
  .wa-bulk-cell-label-attr{display:none}
  .wa-bulk-cell-label-val{
    font-family:'Inter',sans-serif;font-size:14px;font-weight:700;color:#141412;line-height:1.2;
  }

  /* Stepper — full segment control */
  .wa-bulk-cell-stepper{
    display:inline-flex!important;align-items:stretch;background:#fff;
    border:1.5px solid #E8E5DE;border-radius:10px;overflow:hidden;
    transition:border-color .15s,background .15s;flex-shrink:0;
  }
  .wa-bulk-cell-in.has-value .wa-bulk-cell-stepper{border-color:#C7622B;background:#FFF7F1}
  .wa-bulk-cell-stepper .wa-bulk-step{
    display:inline-flex!important;align-items:center;justify-content:center;
    width:36px;height:42px;background:transparent;border:none;color:#4a4a48;
    font-size:20px;font-weight:600;font-family:'Inter',sans-serif;cursor:pointer;
    padding:0;line-height:1;-webkit-tap-highlight-color:rgba(199,98,43,.15);
    transition:color .15s,background .15s;
  }
  .wa-bulk-cell-stepper .wa-bulk-step:hover,
  .wa-bulk-cell-stepper .wa-bulk-step:active{color:#C7622B;background:rgba(199,98,43,.08)}
  .wa-bulk-cell-stepper .wa-bulk-qty{
    width:42px!important;height:42px;min-height:42px;padding:0!important;border:none!important;border-radius:0!important;
    border-left:1.5px solid #E8E5DE!important;border-right:1.5px solid #E8E5DE!important;
    background:transparent!important;font-size:15px!important;font-weight:700!important;
    box-shadow:none!important;color:#141412!important;
  }
  .wa-bulk-cell-in.has-value .wa-bulk-cell-stepper .wa-bulk-qty{
    border-left-color:rgba(199,98,43,.35)!important;border-right-color:rgba(199,98,43,.35)!important;color:#C7622B!important;
  }
  .wa-bulk-cell-stepper .wa-bulk-qty:focus{outline:none;box-shadow:none!important}

  .wa-bulk-cell-price{
    font-size:13px!important;font-weight:700!important;color:#141412!important;line-height:1!important;
    white-space:nowrap;text-align:right;min-width:52px;
  }
  .wa-bulk-cell-price .amount,
  .wa-bulk-cell-price .woocommerce-Price-amount{color:#141412!important;font-weight:700!important;font-size:13px!important}

  /* Out / N/A cells */
  .wa-bulk-cell-out,
  .wa-bulk-cell-none{grid-template-columns:1fr auto;color:#8a8783}
  .wa-bulk-cell-out .wa-bulk-cell-label-val,
  .wa-bulk-cell-none .wa-bulk-cell-label-val{color:#8a8783}
  .wa-bulk-cell-out-tag{
    font-size:11px;font-weight:700;color:#8a8783;text-transform:uppercase;letter-spacing:.08em;
    background:#F0EFE9;border-radius:6px;padding:5px 10px;
  }
  .wa-bulk-cell-none-tag{font-size:14px;color:#c9c7c1;font-weight:400}

  /* Actions: reset compact, submit full width */
  .wa-bulk-actions{
    flex-direction:column-reverse;align-items:stretch;gap:10px;
    position:sticky;bottom:0;background:#fff;margin-left:-14px;margin-right:-14px;
    padding:14px;border-top:1px solid #EDEBE6;
    box-shadow:0 -2px 12px rgba(20,20,18,.06);z-index:5;
  }
  .wa-bulk-actions .wa-bulk-reset,
  .wa-bulk-actions .wa-bulk-submit,
  .wa-bulk-actions .wa-bulk-view-cart{
    width:100%;justify-content:center;min-height:52px;font-size:14px;
  }
  .wa-bulk-submit{padding:14px 22px}
  .wa-bulk-msg{padding:0 14px 14px;margin:0}
}

/* Very small phones */
@media(max-width:360px){
  .wa-bulk-cell-stepper .wa-bulk-step{width:32px;height:40px}
  .wa-bulk-cell-stepper .wa-bulk-qty{width:36px!important;height:40px;min-height:40px}
  .wa-bulk-cell-label-val{font-size:13px}
  .wa-bulk-cell-price{font-size:12px!important;min-width:48px}
}
