/* The wholesale block is Arabic, but no RTL/LTR rule is applied to the theme, product title or existing COD form. */
.nw-wholesale-box{direction:rtl;text-align:right;margin:0 0 18px;padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-sizing:border-box}
.nw-title{margin:0 0 12px;font-size:19px;line-height:1.5}
.nw-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nw-pack-card{appearance:none;-webkit-appearance:none;width:100%;text-align:right;border:1.5px solid #e1e3e8;background:#fff;border-radius:14px;padding:13px;cursor:pointer;display:flex;flex-direction:column;gap:5px;transition:.18s ease;min-height:122px}
.nw-pack-card:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,0,0,.06)}
.nw-pack-card.is-selected{border-color:var(--wc-primary,#5656ff);box-shadow:0 0 0 2px rgba(86,86,255,.12)}
.nw-pack-name{font-weight:800;font-size:16px}
.nw-pack-line{font-size:13px;line-height:1.5}
.nw-unit{opacity:.76}
.nw-composition{font-size:12px;color:#666;border-top:1px dashed #e5e5e5;margin-top:4px;padding-top:6px;white-space:pre-line}
.nw-selected-panel{margin-top:12px;padding-top:12px;border-top:1px solid #eee}
.nw-pack-counter{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nw-counter{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:12px;overflow:hidden;background:#fff}
.nw-counter button{width:42px;height:38px;border:0;background:#f6f6f8;font-size:21px;cursor:pointer}
.nw-counter strong{min-width:44px;text-align:center;font-size:16px}
.nw-summary{display:flex;justify-content:space-between;gap:10px;margin-top:12px;background:#f7f7fa;border-radius:12px;padding:11px 13px;font-size:14px}
.nw-summary strong{font-size:15px}
.nw-shipping-note{display:flex;flex-direction:column;gap:3px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#fafafa;font-size:13px}
.nw-shipping-note small{opacity:.75}
.nw-stock-error,.nw-delivery-error{color:#b42318!important;opacity:1!important;font-weight:700}
.nw-selected-panel.is-unavailable{opacity:.72}

/* Persistent native COD quantity hiding. The hidden #codplugin_c_number remains untouched and continues to carry physical quantity. */
body.networker-wholesale-active.nw-hide-native-quantity #codplugin_woo_single_form .form-qte,
body.networker-wholesale-active.nw-hide-native-quantity #codplugin-checkout .form-qte,
body.networker-wholesale-active.nw-hide-native-quantity .form-qte.nw-hide-native-qty,
body.networker-wholesale-active.nw-hide-native-quantity #codplugin_add_button,
body.networker-wholesale-active.nw-hide-native-quantity #codplugin_remove_button,
body.networker-wholesale-active.nw-hide-native-quantity #codplugin_count_button,
body.networker-wholesale-active.nw-hide-native-quantity #codplugin_count_number{
  display:none!important;
  visibility:hidden!important;
}

/* Wholesale delivery: Kidecom may call .show() while rebuilding shipping choices.
   These !important selectors keep the exact home option (التوصيل للمنزل) hidden
   without disabling/re-enabling its radio in a loop. */
body.nw-wholesale-large-no-home #shipping-methods .nw-home-delivery-row,
body.nw-wholesale-large-no-home #shipping-methods .kidecom-theme-shipping-row:has(input[data-kidecom-mode="home"]),
body.nw-wholesale-large-no-home #shipping-methods .codplugin-shipping-option:has(input[data-kidecom-mode="home"]),
body.nw-wholesale-large-no-home #shipping-methods .codplugin-shipping-option:has(input[value="home"]){
  display:none!important;
}
body.nw-wholesale-large-no-home #shipping-methods input[data-kidecom-mode="home"],
body.nw-wholesale-large-no-home #shipping-methods #kidecom_cod_shipping_home,
body.nw-wholesale-large-no-home #shipping-methods input[value="home"]{
  display:none!important;
}
body.nw-wholesale-large-no-home #shipping-methods label[for="kidecom_cod_shipping_home"]{
  display:none!important;
}
body.nw-wholesale-large-no-home #shipping-methods.kidecom-theme-shipping-fallback{
  grid-template-columns:1fr!important;
}

@media (max-width:767px){
  .nw-pack-grid{grid-template-columns:1fr}
  .nw-pack-card{min-height:auto}
  .nw-summary{flex-direction:column}
}
