/* Hide the standard Woo "Add to cart" form on single product */
.single-product form.cart { display: none !important; }

/* Table wrapper */
.r1wh-box {
    max-width: 1200px;
    margin: 0 auto 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.r1wh-table {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  overflow: hidden;
}

/* Grid: Warehouse | Price | (Stock*) | Qty | Buy */
.r1wh-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 110px 140px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.r1wh-head {
  background: #fafafa;
  font-weight: 600;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.r1wh-qty {
  width: 100%;
  max-width: 100%;
}

/* Note: when stock management is OFF we omit the stock column in HTML.
   The grid still works as we compute columns on PHP side. */

/* -------- Modal -------- */
.r1wh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.r1wh-modal.is-open { display: block; }

.r1wh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.r1wh-modal__dialog {
  position: relative;
  width: 96%;
  max-width: 420px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

.r1wh-modal__body { padding: 20px; }

.r1wh-modal__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.r1wh-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.r1wh-modal__actions .button {
  padding: 8px 14px;
}
