/* Scoped stock/backorder additions on top of the approved WrapZilla design. */
.shop-layout .shop-sidebar{position:sticky;top:112px;align-self:start;max-height:calc(100dvh - 134px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8b9857 transparent}
@media(max-width:1024px){.shop-layout .shop-sidebar{position:static;max-height:min(48vh,420px);overflow-y:auto;overscroll-behavior:contain}}
.wz-inventory-editor{background:#fbf8eb;border:1px solid #d9ddb9;border-left:4px solid #a4d600;border-radius:12px 3px 12px 3px;padding:18px;margin:16px 0 20px;color:#20251e}
.wz-inventory-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.wz-inventory-heading strong{font-weight:900}.wz-inventory-heading small,.wz-inventory-help{color:#5b6455;font-size:12px}
.wz-inventory-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:12px;font-weight:800}
.wz-inventory-toggle input{width:19px;height:19px;min-width:19px;min-height:19px;accent-color:#8abf05;margin:0}
.wz-inventory-number{display:flex;flex-direction:column;gap:7px;font-weight:800}.wz-inventory-number input{width:min(200px,100%);max-width:200px}
.wz-inventory-help{display:block;margin-top:8px}.wz-admin-stock-label{font-weight:800;color:#477500}.wz-stock-empty{color:#9c4128!important;font-weight:900}
.wz-stock-detail-note{background:#fff2e1;border:1px solid #e8bc92;padding:13px 17px;color:#4e3524}
.wz-backorder-consent{background:#fff2e1;border:1px solid #d7a578;padding:15px 17px;margin:16px 0;border-radius:12px 3px 12px 3px;color:#322a19}
.wz-backorder-consent strong{display:block;margin-bottom:6px}.wz-backorder-consent p{font-size:13px;margin:5px 0 12px}
.wz-backorder-consent label{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-weight:650;line-height:1.5}
.wz-backorder-consent .wz-backorder-checkbox{width:20px;height:20px;min-width:20px;min-height:20px;margin:2px 0 0;accent-color:#88ba03}
.wz-backorder-error{display:block;color:#a43523;font-weight:850;margin-top:8px}

/* v2.0.1: keep inventory inside Add/Edit Product form, with accessible stock stepper. */
.admin-form > .wz-inventory-editor {
  width: 100%; min-width: 0; box-sizing: border-box; grid-column: 1 / -1;
  margin: 2px 0 8px; padding: 18px;
}
.admin-form .wz-inventory-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.admin-form .wz-inventory-number { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.admin-form .wz-inventory-stepper {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: stretch; width: min(100%, 340px); max-width: 100%; gap: 0;
  border: 1px solid #cfd6b5; border-radius: 9px; background: #fff;
  overflow: hidden;
}
.admin-form .wz-inventory-stepper .wz-inventory-quantity {
  box-sizing: border-box; min-width: 0; width: 100% !important; max-width: 100% !important;
  height: 46px; margin: 0; border: 0; border-radius: 0; padding: 0 8px;
  text-align: center; background: #fff; color: #1b2415; font-weight: 900;
  -moz-appearance: textfield; appearance: textfield;
}
.admin-form .wz-inventory-stepper .wz-inventory-quantity::-webkit-outer-spin-button,
.admin-form .wz-inventory-stepper .wz-inventory-quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.admin-form .wz-inventory-stepper .wz-inventory-step {
  display: flex; align-items: center; justify-content: center;
  width: 46px; min-width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 0; background: #edf5d8; color: #1b3414;
  font-size: 24px; font-weight: 900; line-height: 1; font-family: inherit; cursor: pointer;
}
.admin-form .wz-inventory-stepper .wz-inventory-decrease { border-right: 1px solid #cfd6b5; }
.admin-form .wz-inventory-stepper .wz-inventory-increase { border-left: 1px solid #cfd6b5; }
.admin-form .wz-inventory-stepper .wz-inventory-step:hover:not(:disabled) { background: #b8ee30; }
.admin-form .wz-inventory-stepper .wz-inventory-step:disabled { color: #8e9388; background: #f0f1e9; cursor: not-allowed; }
.admin-form .wz-inventory-stepper :focus-visible { outline: 2px solid #548c12; outline-offset: -3px; position: relative; z-index: 1; }
.admin-form .wz-inventory-editor .wz-inventory-help { line-height: 1.5; }
@media (max-width: 480px) { .admin-form > .wz-inventory-editor { padding: 14px; } .admin-form .wz-inventory-stepper { width: 100%; } }
