/* PrintFlow: disable quantity changes in the Zoho Commerce cart. */

/* Hide only the decrease and increase quantity controls. */
[data-zs-product-wrapper-lineitem-id] [data-zs-cart-qty-dec-btn],
[data-zs-product-wrapper-lineitem-id] .theme-product-list-quantity-decrease,
[data-zs-product-wrapper-lineitem-id] .theme-product-list-quantity-increase,
[data-zs-product-wrapper-lineitem-id] [data-zs-cart-qty-inc-btn] {
  display: none !important;
  pointer-events: none !important;
}

/* Keep the selected quantity visible, but prevent editing. */
[data-zs-product-wrapper-lineitem-id] [data-zs-quantity] {
  pointer-events: none !important;
  user-select: none !important;
  caret-color: transparent !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  cursor: default !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

[data-zs-product-wrapper-lineitem-id] [data-zs-quantity]::-webkit-inner-spin-button,
[data-zs-product-wrapper-lineitem-id] [data-zs-quantity]::-webkit-outer-spin-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Keep the regular delete/remove actions available. */
[data-zs-product-wrapper-lineitem-id] [data-zs-delete],
[data-zs-product-wrapper-lineitem-id] .theme-cart-item-remove,
[data-zs-product-wrapper-lineitem-id] [data-zs-cart-item-remove] {
  display: inline-flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Explain how the quantity can be changed. */
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty::after {
  content: "לשינוי הכמות יש להסיר את המוצר וליצור התאמה חדשה";
  display: block;
  max-width: 230px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

/* PrintFlow — הגדלת כפתור "הצגת פרטים" בכרטיסי מוצרים */
html body #main-content .theme-product-button-area > a.zpbutton,
html body #main-content .theme-product-button-area > a.zpbutton.zpbutton-size-sm,
html body #main-content .theme-product-button-area a.zpbutton-type-primary {
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 18px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  background-color: #000000 !important;
  border-radius: 8px !important;
}


/* ============================================================
   PrintFlow — הסתרת "הוספה לסל" מכרטיסי המוצרים
   (הועבר מה-Footer · "הצגת פרטים" נמצא למעלה)
   ============================================================ */

/* 1) הסתרה גורפת של כפתור ההוספה לסל */
[data-zs-add-to-cart],
[data-zs-add-to-quote],
button[data-zs-add-to-cart],
a[data-zs-add-to-cart] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2) החזרה מפורשת בדף המוצר בלבד (שם כן קונים) */
[data-zs-product-details-primary-section] [data-zs-add-to-cart],
[data-zs-product-primary-details] [data-zs-add-to-cart],
.theme-product-detail-container [data-zs-add-to-cart],
.theme-product-quantity-cart-area [data-zs-add-to-cart],
.theme-product-cart-buttons [data-zs-add-to-cart] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 3) הסתרת בקרות הכמות בכרטיס הרשימה */
.theme-product-list-quantity,
.theme-cta-area .theme-product-list-quantity {
  display: none !important;
}

/* 4) החזרת בקרות הכמות בדף המוצר */
[data-zs-product-details-primary-section] .theme-product-list-quantity,
.theme-product-quantity-cart-area .theme-product-list-quantity {
  display: flex !important;
}

/* 5) הצגת הכמות בעגלה — המספר בלבד, נעול לעריכה (ה-Footer הופך אותו לקריאה בלבד) */
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty .theme-product-list-quantity {
  display: flex !important;
}

/* 6) הסתרת מינוס / פלוס בעגלה.
   לאזור המינוס יש גם את המחלקה theme-cart-item-remove, ולכן כלל "השארת כפתור ההסרה"
   למעלה מחזיר אותו. הכלל כאן ספציפי יותר וגובר עליו.
   כפתור "הסרה" בעמודה האחרונה לא מושפע. */
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty .theme-product-list-quantity-decrease,
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty .theme-product-list-quantity-increase,
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty [data-zs-cart-item-decr],
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty [data-zs-cart-qty-dec-btn],
[data-zs-product-wrapper-lineitem-id] .theme-cart-qty .theme-cart-qty-inc-dec {
  display: none !important;
  pointer-events: none !important;
}