/* =========================================================
   سبد خرید و تسویه حساب نت یدک — نسخه ۱.۰.۰
   استایل کاملاً مستقل: چون استایل عمومی ووکامرس روی این سایت
   لود نمی‌شود، همه‌ی اجزای پیش‌فرض (فرم تسویه، جدول سفارش،
   باکس پرداخت) اینجا از صفر استایل می‌گیرند.
   ========================================================= */

.nycc-page{
  --nycc-yellow:#ffc21a;
  --nycc-yellow-soft:#fff7e2;
  --nycc-navy:#092e59;
  --nycc-ink:#16202e;
  --nycc-muted:#6b7280;
  --nycc-line:#e6e9ee;
  --nycc-soft:#f6f7f9;
  --nycc-green:#178a52;
  --nycc-red:#d3302f;
  --nycc-radius:12px;
  --nycc-shadow:0 10px 26px rgba(16,26,44,.06);

  direction:rtl;
  box-sizing:border-box;
  margin:0;
  padding:22px 0 56px;
  background:#fff;
  color:var(--nycc-ink);
  /* همان پشته‌ی صفحه محصول؛ متغیر در global-theme-reset-v672.css تعریف شده. */
  font-family:var(--ny-font,"Peyda","Vazirmatn",Tahoma,sans-serif);
  font-size:13px;
  line-height:1.9;
  text-align:right;
}

.nycc-page *,
.nycc-page *:before,
.nycc-page *:after{ box-sizing:border-box; }

.nycc-page a{ color:inherit; text-decoration:none; }
.nycc-page h1,.nycc-page h2,.nycc-page h3{ margin:0; font-weight:800; line-height:1.6; }
.nycc-page p{ margin:0; }

.nycc-shell{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
}

.nycc-icon{ width:1em; height:1em; flex:0 0 auto; }

.nycc-sr-only{
  position:absolute !important;
  width:1px; height:1px;
  margin:-1px; padding:0; border:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* ---------------------------------------------------------
   مسیر راهنما
   --------------------------------------------------------- */
.nycc-breadcrumb{ margin:0 0 14px; color:#7c838f; font-size:11px; }
.nycc-breadcrumb ol{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 4px; margin:0; padding:0; list-style:none; }
.nycc-breadcrumb li{ display:inline-flex; align-items:center; gap:4px; margin:0; }
.nycc-breadcrumb a{ color:#5f6773; }
.nycc-breadcrumb a:hover{ color:var(--nycc-navy); text-decoration:underline; }
.nycc-breadcrumb [aria-current="page"]{ color:var(--nycc-ink); font-weight:700; }
.nycc-breadcrumb-sep{ display:inline-grid; place-items:center; color:#b9bec6; }
.nycc-breadcrumb-sep .nycc-icon{ width:12px; height:12px; }

/* ---------------------------------------------------------
   سربرگ + مرحله‌ها
   --------------------------------------------------------- */
.nycc-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
}

.nycc-head h1{ display:inline-flex; align-items:center; gap:9px; font-size:21px; }
.nycc-head h1 .nycc-icon{ width:24px; height:24px; color:var(--nycc-yellow); }

.nycc-steps{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.nycc-steps li{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#9aa1ac;
  font-size:11px;
  font-weight:700;
}

.nycc-steps li + li:before{
  content:"";
  width:26px;
  height:2px;
  border-radius:2px;
  background:var(--nycc-line);
}

.nycc-step-mark{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid var(--nycc-line);
  border-radius:50%;
  background:#fff;
  font-size:11px;
}

.nycc-step-mark .nycc-icon{ width:14px; height:14px; }
.nycc-steps .is-active{ color:var(--nycc-ink); }
.nycc-steps .is-active .nycc-step-mark{ border-color:var(--nycc-yellow); background:var(--nycc-yellow); color:#14213c; }
.nycc-steps .is-done{ color:var(--nycc-green); }
.nycc-steps .is-done .nycc-step-mark{ border-color:#bde4cf; background:#eaf7f0; color:var(--nycc-green); }

/* ---------------------------------------------------------
   چیدمان دوستونه
   --------------------------------------------------------- */
.nycc-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  align-items:start;
  gap:18px;
}

.nycc-main{ min-width:0; }
.nycc-side{ min-width:0; position:sticky; top:18px; }

/* ---------------------------------------------------------
   نوتیس‌های ووکامرس
   --------------------------------------------------------- */
.nycc-notices:empty{ display:none; }
.nycc-page .woocommerce-message,
.nycc-page .woocommerce-info,
.nycc-page .woocommerce-error,
.nycc-page .woocommerce-notice{
  display:block;
  margin:0 0 12px;
  padding:11px 14px;
  border:1px solid var(--nycc-line);
  border-radius:9px;
  background:var(--nycc-soft);
  color:var(--nycc-ink);
  list-style:none;
  font-size:12px;
}
.nycc-page .woocommerce-message{ border-color:#bde4cf; background:#eef8f2; color:#146c43; }
.nycc-page .woocommerce-info{ border-color:#c7dcf5; background:#eff5fd; color:#14508c; }
.nycc-page .woocommerce-error{ border-color:#f3c6c5; background:#fdeeee; color:#a02121; }
.nycc-page .woocommerce-error li{ margin:0; }
.nycc-page .woocommerce-message .button,
.nycc-page .woocommerce-info .button{
  margin-left:10px;
  padding:5px 12px;
  border-radius:6px;
  background:var(--nycc-yellow);
  color:#14213c;
  font-size:11px;
  font-weight:800;
}

/* ---------------------------------------------------------
   کالاهای سبد
   --------------------------------------------------------- */
.nycc-items-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
.nycc-items-head h2{ font-size:15px; }
.nycc-items-head span{ color:var(--nycc-muted); font-size:11px; }

.nycc-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nycc-items-empty{
  display:grid;
  place-items:center;
  min-height:120px;
  border:1px dashed var(--nycc-line);
  border-radius:var(--nycc-radius);
  color:var(--nycc-muted);
}

.nycc-item{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  align-items:start;
  gap:14px;
  padding:14px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}

.nycc-item-media{
  display:grid;
  place-items:center;
  width:96px;
  height:96px;
  padding:6px;
  border:1px solid var(--nycc-line);
  border-radius:9px;
  background:#fff;
  overflow:hidden;
}
.nycc-item-media img{ max-width:100%; max-height:100%; object-fit:contain; }

.nycc-item-body{ min-width:0; }

.nycc-item-title{ font-size:13px; font-weight:800; }
.nycc-item-title a:hover{ color:var(--nycc-navy); }

.nycc-item-attrs{
  display:flex;
  flex-wrap:wrap;
  gap:5px 7px;
  margin:7px 0 0;
  padding:0;
  list-style:none;
}
.nycc-item-attrs li{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:0;
  padding:3px 8px;
  border:1px solid var(--nycc-line);
  border-radius:20px;
  background:var(--nycc-soft);
  font-size:10px;
}
.nycc-item-attrs span{ color:var(--nycc-muted); }
.nycc-item-attrs b{ color:var(--nycc-ink); font-weight:700; }

.nycc-item-stock{ margin-top:7px; font-size:10.5px; }
.nycc-item-stock.is-in{ color:var(--nycc-green); }
.nycc-item-stock.is-low{ color:#b26a00; }
.nycc-item-stock.is-out{ color:var(--nycc-red); }

.nycc-item-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:11px;
}

.nycc-item-single{ color:var(--nycc-muted); font-size:10.5px; }

.nycc-qty{
  display:grid;
  grid-template-columns:32px 46px 32px;
  grid-auto-rows:36px;
  align-items:stretch;
  height:36px;
  border:1px solid var(--nycc-line);
  border-radius:8px;
  overflow:hidden;
}
/* قالب‌ها معمولاً به button ارتفاع/پدینگ می‌دهند؛ اینجا صفر می‌شود تا
   ردیف تعداد دقیقاً ۳۶ پیکسل بماند. */
.nycc-qty button{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
  color:#5f6773;
  font-size:0;
  line-height:1;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease;
}
.nycc-qty button:hover{ background:var(--nycc-yellow-soft); color:var(--nycc-ink); }
.nycc-qty button .nycc-icon{ width:14px; height:14px; }
.nycc-qty input{
  -moz-appearance:textfield;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  border-inline:1px solid var(--nycc-line);
  background:#fff;
  color:var(--nycc-ink);
  font:inherit;
  font-size:13px;
  font-weight:800;
  text-align:center;
}
.nycc-qty input::-webkit-outer-spin-button,
.nycc-qty input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.nycc-item-remove{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 10px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--nycc-red);
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease;
}
.nycc-item-remove:hover{ border-color:#f3c6c5; background:#fdeeee; }
.nycc-item-remove .nycc-icon{ width:15px; height:15px; }

.nycc-item-price{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  min-width:120px;
  text-align:left;
}
.nycc-item-price del{ color:#a3a9b3; font-size:11px; }
.nycc-item-price strong{ font-size:16px; font-weight:900; }
.nycc-item-price small{ color:var(--nycc-muted); font-size:10px; }

/* ---------------------------------------------------------
   کد تخفیف
   --------------------------------------------------------- */
.nycc-coupon-box{
  margin-top:12px;
  padding:14px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:var(--nycc-soft);
}
.nycc-coupon-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:12px; }
.nycc-coupon-head .nycc-icon{ width:18px; height:18px; color:var(--nycc-yellow); }

.nycc-coupon-form{ display:flex; gap:8px; }
.nycc-coupon-form input{
  flex:1 1 auto;
  min-width:0;
  min-height:38px;
  padding:8px 12px;
  border:1px solid var(--nycc-line);
  border-radius:8px;
  background:#fff;
  color:var(--nycc-ink);
  font:inherit;
  font-size:12px;
}
.nycc-coupon-form input:focus-visible{ outline:0; border-color:var(--nycc-yellow); box-shadow:0 0 0 3px rgba(255,194,26,.22); }

.nycc-coupon-error{ margin-top:8px; color:var(--nycc-red); font-size:11px; }

.nycc-coupon-list{ display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 0; padding:0; list-style:none; }
.nycc-coupon-list li{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:5px 10px;
  border:1px solid #bde4cf;
  border-radius:20px;
  background:#eef8f2;
  color:#146c43;
  font-size:11px;
  font-weight:700;
}
.nycc-coupon-list .nycc-icon{ width:14px; height:14px; }
.nycc-coupon-list button{
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
}

/* ---------------------------------------------------------
   دکمه‌ها
   --------------------------------------------------------- */
.nycc-primary-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:9px;
  background:var(--nycc-yellow);
  color:#14213c;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease;
}
.nycc-primary-btn:hover{ transform:translateY(-1px); filter:brightness(.98); color:#14213c; }
.nycc-primary-btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.nycc-primary-btn .nycc-icon{ width:16px; height:16px; }

.nycc-outline-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 16px;
  border:1px solid var(--nycc-yellow);
  border-radius:8px;
  background:#fff;
  color:var(--nycc-ink);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background-color .18s ease;
}
.nycc-outline-btn:hover{ background:var(--nycc-yellow-soft); }

.nycc-ghost-btn{
  display:block;
  margin-top:8px;
  padding:9px;
  border-radius:8px;
  color:var(--nycc-muted);
  text-align:center;
  font-size:12px;
  font-weight:700;
}
.nycc-ghost-btn:hover{ background:var(--nycc-soft); color:var(--nycc-ink); }

/* ---------------------------------------------------------
   خلاصه سفارش
   --------------------------------------------------------- */
.nycc-summary{
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}

.nycc-summary-title{ display:flex; align-items:center; gap:8px; margin-bottom:12px; font-size:14px; }
.nycc-summary-title .nycc-icon{ width:19px; height:19px; color:var(--nycc-yellow); }

.nycc-summary-rows{ margin:0; }
.nycc-summary-rows > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px dashed var(--nycc-line);
}
.nycc-summary-rows dt{ color:var(--nycc-muted); font-size:11.5px; }
.nycc-summary-rows dd{ margin:0; font-size:12.5px; font-weight:700; }
.nycc-summary-rows dd span{ color:var(--nycc-muted); font-size:10px; font-weight:400; }
.nycc-summary-rows dd em{ color:var(--nycc-muted); font-size:11px; font-style:normal; font-weight:400; }
.nycc-summary-rows .is-discount dd{ color:var(--nycc-green); }

.nycc-summary-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:12px 0 10px;
}
.nycc-summary-total span{ font-size:12.5px; font-weight:700; }
.nycc-summary-total strong{ font-size:19px; font-weight:900; }
.nycc-summary-total small{ color:var(--nycc-muted); font-size:10px; font-weight:400; }

.nycc-summary-saving{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:12px;
  padding:8px 10px;
  border-radius:8px;
  background:#eef8f2;
  color:#146c43;
  font-size:11px;
}
.nycc-summary-saving .nycc-icon{ width:15px; height:15px; }

.nycc-summary-note{
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin-top:12px;
  color:var(--nycc-muted);
  font-size:10.5px;
  line-height:1.85;
}
.nycc-summary-note .nycc-icon{ width:14px; height:14px; margin-top:3px; }

/* ---------------------------------------------------------
   حالت خالی
   --------------------------------------------------------- */
.nycc-empty{
  display:grid;
  justify-items:center;
  gap:9px;
  padding:52px 20px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  text-align:center;
  box-shadow:var(--nycc-shadow);
}
.nycc-empty-mark{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border-radius:50%;
  background:var(--nycc-yellow-soft);
  color:#b48200;
}
.nycc-empty-mark .nycc-icon{ width:30px; height:30px; }
.nycc-empty h2{ font-size:17px; }
.nycc-empty p{ max-width:440px; color:var(--nycc-muted); font-size:12px; }
.nycc-empty .nycc-primary-btn{ width:auto; min-width:210px; margin-top:6px; }

/* ---------------------------------------------------------
   نوار اعتماد
   --------------------------------------------------------- */
.nycc-trust{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin:22px 0 0;
  padding:0;
  border-radius:var(--nycc-radius);
  background:var(--nycc-line);
  list-style:none;
  overflow:hidden;
}
.nycc-trust li{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin:0;
  padding:14px 10px;
  background:#fff;
}
.nycc-trust i{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--nycc-yellow-soft);
  color:#b48200;
}
.nycc-trust i .nycc-icon{ width:18px; height:18px; }
.nycc-trust span{ display:flex; flex-direction:column; }
.nycc-trust b{ font-size:12px; }
.nycc-trust small{ color:var(--nycc-muted); font-size:10px; }

/* ---------------------------------------------------------
   کالاهای پیشنهادی (cross-sells ووکامرس)
   --------------------------------------------------------- */
.nycc-cross-sells{ margin-top:26px; }
.nycc-cross-sells h2{ margin-bottom:12px; font-size:15px; }
.nycc-cross-sells ul.products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
.nycc-cross-sells ul.products li{
  margin:0;
  padding:12px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  text-align:center;
}
.nycc-cross-sells ul.products img{ max-width:100%; height:auto; margin-bottom:8px; }
.nycc-cross-sells .woocommerce-loop-product__title{ font-size:12px; font-weight:700; }
.nycc-cross-sells .price{ display:block; margin-top:6px; font-size:12px; font-weight:800; }
.nycc-cross-sells .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:7px 14px;
  border:0;
  border-radius:8px;
  background:var(--nycc-yellow);
  color:#14213c;
  font-size:11px;
  font-weight:800;
}

/* ---------------------------------------------------------
   وضعیت بارگذاری + توست
   --------------------------------------------------------- */
.nycc-cart.is-busy .nycc-items,
.nycc-cart.is-busy .nycc-summary{ opacity:.6; pointer-events:none; }

.nycc-toast{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:99999;
  display:flex;
  align-items:center;
  gap:12px;
  max-width:min(380px,calc(100% - 40px));
  padding:12px 15px;
  border-radius:10px;
  background:var(--nycc-navy);
  color:#fff;
  font-size:12px;
  box-shadow:0 14px 34px rgba(9,46,89,.28);
  opacity:0;
  transform:translateY(12px);
  transition:opacity .2s ease,transform .2s ease;
}
.nycc-toast.is-visible{ opacity:1; transform:none; }
.nycc-toast button{
  padding:4px 10px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:6px;
  background:transparent;
  color:var(--nycc-yellow);
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

/* =========================================================
   تسویه حساب
   ========================================================= */
.nycc-checkout-top:empty{ display:none; }

.nycc-card{
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}

.nycc-card + .nycc-card{ margin-top:14px; }

.nycc-card-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-size:14px;
}
.nycc-card-title .nycc-icon{ width:19px; height:19px; color:var(--nycc-yellow); }

.nycc-customer{ display:block; }
.nycc-customer .col-1,
.nycc-customer .col-2{ width:auto; float:none; }
.nycc-customer .col-2:empty{ display:none; }

/* عنوان‌های داخلی ووکامرس (صورتحساب/ارسال) با کارت‌ها هماهنگ می‌شوند */
.nycc-page .woocommerce-billing-fields > h3,
.nycc-page .woocommerce-shipping-fields > h3,
.nycc-page .woocommerce-additional-fields > h3{
  margin:0 0 12px;
  font-size:14px;
  font-weight:800;
}
.nycc-page .woocommerce-billing-fields__field-wrapper,
.nycc-page .woocommerce-shipping-fields__field-wrapper,
.nycc-page .woocommerce-additional-fields__field-wrapper{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
}

.nycc-page .form-row{ margin:0; padding:0; grid-column:span 12; }
.nycc-page .form-row.nycc-col-6{ grid-column:span 6; }
.nycc-page .form-row.nycc-col-12{ grid-column:span 12; }

.nycc-page .form-row > label,
.nycc-page label.nycc-label{
  display:block;
  margin:0 0 5px;
  color:#5f6773;
  font-size:11px;
  font-weight:700;
}
.nycc-page .form-row .required{ color:var(--nycc-red); text-decoration:none; }
.nycc-page .form-row .optional{ color:#9aa1ac; font-weight:400; }

.nycc-page .form-row input.input-text,
.nycc-page .form-row textarea,
.nycc-page .form-row select,
.nycc-page .select2-container .select2-selection--single{
  width:100%;
  min-height:40px;
  padding:9px 12px;
  border:1px solid var(--nycc-line);
  border-radius:9px;
  background:#fff;
  color:var(--nycc-ink);
  font:inherit;
  font-size:12.5px;
  line-height:1.7;
  transition:border-color .16s ease,box-shadow .16s ease;
}

.nycc-page .form-row textarea{ min-height:92px; resize:vertical; }

.nycc-page .form-row input.input-text:focus,
.nycc-page .form-row textarea:focus,
.nycc-page .form-row select:focus{
  outline:0;
  border-color:var(--nycc-yellow);
  box-shadow:0 0 0 3px rgba(255,194,26,.2);
}

.nycc-page .form-row.woocommerce-invalid input.input-text,
.nycc-page .form-row.woocommerce-invalid select,
.nycc-page .form-row.woocommerce-invalid .select2-container .select2-selection--single{
  border-color:#e79b9a;
  background:#fffafa;
}
.nycc-page .form-row.woocommerce-validated input.input-text{ border-color:#bde4cf; }

.nycc-page .select2-container .select2-selection--single{ display:flex; align-items:center; }
.nycc-page .select2-container .select2-selection__rendered{ padding:0 !important; color:var(--nycc-ink); line-height:inherit; }
.nycc-page .select2-container .select2-selection__arrow{ inset-inline-start:8px; inset-inline-end:auto; height:100%; }

/* چک‌باکس‌ها */
.nycc-page .form-row.woocommerce-validate-required label.checkbox,
.nycc-page .woocommerce-form__label-for-checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.nycc-page .woocommerce-form__input-checkbox{ width:16px; height:16px; margin:0; accent-color:var(--nycc-yellow); }

/* بخش «ارسال به آدرس دیگر» */
.nycc-page #ship-to-different-address{ margin:0 0 12px; font-size:13px; font-weight:800; }
.nycc-page #ship-to-different-address label{ display:flex; align-items:center; gap:8px; cursor:pointer; }

/* ---------------------------------------------------------
   کارت سفارش شما
   --------------------------------------------------------- */
.nycc-review-card{
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}
.nycc-review-card.is-updating{ opacity:.6; pointer-events:none; }

.nycc-review-card .nycc-card-title.is-toggle{ cursor:default; }

.nycc-page .woocommerce-checkout-review-order-table{
  width:100%;
  margin:0;
  border:0;
  border-collapse:collapse;
  font-size:12.5px;
}
.nycc-page .woocommerce-checkout-review-order-table thead{ display:none; }
.nycc-page .woocommerce-checkout-review-order-table th,
.nycc-page .woocommerce-checkout-review-order-table td{
  padding:9px 0;
  border:0;
  border-bottom:1px dashed var(--nycc-line);
  text-align:right;
  vertical-align:top;
}
.nycc-page .woocommerce-checkout-review-order-table td{ text-align:left; font-weight:700; white-space:nowrap; }
.nycc-page .woocommerce-checkout-review-order-table .cart_item th{ color:var(--nycc-ink); font-weight:600; }
.nycc-page .woocommerce-checkout-review-order-table .product-quantity{ color:var(--nycc-muted); font-weight:700; }
.nycc-page .woocommerce-checkout-review-order-table .variation{
  margin:4px 0 0;
  color:var(--nycc-muted);
  font-size:10.5px;
}
.nycc-page .woocommerce-checkout-review-order-table .variation dt,
.nycc-page .woocommerce-checkout-review-order-table .variation dd{
  display:inline;
  margin:0;
  font-weight:600;
}
.nycc-page .woocommerce-checkout-review-order-table .variation dd:after{ content:" "; }
.nycc-page .woocommerce-checkout-review-order-table tfoot th{ color:var(--nycc-muted); font-weight:600; }
.nycc-page .woocommerce-checkout-review-order-table tfoot .order-total th,
.nycc-page .woocommerce-checkout-review-order-table tfoot .order-total td{
  padding-top:12px;
  border-bottom:0;
  font-size:15px;
  font-weight:900;
}
.nycc-page .woocommerce-checkout-review-order-table ul#shipping_method{
  margin:0;
  padding:0;
  list-style:none;
  text-align:right;
}
.nycc-page .woocommerce-checkout-review-order-table ul#shipping_method li{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 5px;
  font-weight:600;
}
.nycc-page .woocommerce-checkout-review-order-table ul#shipping_method input{ accent-color:var(--nycc-yellow); }
.nycc-page .woocommerce-shipping-destination{ margin-top:6px; color:var(--nycc-muted); font-size:10.5px; }

/* ---------------------------------------------------------
   روش‌های پرداخت
   --------------------------------------------------------- */
.nycc-page #payment{ margin-top:14px; border-radius:10px; background:transparent; }
.nycc-page #payment ul.payment_methods{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
  list-style:none;
}
.nycc-page #payment ul.payment_methods li.wc_payment_method{
  margin:0;
  padding:0;
  border:1px solid var(--nycc-line);
  border-radius:10px;
  background:#fff;
  overflow:hidden;
  transition:border-color .16s ease,background-color .16s ease;
}
.nycc-page #payment ul.payment_methods li.wc_payment_method.is-selected{
  border-color:var(--nycc-yellow);
  background:var(--nycc-yellow-soft);
}
.nycc-page #payment ul.payment_methods li.wc_payment_method > label{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  padding:12px 13px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
}
.nycc-page #payment ul.payment_methods li.wc_payment_method input.input-radio{
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--nycc-yellow);
}
.nycc-page #payment ul.payment_methods li.wc_payment_method img{
  max-height:26px;
  width:auto;
  margin-inline-start:auto;
}
.nycc-page #payment div.payment_box{
  position:relative;
  margin:0;
  padding:0 13px 13px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--nycc-muted);
  font-size:11.5px;
  line-height:1.9;
}
.nycc-page #payment div.payment_box:before{ display:none; }
.nycc-page #payment div.payment_box p{ margin:0; }

.nycc-page #payment .woocommerce-privacy-policy-text{
  margin:12px 0 0;
  color:var(--nycc-muted);
  font-size:10.5px;
  line-height:1.9;
}
.nycc-page #payment .woocommerce-terms-and-conditions-wrapper{ margin-top:10px; }
.nycc-page #payment .form-row.place-order{ margin:14px 0 0; padding:0; }

.nycc-page #place_order,
.nycc-page #payment .button.alt{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:46px;
  padding:11px 16px;
  border:0;
  border-radius:10px;
  background:var(--nycc-yellow);
  color:#14213c;
  font:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease;
}
.nycc-page #place_order:hover{ transform:translateY(-1px); filter:brightness(.98); }

.nycc-secure-note{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  color:var(--nycc-muted);
  font-size:10.5px;
}
.nycc-secure-note .nycc-icon{ width:14px; height:14px; }

/* فرم ورود و کوپن بالای صفحه تسویه */
.nycc-page .woocommerce-form-login,
.nycc-page .checkout_coupon{
  margin:0 0 14px;
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
}
.nycc-page .woocommerce-form-login .form-row,
.nycc-page .checkout_coupon .form-row{ margin-bottom:10px; }
.nycc-page .woocommerce-form-login .button,
.nycc-page .checkout_coupon .button{
  min-height:40px;
  padding:9px 18px;
  border:0;
  border-radius:8px;
  background:var(--nycc-yellow);
  color:#14213c;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.nycc-page .checkout_coupon .form-row-first,
.nycc-page .checkout_coupon .form-row-last{ display:inline-block; width:auto; margin-inline-end:8px; }

/* بلاک‌کننده‌ی ووکامرس هنگام به‌روزرسانی */
.nycc-page .blockUI.blockOverlay{ background:rgba(255,255,255,.65) !important; }

/* ---------------------------------------------------------
   ریسپانسیو
   --------------------------------------------------------- */
@media (max-width:1000px){
  .nycc-layout{ grid-template-columns:minmax(0,1fr) 300px; }
}

@media (max-width:900px){
  .nycc-layout{ grid-template-columns:minmax(0,1fr); }
  .nycc-side{ position:static; }
  .nycc-checkout .nycc-side{ order:-1; }
  .nycc-review-card .nycc-card-title.is-toggle{
    display:flex;
    justify-content:space-between;
    cursor:pointer;
  }
  .nycc-review-card .nycc-card-title.is-toggle:after{
    content:"";
    width:9px;
    height:9px;
    border-inline-start:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(-45deg);
    transition:transform .2s ease;
  }
  .nycc-review-card.is-collapsed .nycc-card-title.is-toggle:after{ transform:rotate(135deg); }
  .nycc-review-card.is-collapsed > *:not(.nycc-card-title){ display:none; }
  .nycc-trust{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nycc-cross-sells ul.products{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px){
  .nycc-page{ padding:16px 0 44px; }
  .nycc-shell{ width:min(100%,calc(100% - 24px)); }
  .nycc-head{ gap:10px; }
  .nycc-head h1{ font-size:18px; }
  .nycc-steps{ width:100%; justify-content:space-between; gap:5px; }
  .nycc-steps li{ font-size:10px; }
  .nycc-steps li + li:before{ width:14px; }

  .nycc-item{
    grid-template-columns:74px minmax(0,1fr);
    gap:11px;
    padding:12px;
  }
  .nycc-item-media{ width:74px; height:74px; }
  .nycc-item-price{
    grid-column:1 / -1;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    min-width:0;
    padding-top:9px;
    border-top:1px dashed var(--nycc-line);
  }
  .nycc-item-price strong{ font-size:15px; }

  .nycc-page .woocommerce-billing-fields__field-wrapper,
  .nycc-page .woocommerce-shipping-fields__field-wrapper,
  .nycc-page .woocommerce-additional-fields__field-wrapper{ gap:10px; }
  .nycc-page .form-row.nycc-col-6{ grid-column:span 12; }

  .nycc-toast{ right:12px; left:12px; bottom:12px; max-width:none; }
}

/* =========================================================
   خنثی‌کردن چیدمان پیش‌فرض ووکامرس

   روی این سایت استایل‌های woocommerce-layout / woocommerce-general
   در صفحه‌های سبد و تسویه لود می‌شوند و با float و عرض‌های ۴۸٪ خود،
   گرید دوستونه‌ی ما را از قاب بیرون می‌زنند. اینجا فقط همان قواعد
   چیدمانی خنثی می‌شوند، نه چیز دیگری.
   ========================================================= */
.nycc-page .col2-set,
.nycc-page .col2-set .col-1,
.nycc-page .col2-set .col-2,
.nycc-page #order_review,
.nycc-page #order_review_heading,
.nycc-page .woocommerce-billing-fields,
.nycc-page .woocommerce-shipping-fields,
.nycc-page .woocommerce-additional-fields,
.nycc-page form.checkout,
.nycc-page form.woocommerce-cart-form{
  float:none !important;
  width:auto !important;
  max-width:none !important;
  clear:none !important;
}

.nycc-page .col2-set:after,
.nycc-page .col2-set:before,
.nycc-page form.checkout:after,
.nycc-page form.checkout:before{ content:none !important; }

.nycc-page .form-row-first,
.nycc-page .form-row-last,
.nycc-page .form-row-wide,
.nycc-page .form-row{
  float:none !important;
  width:auto !important;
  margin-inline:0 !important;
}

/* «توضیحات تکمیلی» هم مثل بقیه یک کارت است. */
.nycc-page .woocommerce-additional-fields{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}
.nycc-page .woocommerce-additional-fields:empty{ display:none; }

/* ستون دوم فرم بدون قاب است؛ هر بخش داخلش کارت خودش را دارد. */
.nycc-page .nycc-shipping-col{ padding:0; border:0; background:transparent; box-shadow:none; }
.nycc-page .woocommerce-shipping-fields:has(h3){
  margin-top:14px;
  padding:16px;
  border:1px solid var(--nycc-line);
  border-radius:var(--nycc-radius);
  background:#fff;
  box-shadow:var(--nycc-shadow);
}

/* جدول بازبینی سفارش نباید عرض ثابت ووکامرس را بگیرد. */
.nycc-page table.shop_table{
  width:100% !important;
  border:0 !important;
  border-radius:0 !important;
  margin:0 !important;
}
.nycc-page table.shop_table td,
.nycc-page table.shop_table th{ border-inline:0 !important; }

/* جدول «سفارش شما» در ستون باریک کنار فرم می‌نشیند، پس نباید با نام بلند
   محصول از کارت بیرون بزند. */
.nycc-page .woocommerce-checkout-review-order-table{
  table-layout:fixed;
  width:100% !important;
}
.nycc-page .woocommerce-checkout-review-order-table th{
  width:60%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.nycc-page .woocommerce-checkout-review-order-table td{
  width:40%;
  white-space:normal;
  overflow-wrap:anywhere;
}
.nycc-page .woocommerce-checkout-review-order-table .product-total,
.nycc-page .woocommerce-checkout-review-order-table tfoot td{
  white-space:nowrap;
}
.nycc-page .woocommerce-checkout-review-order-table .product-name .product-quantity{
  display:inline-block;
  margin-inline-start:4px;
}

/* آیکون‌های نوتیس ووکامرس از فونت آیکونی خودش می‌آیند و روی این سایت به
   شکل مربع خالی دیده می‌شوند؛ به‌جایشان یک نقطه‌ی رنگی ساده می‌گذاریم. */
.nycc-page .woocommerce-message:before,
.nycc-page .woocommerce-info:before,
.nycc-page .woocommerce-error:before,
.nycc-page .woocommerce-message:after,
.nycc-page .woocommerce-info:after,
.nycc-page .woocommerce-error:after{
  content:none !important;
  display:none !important;
}
.nycc-page .woocommerce-message,
.nycc-page .woocommerce-info,
.nycc-page .woocommerce-error{
  padding-inline-start:14px !important;
}
