/* ظرف اصلی فرم */
.custom-cf7-form {
  direction: rtl;
  text-align: right;
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 5;
}
.custom-cf7-form textarea:focus {
  background-color: #ffffff;
  border-color: #0f2b3c;
  box-shadow: 0 0 0 4px rgba(15, 43, 60, 0.08);
}

.custom-cf7-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* دکمه ارسال */
.custom-cf7-form .form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.custom-cf7-form input[type="submit"] {
  background-color: #0d2838; /* رنگ سورمه‌ای شبیه به طرح تصویر */
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(13, 40, 56, 0.2);
}

.custom-cf7-form input[type="submit"]:hover {
  background-color: #163e56;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 40, 56, 0.3);
}

.custom-cf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* رفع استایل و پیام‌های خطای CF7 */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc2626;
  margin-top: 5px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-radius: 10px;
  border-color: #10b981;
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  padding: 12px;
  text-align: center;
}
/* ==========================================================
   Modern Minimal Checkout Styles (Woodmart & Elementor)
   ========================================================== */

/* 1. کادر کوپن تخفیف بالای صفحه */
.wd-checkout-coupon {
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
  border: 1px solid #f0f0f0;
}
.wd-checkout-coupon .woocommerce-info {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  font-size: 14px;
  color: #4b5563;
}
.wd-checkout-coupon a.showcoupon {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

/* 2. استپ‌های بالای صفحه (سبد خرید -> تسویه حساب -> تکمیل خرید) */
.elementor-element-bab0c81 {
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f1f5f9;
  margin-bottom: 30px !important;
  padding: 10px 0;
}
.elementor-element-e8bbf26 .elementor-icon-box-title a,
.elementor-element-f75cced .elementor-icon-box-title a,
.elementor-element-d84d400 .elementor-icon-box-title span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

/* 3. فرم مشخصات و اینپوت‌ها */
.woocommerce-billing-fields,
.woocommerce-additional-fields {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 25px;
}
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.woocommerce-billing-fields h3::after,
.woocommerce-additional-fields h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: #2563eb;
  border-radius: 4px;
}

/* استایل فیلدهای ورودی */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.select2-container--default .select2-selection--single {
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  height: auto !important;
  font-size: 14px !important;
  color: #334155 !important;
  transition: all 0.25s ease-in-out !important;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout textarea:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  background-color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

.woocommerce-checkout label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  display: block;
}

/* 4. بخش خلاصه سفارش (ستون سمت چپ) */
.elementor-element-1d33c39 {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  padding: 30px 24px !important;
  overflow: hidden;
}

/* پنهان کردن یا زیباتر کردن شیپ‌های دندانه‌دار قدیمی در صورت عدم نیاز */
.elementor-shape-top,
.elementor-shape-bottom {
  display: none !important;
}

/* جدول اقلام سبد خرید */
.woocommerce-checkout-review-order-table {
  border: none !important;
  margin-bottom: 25px !important;
}
.woocommerce-checkout-review-order-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
}
.woocommerce-checkout-review-order-table tbody td {
  padding: 16px 10px;
  border-bottom: 1px dashed #e2e8f0 !important;
  font-size: 14px;
  color: #334155;
}
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  padding: 14px 10px;
  border-top: 1px solid #f1f5f9;
}
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
  border-top: 2px solid #e2e8f0;
  font-size: 17px;
  color: #0f172a;
  font-weight: 800;
}
.woocommerce-checkout-review-order-table .amount {
  color: #0f172a;
  font-weight: 700;
}

/* 5. پیام‌های هشدار / خطا و روش پرداخت */
.woocommerce-info,
.woocommerce-checkout-payment .woocommerce-info {
  background: #fff1f2 !important;
  border: 1px solid #ffe4e6 !important;
  border-radius: 12px !important;
  color: #e11d48 !important;
  font-size: 13.5px !important;
  padding: 14px 18px !important;
  line-height: 1.6;
}

/* 6. دکمه‌های ثبت سفارش و پیش‌فاکتور */
#place_order {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 15px 25px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: normal;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
}

#place_order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}

.btn-prefactor {
  background: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-top: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease;
}

.btn-prefactor a {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none;
  display: block;
}

.btn-prefactor:hover {
  background: #e2e8f0 !important;
}
/* استایل یکپارچه و مدرن برای بخش تعداد در صفحه محصول */
.woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* کانتینر انتخاب تعداد */
.woocommerce-variation-add-to-cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #f5f6f8 !important;
  border: 1px solid #e2e5ec !important;
  border-radius: 30px !important; /* گردی هماهنگ با دکمه خرید */
  padding: 3px 6px !important;
  height: 48px !important; /* ارتفاع متناسب */
  min-width: 120px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease-in-out;
}

.woocommerce-variation-add-to-cart .quantity:hover {
  border-color: #cbd2dc !important;
}

/* دکمه‌های مثبت و منفی */
.woocommerce-variation-add-to-cart .quantity .btn,
.woocommerce-variation-add-to-cart .quantity .plus,
.woocommerce-variation-add-to-cart .quantity .minus {
  width: 34px !important;
  height: 34px !important;
  background-color: #ffffff !important;
  color: #2b2d42 !important;
  border: 1px solid #e9ecef !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* حالت هاور دکمه‌ها */
.woocommerce-variation-add-to-cart .quantity .btn:hover,
.woocommerce-variation-add-to-cart .quantity .plus:hover,
.woocommerce-variation-add-to-cart .quantity .minus:hover {
  background-color: #1a1d24 !important;
  color: #ffffff !important;
  border-color: #1a1d24 !important;
}

/* فیلد عدد (اینپوت) */
.woocommerce-variation-add-to-cart .quantity input.qty {
  width: 40px !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a1d24 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

/* حذف فلش‌های پیش‌فرض مرورگر */
.woocommerce-variation-add-to-cart
  .quantity
  input.qty::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart
  .quantity
  input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* هماهنگ‌سازی دکمه افزودن به سبد خرید */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
  height: 48px !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
}
/* آیکن علاقه مندی */
/* حذف آیکن مربعی پیش‌فرض و نمایش قلب توخالی */
.dashboard_menu__item.woocommerce-MyAccount-navigation-link--wd_wishlist .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
}

.dashboard_menu__item.woocommerce-MyAccount-navigation-link--wd_wishlist
  .icon::after {
  content: "" !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background-color: currentColor !important;

  /* آیکن قلب توخالی (Outline) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;

  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
}
/* آیکن علاقه‌مندی در منوی پروفایل */
.user-menu a[href*="/my-account/wd_wishlist/"] .icon {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-menu a[href*="/my-account/wd_wishlist/"] .icon::after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background-color: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
/*  */
/*  */
/* مخفی کردن سایدبار منوی حساب کاربری فقط در صفحه علاقه‌مندی */
.elementor-widget-wd_wishlist .wd-my-account-sidebar {
  display: none !important;
}

/* تمام‌عرض و وسط‌چین کردن محتوای علاقه‌مندی */
.elementor-widget-wd_wishlist .woocommerce-MyAccount-content {
  --wd-col-lg: 12 !important;
  --wd-col-md: 12 !important;
  --wd-col-sm: 12 !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* تراز وسط برای باکس خالی بودن علاقه‌مندی */
.elementor-widget-wd_wishlist .wd-wishlist-content,
.elementor-widget-wd_wishlist .wd-empty-block {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* تنظیم کارت سفید و محتوای بخش علاقه‌مندی در داشبورد */
.woocommerce-MyAccount-content .wd-wishlist-content,
.white_card.woocommerce-MyAccount-content .wd-wishlist-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* تنظیم ابعاد و ترازبندی باکس خالی بودن */
.woocommerce-MyAccount-content .wd-empty-wishlist,
.white_card .wd-empty-wishlist {
  max-width: 580px;
  margin: 0 auto;
  padding: 35px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* اصلاح آیکون قلب */
.woocommerce-MyAccount-content .wd-empty-wishlist::before,
.woocommerce-MyAccount-content .wd-empty-wishlist .wd-empty-page-icon {
  margin-bottom: 15px !important;
}

/* متن و توضیحات */
.woocommerce-MyAccount-content .wd-empty-wishlist .wd-empty-block-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: #2b2b2b !important;
}

.woocommerce-MyAccount-content .wd-empty-wishlist .wd-empty-block-text {
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  color: #777777 !important;
  margin-bottom: 25px !important;
  max-width: 480px;
}

/* دکمه بازگشت به فروشگاه (جلوگیری از کشیدگی ۱۰۰٪ و تنظیم سایز استاندارد) */
.woocommerce-MyAccount-content .wd-empty-wishlist .wd-empty-block-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 170px;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600;
}
/*  */
/*  */
/*  */
/* ===================================================
   Custom Order Tracking Styling - Taradis Web
   =================================================== */

:root {
  --track-primary: #007eff;
  --track-primary-hover: #0066d6;
  --track-primary-light: #eaf4ff;
  --track-bg-card: #ffffff;
  --track-text-main: #23272e;
  --track-text-muted: #717784;
  --track-border: #e2e8f0;
  --track-radius: 14px;
  --track-shadow:
    0 10px 30px -5px rgba(0, 126, 255, 0.08),
    0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.container_orderpage {
  max-width: 720px;
  margin: 30px auto;
  padding: 32px 24px;
  background: var(--track-bg-card);
  border-radius: var(--track-radius);
  box-shadow: var(--track-shadow);
  border: 1px solid var(--track-border);
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
}

.container_orderpage * {
  box-sizing: border-box;
}

/* هدر صفحه */
.container_orderpage header {
  text-align: center;
  margin-bottom: 28px;
}

.container_orderpage header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--track-text-main);
  margin: 0 0 8px 0;
}

.container_orderpage header p {
  font-size: 0.95rem;
  color: var(--track-text-muted);
  margin: 0;
}

/* باکس جستجو و فرم */
.container_orderpage .search-box {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.container_orderpage .form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.container_orderpage .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.container_orderpage .input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--track-text-main);
}

.container_orderpage .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* رفع مشکل اندازه آیکون‌ها */
.container_orderpage .input-wrapper .input-icon {
  position: absolute;
  right: 14px;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.container_orderpage .input-wrapper input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px !important;
  border: 1.5px solid var(--track-border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--track-text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}

.container_orderpage .input-wrapper input:focus {
  border-color: var(--track-primary);
  box-shadow: 0 0 0 4px rgba(0, 126, 255, 0.12);
}

.container_orderpage .input-wrapper input:focus + .input-icon,
.container_orderpage .input-wrapper:focus-within .input-icon {
  color: var(--track-primary);
}

/* دکمه پیگیری */
.container_orderpage .btn-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: var(--track-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 6px;
}

.container_orderpage .btn-track svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor;
}

.container_orderpage .btn-track:hover {
  background: var(--track-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 126, 255, 0.25);
}

/* کارت جزییات سفارش */
.container_orderpage .order-details {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--track-border);
  border-radius: 12px;
}

.container_orderpage .order-details h2,
.container_orderpage .order-status h2,
.container_orderpage .order-items h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--track-text-main);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.container_orderpage .details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 580px) {
  .container_orderpage .details-grid {
    grid-template-columns: 1fr;
  }
}

.container_orderpage .detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.container_orderpage .detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: var(--track-primary-light);
  color: var(--track-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container_orderpage .detail-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.container_orderpage .detail-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.container_orderpage .detail-label {
  font-size: 0.78rem;
  color: var(--track-text-muted);
}

.container_orderpage .detail-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--track-text-main);
}

/* تایم‌لاین وضعیت سفارش */
.container_orderpage .order-status {
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--track-border);
  border-radius: 12px;
}

.container_orderpage .status-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
}

.container_orderpage .status-step {
  width: 36px;
  height: 36px;
  background: var(--track-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container_orderpage .status-step svg {
  width: 20px !important;
  height: 20px !important;
}

/* لودر وضعیت */
#tracking-loader {
  text-align: center;
  padding: 24px 0;
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid var(--track-primary-light);
  border-top: 3.5px solid var(--track-primary);
  border-radius: 50%;
  animation: track-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes track-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ==========================================
   فیکس کامل و جمع‌وجور کردن فرم سرچ گوتنبرگ
   ========================================== */

/* والد کل فرم سرچ */
.wd-sidebar .wp-block-search {
  margin-bottom: 0 !important;
}

/* عنوان "جستجو" */
.wd-sidebar .wp-block-search__label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #333 !important;
}

/* کانتینر دربرگیرنده اینپوت و دکمه */
.wd-sidebar .wp-block-search__inside-wrapper {
  display: flex !important;
  flex-direction: row !important; /* فیلد راست، دکمه چپ */
  align-items: center !important;
  background: #f8f9fa !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 3px !important;
  max-width: 100% !important;
  height: 42px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.wd-sidebar .wp-block-search__inside-wrapper:focus-within {
  background: #ffffff !important;
  border-color: #222222 !important;
}

/* فیلد ورودی متن */
.wd-sidebar .wp-block-search__input {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  color: #333 !important;
  margin: 0 !important;
}

/* دکمه سرچ */
.wd-sidebar .wp-block-search__button {
  flex: 0 0 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  background-color: #222222 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wd-sidebar .wp-block-search__button:hover {
  background-color: #000000 !important;
}
/* ==========================================
   استایل کلی کارت‌های سایدبار (پس‌زمینه سفید + سایه)
   ========================================== */
.wd-sidebar .widget_block,
.wd-sidebar .widget {
  background-color: #ffffff !important; /* رنگ سفید کارت */
  padding: 20px !important; /* فضای داخلی */
  border-radius: 16px !important; /* گوشه‌های گرد */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important; /* سایه ملایم */
  margin-bottom: 20px !important; /* فاصله بین دو باکس */
  border: 1px solid #f0f0f0 !important; /* خط دور خیلی کمرنگ */
}

/* ==========================================
   فیکس کردن عنوان (داخل کارت)
   ========================================== */
.wd-sidebar .wp-block-heading {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin-bottom: 15px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

/* ==========================================
   استایل لیست داخل کارت
   ========================================== */
.wd-sidebar .wp-block-latest-posts__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wd-sidebar .wp-block-latest-posts__list li {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed #edf2f7 !important;
  position: relative !important;
  padding-right: 15px !important;
}

.wd-sidebar .wp-block-latest-posts__list li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* بولت لیست */
.wd-sidebar .wp-block-latest-posts__list li::before {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 10px !important;
  width: 6px !important;
  height: 6px !important;
  background-color: #cbd5e1 !important;
  border-radius: 50% !important;
}

.wd-sidebar .wp-block-latest-posts__post-title {
  color: #555 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: 0.3s !important;
}

.wd-sidebar .wp-block-latest-posts__post-title:hover {
  color: #000 !important;
}
/* =====================================
   استایل فیلد تعداد در جدول سبد خرید
===================================== */
.woocommerce-cart-form .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #f6f7f9 !important;
  border: 1px solid #e2e5ec !important;
  border-radius: 30px !important;
  padding: 2px 5px !important;
  height: 42px !important;
  min-width: 110px !important;
  max-width: 120px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease-in-out !important;
  margin: 0 auto !important;
}

.woocommerce-cart-form .product-quantity .quantity:hover {
  border-color: #cbd2dc !important;
  background-color: #f0f2f5 !important;
}

/* دکمه‌های مثبت و منفی در سبد خرید */
.woocommerce-cart-form .product-quantity .quantity .btn,
.woocommerce-cart-form .product-quantity .quantity .plus,
.woocommerce-cart-form .product-quantity .quantity .minus {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  background-color: #ffffff !important;
  color: #2b2d42 !important;
  border: 1px solid #e6e9ef !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* هاور دکمه‌ها */
.woocommerce-cart-form .product-quantity .quantity .btn:hover,
.woocommerce-cart-form .product-quantity .quantity .plus:hover,
.woocommerce-cart-form .product-quantity .quantity .minus:hover {
  background-color: #1a1d24 !important;
  color: #ffffff !important;
  border-color: #1a1d24 !important;
}

/* اینپوت عدد */
.woocommerce-cart-form .product-quantity .quantity input.qty {
  width: 36px !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1d24 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.woocommerce-cart-form
  .product-quantity
  .quantity
  input.qty::-webkit-outer-spin-button,
.woocommerce-cart-form
  .product-quantity
  .quantity
  input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
/*  */
.searchform .searchsubmit {
  border-radius: 8px 0 0 8px !important;
}
.widget_price_filter [class*="price_slider_amount"] .button {
  color: #fff !important;
}
.button.btn.btn-default.btn-cart.wc-forward {
  color: #fff !important;
}

/* ==========================================================================
   1. استایل مدرن و مینیمال باکس کد تخفیف (بالای صفحه)
   ========================================================================== */
.wd-checkout-coupon {
  margin-bottom: 24px !important;
  width: 100% !important;
}

.wd-checkout-coupon .woocommerce-form-coupon-toggle .woocommerce-info {
  background-color: #ffffff !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 16px 24px !important;
  color: #475569 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.wd-checkout-coupon .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none !important; /* حذف آیکون پیش‌فرض شلوغ ووکامرس */
}

.wd-checkout-coupon .woocommerce-form-coupon-toggle a.showcoupon {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.wd-checkout-coupon .woocommerce-form-coupon-toggle a.showcoupon:hover {
  color: #1d4ed8 !important;
}

/* فرم بازشونده کد تخفیف */
form.checkout_coupon.woocommerce-form-coupon {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-top: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   2. اصلاح کانتینر و باکس «سفارش شما» (حذف دندانه‌ها و یکپارچه‌سازی)
   ========================================================================== */
/* حذف دندانه‌های بالا و پایین ویندوز شکل (Shape Dividers) */
.elementor-element-1d33c39 .elementor-shape,
.elementor-element-1d33c39 .elementor-shape-top,
.elementor-element-1d33c39 .elementor-shape-bottom {
  display: none !important;
}

/* استایل بدنه کارت سفارش شما */
.elementor-element-1d33c39 {
  background-color: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  padding: 30px 24px !important;
}

/* عنوان سفارش شما */
.elementor-element-50a6318 .title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 20px !important;
}

/* ریست کردن پس‌زمینه اضافه ویجت‌ها برای یکپارچگی */
.elementor-element-91face9 > .elementor-widget-container,
.elementor-element-6a74495 .payment_box {
  background-color: transparent !important;
  padding: 0 !important;
}

/* ==========================================================================
   3. استایل جدول سفارش و آیتم‌ها
   ========================================================================== */
.woocommerce-checkout-review-order-table {
  border: none !important;
  margin-bottom: 15px !important;
  width: 100% !important;
}

.woocommerce-checkout-review-order-table thead th {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-checkout-review-order-table tbody td {
  padding: 16px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  padding: 14px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  font-size: 14px !important;
}

/* ردیف جمع کل نهایی */
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
  border-bottom: none !important;
  padding-top: 18px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   4. استایل روش‌های ارسال و رادیوباتن‌ها
   ========================================================================== */
#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#shipping_method li {
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #334155 !important;
}

#shipping_method input[type="radio"] {
  margin: 0 !important;
  accent-color: #059669; /* رنگ سبز تمیز برای انتخاب */
}

/* ==========================================================================
   5. استایل باکس خطا، روش پرداخت و باکس امتیاز
   ========================================================================== */
/* پیام عدم وجود روش پرداخت (حالت مینیمال و نرم) */
.woocommerce-checkout-payment .payment_methods .woocommerce-info {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 12px !important;
  color: #9f1239 !important;
  font-size: 13px !important;
  padding: 14px 16px !important;
  line-height: 1.6 !important;
  margin: 15px 0 !important;
}

/* باکس امتیاز خرید */
.cart-reward-notice {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  color: #166534 !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  margin-top: 15px !important;
  text-align: center !important;
}

.cart-reward-notice p {
  margin: 0 !important;
}

/* دکمه ثبت سفارش */
#place_order {
  background-color: #00a859 !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(0, 168, 89, 0.25) !important;
}

#place_order:hover {
  background-color: #008f4c !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 89, 0.35) !important;
}
/*  */
/* ==========================================================================
   ۱. اصلاح خط‌های جداکننده جدول سفارش شما (یکدست و مدرن)
   ========================================================================== */
.woocommerce-checkout-review-order-table {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

/* سربرگ جدول (محصول / جمع جزء) */
.woocommerce-checkout-review-order-table thead th {
  border: none !important;
  border-bottom: 1px solid #edf2f7 !important;
  padding: 12px 4px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* تمام ردیف‌ها و آیتم‌های میانی (حذف خط‌چین‌های دندانه‌ای) */
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tbody th,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px 4px !important;
  vertical-align: middle !important;
}

/* رفع ناهماهنگی کادر کنار عنوان «مرسوله» */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
  font-size: 14px !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  width: 25% !important;
  vertical-align: top !important;
  padding-top: 14px !important;
}

.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
  padding-top: 12px !important;
  padding-bottom: 14px !important;
}

/* ردیف مجموع کل */
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
  border-bottom: none !important;
  padding-top: 22px !important;
  padding-bottom: 8px !important;
}

/* ==========================================================================
   ۲. استایل مدرن گزینه‌های ارسال (رادیوباتن‌های کارتی)
   ========================================================================== */
#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#shipping_method li {
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

#shipping_method li:hover {
  border-color: #cbd5e1 !important;
  background-color: #f1f5f9 !important;
}

/* وقتی گزینه انتخاب شده باشد */
#shipping_method li:has(input[type="radio"]:checked) {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
}

#shipping_method input[type="radio"] {
  appearance: auto !important;
  accent-color: #00a859 !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 0 0 10px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

#shipping_method label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  margin: 0 !important;
  cursor: pointer !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   ۳. باکس اخطار عدم وجود روش پرداخت (با آیکون SVG وکتوری تضمینی)
   ========================================================================== */
.woocommerce-checkout-payment .woocommerce-info,
.woocommerce-checkout-payment .woocommerce-notice,
.woocommerce-checkout-payment .payment_methods li .woocommerce-info {
  background-color: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: #991b1b !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: none !important;
  margin: 18px 0 !important;
  text-align: right !important;
}

/* آیکون هشدار وکتوری SVG (بدون نیاز به فونت آیکون) */
.woocommerce-checkout-payment .woocommerce-info::before,
.woocommerce-checkout-payment .woocommerce-notice::before,
.woocommerce-checkout-payment .payment_methods li .woocommerce-info::before {
  content: "" !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  float: none !important;
  position: static !important;
  margin: 0 !important;
}

/* ==========================================================================
   ۴. باکس امتیاز خرید زیر دکمه ثبت سفارش (تم سبز پاداش)
   ========================================================================== */
.elementor-element-1d33c39 div[class*="reward"],
.elementor-element-1d33c39
  .woocommerce-info:not(.woocommerce-checkout-payment .woocommerce-info),
.cart-reward-notice {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  color: #15803d !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  margin-top: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
}

.elementor-element-1d33c39 div[class*="reward"]::before,
.elementor-element-1d33c39
  .woocommerce-info:not(
    .woocommerce-checkout-payment .woocommerce-info
  )::before,
.cart-reward-notice::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a' stroke='%2316a34a' stroke-width='1'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border: none !important;
  position: static !important;
}
/*  */
/*  */
/*  */
/*  */
/* ===================================================
   استایل اختصاصی، مدرن و هماهنگ داشبورد باشگاه مشتریان
   =================================================== */

/* 1. کانتینر اصلی و گرید ستون‌ها */
.we-club-dashboard-container {
  width: 100%;
  margin: 0 auto;
  direction: rtl;
  box-sizing: border-box;
}

.we-club-dashboard-header {
  margin-bottom: 24px;
}

.we-club-dashboard-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.we-club-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch; /* هم‌ارتفاع شدن دو کارت اصلی */
}

/* 2. استایل عمومی کارت‌ها */
.we-club-dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.we-club-dashboard-card:hover {
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.we-club-dashboard-card-full {
  grid-column: 1 / -1;
}

/* سربرگ کارت‌ها */
.we-club-dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.we-club-dashboard-card-header .westaweb-icon {
  font-size: 18px;
  color: #3b82f6;
}

.we-club-dashboard-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

/* بدنه کارت‌ها */
.we-club-dashboard-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------
   3. کارت سمت راست: وضعیت شما (User Status)
   --------------------------------------------------- */
.we-club-dashboard-card-user-status .we-club-dashboard-card-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start; /* شروع دقیقاً از بالای کارت هم‌تراز با کارت چپ */
}

.we-club-dashboard-stat {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 82px; /* هم‌اندازه با باکس‌های سمت چپ */
  box-sizing: border-box;
}

.we-club-dashboard-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.we-club-dashboard-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------
   4. کارت سمت چپ: دعوت از دوستان (Referral)
   --------------------------------------------------- */
.we-club-dashboard-referral-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.we-club-dashboard-referral-stat-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 82px;
  box-sizing: border-box;
}

.we-club-dashboard-referral-stat-item .stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.we-club-dashboard-referral-stat-item .stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

/* باکس لینک رفرال و دکمه کپی */
.referral-url-wrapper {
  margin-top: auto; /* چسبیدن تمیز به انتهای کارت */
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 6px 8px;
  gap: 10px;
  direction: ltr;
}

.referral-url {
  flex: 1;
  font-size: 13px;
  font-family: inherit, monospace;
  color: #0f172a !important;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 6px;
  opacity: 1 !important;
}

.referral-url-wrapper .we-club-btn.js-copy {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  direction: rtl;
}

.referral-url-wrapper .we-club-btn.js-copy:hover {
  background: #1d4ed8;
}

/* ---------------------------------------------------
   5. کارت دسترسی سریع (Quick Links)
   --------------------------------------------------- */
.we-club-dashboard-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.we-club-dashboard-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.we-club-dashboard-links li a .westaweb-icon {
  font-size: 16px;
  color: #64748b;
  transition: color 0.2s ease;
}

.we-club-dashboard-links li a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateX(-3px);
}

.we-club-dashboard-links li a:hover .westaweb-icon {
  color: #2563eb;
}

/* ---------------------------------------------------
   6. بنر دریافت امتیاز روزانه (Daily Visit Banner)
   --------------------------------------------------- */
.we-club-dashboard-daily-visits {
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
}

.we-club-daily-visit-wrapper {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.daily-visit-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.daily-visit-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.daily-visit-msg {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.daily-visit-btn {
  background: #ffffff;
  color: #1d4ed8;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.daily-visit-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------
   واکنش‌گرایی (Responsive)
   --------------------------------------------------- */
@media (max-width: 768px) {
  .we-club-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .we-club-dashboard-links {
    grid-template-columns: 1fr;
  }

  .daily-visit-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .daily-visit-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

/*  */
/*  */
/*  */
/* کانتینر اصلی داشبورد */
.dashboard_main {
  direction: rtl;
  text-align: right;
  font-family: inherit;
  color: #2c3e50;
  max-width: 900px;
  margin: 0 auto;
}

/* سربرگ دعوت از دوستان */
.referral-info .referral-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.referral-info > div:not([class]) {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* باکس لینک رفرال و کپی */
.referral-url-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 35px;
  transition: all 0.2s ease;
}

.referral-url-wrapper:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.referral-url-wrapper .referral-url {
  direction: ltr;
  font-family: monospace, inherit;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-url-wrapper .we-club-btn.js-copy {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.referral-url-wrapper .we-club-btn.js-copy:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* بخش جدول آمار و ارقام */
.we_club_referral_statistics_container {
  margin-top: 30px;
}

.we_club_referral_statistics_container h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.we_club_referral_statistics_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.we_club_referral_statistics_table th {
  background: #f1f5f9;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.we_club_referral_statistics_table td {
  padding: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: none;
}

.we_club_referral_statistics_table tr:not(:last-child) td {
  border-bottom: 1px solid #f1f5f9;
}

/* کارت‌های نمایش نرخ امتیازات */
.referral-points-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.referral-points-info p {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.referral-points-info p strong {
  color: #10b981;
  font-size: 14px;
  font-weight: 700;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 640px) {
  .referral-url-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }

  .referral-url-wrapper .referral-url {
    text-align: center;
    padding: 6px 0;
  }

  .we_club_referral_statistics_table th,
  .we_club_referral_statistics_table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .we_club_referral_statistics_table td {
    font-size: 14px;
  }
}
/* ایجاد باکس مدرن با پدینگ داخلی برای جدول */
.we_club_referral_statistics_container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px; /* فاصله از اطراف (Padding) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* اصلاح استایل جدول داخل باکس */
.we_club_referral_statistics_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* فاصله بین سطر هدر و سطر مقادیر */
  margin: 0;
}

/* سطر هدر */
.we_club_referral_statistics_table th {
  background: #f8fafc;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 10px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.we_club_referral_statistics_table th:first-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.we_club_referral_statistics_table th:last-child {
  border-left: 1px solid #e2e8f0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* سطر داده‌ها */
.we_club_referral_statistics_table td {
  background: #ffffff;
  color: #1e293b;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 10px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.we_club_referral_statistics_table td:first-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.we_club_referral_statistics_table td:last-child {
  border-left: 1px solid #e2e8f0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.we_club_referral_statistics_table {
  border-spacing: 8px !important;
}
/*  */
/*  */
/*  */
/* تنظیم فاصله افقی آیکون از متن برای ۴ مورد آخر */
.dashboard_menu li.woocommerce-MyAccount-navigation-link--club a::before,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--plans a::before,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--coupons a::before,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--referral a::before,
.menu-westaweb-icon-gift1 a::before,
.menu-westaweb-icon-fire a::before,
.menu-westaweb-icon-ticket a::before,
.menu-westaweb-icon-user-plus a::before {
  margin-left: 10px !important; /* فاصله آیکون از متن (در حالت RTL) */
  display: inline-block !important;
}

/* اگر آیکون بعد از متن قرار گرفته (::after) */
.dashboard_menu li.woocommerce-MyAccount-navigation-link--club a::after,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--plans a::after,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--coupons a::after,
.dashboard_menu li.woocommerce-MyAccount-navigation-link--referral a::after,
.menu-westaweb-icon-gift1 a::after,
.menu-westaweb-icon-fire a::after,
.menu-westaweb-icon-ticket a::after,
.menu-westaweb-icon-user-plus a::after {
  margin-right: 10px !important;
  display: inline-block !important;
}
/*  */
/*  */
/*  */
@media (max-width: 768px) {
  /* مخفی کردن آواتار */
  .dashboard_side__main .dashboard_avatar {
    display: none !important;
  }

  /* صاف کردن بالای باکس اطلاعات و برداشتن فرورفتگی آواتار */
  .dashboard_side__main .dashboard_side__user {
    margin-top: 15px !important;
    padding-top: 15px !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    border-radius: 12px !important; /* گردی گوشه‌های کامل و یکدست */
  }

  /* اگر پس‌زمینه قبل از آن شبه‌عنصر ::before یا ::after داشت */
  .dashboard_side__main .dashboard_side__user::before,
  .dashboard_side__main .dashboard_side__user::after {
    display: none !important;
  }
}
/*  */
/*  */
/* حذف محل بارگذاری عکس پروفایل در صفحه جزئیات حساب */
.woocommerce-EditAccountForm .avatar_container {
  display: none !important;
}
/*  */
/*  */
/*  */
/* ==================================================
   استایل فرم آدرس حمل‌ونقل و صورت‌حسابندی ۲ */

/* شبکه بندی ۲ ستونه */
.items_container--2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
  margin-bottom: 15px !important;
}

@media (max-width: 768px) {
  .items_container--2 {
    grid-template-columns: 1fr !important;
  }
}

/* ورودی‌ها و Select2 هم‌اندازه با بقیه فیلدها */
form[method="post"].gap-y-3 input[type="text"],
form[method="post"].gap-y-3 input[type="tel"],
form[method="post"].gap-y-3
  .select2-container--default
  .select2-selection--single {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #2d3748 !important;
  transition: all 0.2s ease-in-out !important;
}

/* حالت فوکوس */
form[method="post"].gap-y-3 input:focus,
form[method="post"].gap-y-3
  .select2-container--open
  .select2-selection--single {
  background-color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* فیلد ثابت کشور */
#shipping_country_field .woocommerce-input-wrapper strong,
#billing_country_field .woocommerce-input-wrapper strong {
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  color: #4a5568 !important;
  font-weight: 600 !important;
}

/* اصلاح دقیق Select2 استان */
form[method="post"].gap-y-3
  .select2-container--default
  .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  line-height: 44px !important;
}

form[method="post"].gap-y-3 .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

form[method="post"].gap-y-3 .select2-selection__arrow {
  height: 44px !important;
  top: 0 !important;
  left: 10px !important;
  right: auto !important;
}

/* دکمه ذخیره */
form[method="post"].gap-y-3 button[name="save_address"] {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

form[method="post"].gap-y-3 button[name="save_address"]:hover {
  background-color: #1e40af !important;
}

/* --- اصلاح کلی جمع کل و جدول --- */
.wd-cart-totals .cart-totals-inner > h2 {
  display: none !important;
}

.wd-cart-totals .shop_table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}
.wd-cart-totals .shop_table tr th {
  vertical-align: top !important;
  padding-top: 15px !important;
}

/* --- استایل روش‌های ارسال --- */
ul#shipping_method {
  list-style: none !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}
ul#shipping_method li {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
}
ul#shipping_method li:has(input:checked) {
  border-color: #459670;
  background-color: #f6fcf8;
}

/* --- فرم آدرس (تمام عرض) --- */
.shipping-calculator-form .form-row {
  margin-bottom: 12px !important;
}
.shipping-calculator-form input.input-text,
.shipping-calculator-form
  .select2-container--default
  .select2-selection--single {
  width: 100% !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #e1e1e1 !important;
}

/* --- تمام عرض کردن دکمه‌ها --- */
/* دکمه بروزرسانی آدرس */
.shipping-calculator-form button[name="calc_shipping"] {
  width: 100% !important;
  display: block !important;
  padding: 12px !important;
  border-radius: 25px !important;
  font-weight: bold;
}

/* دکمه ادامه جهت تسویه حساب */
.wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: 14px !important;
  border-radius: 25px !important;
}

/* --- سطر مجموع کل --- */
.order-total th,
.order-total td {
  font-size: 16px;
  font-weight: bold;
  border-top: 1px solid #eee !important;
  padding-top: 15px !important;
}

/* --- باکس امتیاز --- */
.cart-reward-notice {
  background-color: #edf9f0 !important;
  border: 1px solid #bcead0 !important;
  border-radius: 10px !important;
  padding: 10px !important;
  margin-top: 15px !important;
  text-align: center;
}

/* اصلاح متن محو دکمه بروزرسانی */
.shipping-calculator-form button[name="calc_shipping"] {
  color: #ffffff !important;
  background-color: #16324f !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: bold !important;
  opacity: 1 !important;
  line-height: 1.6 !important;
}

.shipping-calculator-form button[name="calc_shipping"]:hover {
  opacity: 0.9 !important;
}

/* استایل کامل و رفع تداخل آیکون با متن در خطای ووکامرس */
.woocommerce-error,
div[role="alert"] .woocommerce-error {
  background-color: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  border-right: 4px solid #ef4444 !important;
  border-radius: 8px !important;
  padding: 14px 20px !important;
  position: relative !important;
  list-style: none !important;
  margin-bottom: 25px !important;
}

/* رفع تداخل متن و ایجاد فاصله از آیکون */
.woocommerce-error li,
div[role="alert"] .woocommerce-error li {
  color: #991b1b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  padding-right: 32px !important; /* فاصله متن از آیکون سمت راست */
  list-style: none !important;
}

/* تنظیم جایگاه آیکون خطا در سمت راست کادر */
.woocommerce-error::before,
div[role="alert"] .woocommerce-error::before,
.woocommerce-error li::before {
  right: 14px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #ef4444 !important;
  font-size: 18px !important;
}
/*  */
/*  */
/*  */
/* ==========================================================
   طراحی اختصاصی و استاندارد صفحه جزئیات سفارش (وودمارت / ووکامرس)
   ========================================================== */

/* کانتینر اصلی و خنثی‌سازی چپ‌چین قالب */
.elementor-element-59b6b57 {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 20px 12px 60px !important;
  direction: rtl !important;
  text-align: right !important;
  box-sizing: border-box !important;
}

.elementor-element-59b6b57 * {
  box-sizing: border-box !important;
}

/* ۱. پیام تشکر سبز رنگ */
.woocommerce-notice--success.woocommerce-thankyou-order-received {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  border-right: 4px solid #10b981 !important;
  color: #065f46 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  text-align: center !important;
  margin: 0 0 16px 0 !important;
}

/* ۲. کارت مشخصات بالای سفارش (شماره سفارش، تاریخ، مبلغ و...) */
.wd-el-tp-order-overview {
  text-align: right !important;
  height: auto !important;
  min-height: unset !important;
}

ul.woocommerce-order-overview.order_details {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin: 0 0 16px 0 !important;
  list-style: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

ul.woocommerce-order-overview li {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  text-align: right !important;
}

ul.woocommerce-order-overview li strong {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

ul.woocommerce-order-overview li.total strong {
  color: #2563eb !important;
}

/* ۳. باکس مشخصات فاکتور */
.woocommerce-order-details {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
}

.woocommerce-order-details__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-align: right !important;
}

.responsive-table {
  width: 100% !important;
  overflow-x: hidden !important;
}

table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  border: none !important;
}

/* سرستون‌ها (تراز شده با اقلام) */
table.woocommerce-table--order-details thead tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
}

table.woocommerce-table--order-details thead th {
  background: transparent !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border: none !important;
}

table.woocommerce-table--order-details thead th.product-name {
  text-align: right !important;
}

table.woocommerce-table--order-details thead th.product-total {
  text-align: left !important;
}

/* سطر محصول در بدنه */
table.woocommerce-table--order-details tbody {
  display: block !important;
  width: 100% !important;
}

table.woocommerce-table--order-details tbody tr {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 14px 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  width: 100% !important;
}

/* ستون نام و ویژگی‌ها */
table.woocommerce-table--order-details tbody td.product-name {
  flex: 1 1 auto !important;
  text-align: right !important;
  padding: 0 0 0 10px !important;
  border: none !important;
}

table.woocommerce-table--order-details tbody td.product-name a {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  display: inline !important;
}

/* ویژگی‌های محصول (سایز، رنگ) */
table.woocommerce-table--order-details tbody .wc-item-meta {
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 11.5px !important;
  color: #64748b !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
}

table.woocommerce-table--order-details tbody .wc-item-meta li {
  display: inline-flex !important;
  gap: 4px !important;
  align-items: center !important;
  margin: 0 !important;
}

table.woocommerce-table--order-details tbody .wc-item-meta p {
  margin: 0 !important;
  display: inline !important;
}

/* ستون تعداد (× 1) */
table.woocommerce-table--order-details tbody td:nth-child(2) {
  flex: 0 0 auto !important;
  text-align: center !important;
  padding: 2px 8px !important;
  border: none !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ستون قیمت محصول */
table.woocommerce-table--order-details tbody td.product-total {
  flex: 0 0 auto !important;
  text-align: left !important;
  padding: 0 !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
}

/* مخفی‌کردن td چهارم تکراری */
table.woocommerce-table--order-details tbody td:nth-child(4) {
  display: none !important;
}

/* سطرهای جمع و هزینه‌ها (فوتر جدول) */
table.woocommerce-table--order-details tfoot:last-of-type {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
}

table.woocommerce-table--order-details tfoot:last-of-type tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 6px !important;
  border-bottom: 1px dashed #f1f5f9 !important;
  width: 100% !important;
}

table.woocommerce-table--order-details tfoot:last-of-type th {
  text-align: right !important;
  font-weight: 500 !important;
  color: #64748b !important;
  font-size: 13px !important;
  border: none !important;
  padding: 0 !important;
}

table.woocommerce-table--order-details tfoot:last-of-type td {
  text-align: left !important;
  font-size: 13px !important;
  color: #0f172a !important;
  border: none !important;
  padding: 0 !important;
}

table.woocommerce-table--order-details tfoot small.shipped_via {
  display: block !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  margin-top: 2px !important;
}

/* قیمت نهایی */
table.woocommerce-table--order-details
  tfoot:last-of-type
  tr:nth-last-child(2)
  th,
table.woocommerce-table--order-details
  tfoot:last-of-type
  tr:nth-last-child(2)
  td {
  color: #2563eb !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
}

/* دکمه مشاهده سفارش (فوتر اول) */
table.woocommerce-table--order-details tfoot:first-of-type {
  display: block !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding: 0 6px !important;
}

table.woocommerce-table--order-details tfoot:first-of-type tr {
  display: flex !important;
  justify-content: flex-end !important;
  border: none !important;
}

table.woocommerce-table--order-details tfoot:first-of-type th {
  display: none !important;
}

table.woocommerce-table--order-details tfoot:first-of-type td {
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.order-actions-button {
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 28px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.order-actions-button:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* ۴. باکس مشخصات آدرس‌ها */
.wd-el-tp-customer-details {
  text-align: right !important;
}

.ty-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.ty-card h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-align: right !important;
}

.ty-card .ty-svg-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  fill: #2563eb !important;
}

.ty-address {
  background: #f8fafc !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  text-align: right !important;
}

.ty-address div {
  font-size: 13px !important;
  color: #334155 !important;
  line-height: 2 !important;
  text-align: right !important;
}

/* ۵. پیام تکمیلی پرداخت */
.wd-el-tp-payment-instructions {
  background: #ffffff !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  text-align: center !important;
  margin-top: 10px !important;
}

.wd-el-tp-payment-instructions p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

/* ==========================================================
   بهینه‌سازی اختصاصی موبایل (زیر ۷۶۸ پیکسل)
   ========================================================== */
@media (max-width: 768px) {
  .elementor-element-59b6b57 {
    padding: 12px 8px 60px !important;
  }

  ul.woocommerce-order-overview.order_details {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 14px 16px !important;
    gap: 14px !important;
  }

  ul.woocommerce-order-overview li {
    font-size: 11.5px !important;
  }

  ul.woocommerce-order-overview li strong {
    font-size: 12.5px !important;
  }

  .woocommerce-order-details,
  .ty-card {
    padding: 16px 14px !important;
  }

  table.woocommerce-table--order-details tbody td.product-name a {
    font-size: 12.5px !important;
  }

  table.woocommerce-table--order-details tbody td.product-total {
    font-size: 12.5px !important;
  }

  table.woocommerce-table--order-details tfoot:last-of-type th,
  table.woocommerce-table--order-details tfoot:last-of-type td {
    font-size: 12px !important;
  }

  .order-actions-button {
    width: 100% !important;
  }
}
/*  */
/* ==========================================================
   حل قطعی نمایش کامل قیمت محصول و عدم بریده شدن
   ========================================================== */

/* ۱. کنترل سطر محصول */
table.woocommerce-table--order-details tbody tr {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  overflow: visible !important;
}

/* ۲. محدود کردن عرض ستون نام تا قیمت له نشود */
table.woocommerce-table--order-details tbody td.product-name {
  flex: 1 1 55% !important;
  max-width: calc(100% - 160px) !important;
  min-width: 0 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  padding: 0 !important;
}

/* ۳. ستون تعداد (1 ×) */
table.woocommerce-table--order-details tbody td:nth-child(2) {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 35px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* ۴. تضمین فضای کافی و کامل برای قیمت */
table.woocommerce-table--order-details tbody td.product-total {
  flex: 0 0 auto !important;
  min-width: 115px !important;
  max-width: 40% !important;
  text-align: left !important;
  direction: ltr !important; /* چپ‌چین شدن صحیح ارقام و کلمه تومان */
  white-space: nowrap !important;
  overflow: visible !important;
}

/* ۵. نمایش تمام اجزای قیمت داخل span */
table.woocommerce-table--order-details tbody td.product-total * {
  display: inline !important;
  white-space: nowrap !important;
  overflow: visible !important;
  direction: rtl !important;
}

table.woocommerce-table--order-details
  tbody
  td.product-total
  .woocommerce-Price-amount {
  display: inline-block !important;
  direction: rtl !important;
}

/* ۱. حذف قطعی و ریشه‌ای تیک سبز/مشکی کنار دکمه */
.wd-buttons .wd-check-icon,
.wd-buttons .wd-wishlist-icon .wd-check-icon,
span.wd-check-icon {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ۲. وقتی محصول اضافه شد: مخفی کردن آیکون قبلی */
.wd-buttons .wd-wishlist-icon a.added:before,
.wd-buttons .wd-wishlist-icon a.added .wd-action-icon:before,
.wd-buttons .wd-wishlist-icon.added-to-wishlist a:before,
.wd-buttons .wd-wishlist-icon.added-to-wishlist .wd-action-icon:before {
  display: none !important;
}

/* ۳. انداختن قلب توپر و کاملاً قرمز با SVG اختصاصی روی دکمه در حالت اضافه شده */
.wd-buttons .wd-wishlist-icon a.added .wd-action-icon,
.wd-buttons .wd-wishlist-icon.added-to-wishlist .wd-action-icon {
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e53935'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") !important;
}
/* ریست کامل دکمه بستن */
#wsbp-panel .wsbp-panel-head .wsbp-panel-close {
  all: unset; /* حذف کامل هر استایل قالب و مرورگر */

  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  z-index: 999999 !important;

  width: 32px !important;
  height: 32px !important;
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  cursor: pointer !important;

  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* اندازه و رنگ ضربدر SVG */
#wsbp-panel .wsbp-panel-head .wsbp-panel-close svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* افکت هاور ظریف */
#wsbp-panel .wsbp-panel-head .wsbp-panel-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

/* فقط در حالت موبایل و تبلت */
@media (max-width: 768px) {
  /* ۱. پنل بیاید بالاترین لایه ممکن */
  #wsbp-panel {
    z-index: 99999999 !important;
  }

  /* ۲. وقتی پنل باز است (aria-hidden="false")، دکمه شناور پایینی مخفی شود */
  #wsbp-panel[aria-hidden="false"] ~ #wsbp-launcher-wrap,
  #wsbp-launcher[aria-expanded="true"],
  #wsbp-root.wsbp-open #wsbp-launcher-wrap {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.7) !important;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease !important;
  }
  .scrollToTop,
  a.scrollToTop,
  .wd-scroll-to-top {
    bottom: 67px !important;
  }
}

@media (max-width: 1024px) {
  /* ۱. یکپارچه‌سازی پس‌زمینه و حذف سایه‌ها/خطوط هدر */
  .whb-header,
  .whb-main-header,
  .whb-general-header,
  .whb-header-bottom {
    background-color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* ۲. حذف حاشیه‌ها و تنظیم فاصله‌های استاندارد ردیف‌ها */
  .whb-flex-row.whb-general-header-inner,
  .whb-flex-row.whb-header-bottom-inner {
    background-color: transparent !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .whb-flex-row.whb-general-header-inner {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .whb-flex-row.whb-header-bottom-inner {
    padding-top: 2px !important;
    padding-bottom: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* ۳. باکس بیرونی جستجو */
  .whb-header-bottom-inner .wd-search-form.wd-header-search-form-mobile {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ۴. استایل کپسولی فرم جستجو و تراز داخلی */
  .whb-header-bottom-inner .searchform {
    background-color: #f3f5f8 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
    padding: 0 14px !important;
    overflow: hidden !important;
  }

  /* ۵. تنظیم و تراز دقیق آیکون ذره‌بین */
  .whb-header-bottom-inner .searchform .searchsubmit {
    order: -1 !important; /* قرارگیری آیکون در سمت راست/شروع در RTL */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #636b78 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .whb-header-bottom-inner .searchform .searchsubmit::before {
    content: "\f101" !important;
    font-family: "woodmart-font" !important;
    font-size: 16px !important;
    color: #636b78 !important;
    line-height: 1 !important;
  }

  .whb-header-bottom-inner .searchform .searchsubmit span {
    display: none !important;
  }

  /* ۶. تنظیم فیلد متن جستجو */
  .whb-header-bottom-inner .searchform input[type="text"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
    font-size: 13.5px !important;
    color: #333333 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    text-align: right !important;
    flex-grow: 1 !important;
    line-height: normal !important;
  }

  .whb-header-bottom-inner .searchform input[type="text"]::placeholder {
    color: #9aa3af !important;
    font-size: 13px !important;
  }
}
/*  */
.wd-swatches-grid.wd-swatches-product.wd-swatches-attr.wd-bg-style-3.wd-text-style-3.wd-dis-style-3.wd-size-default.wd-shape-round {
  position: absolute;
  top: 50%;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px 0 0 8px;
}
.cat-text-style.wd-set-m {
  margin-bottom: 0 !important;
}
.single-productpage-custom
  .wd-swatches-grid.wd-swatches-product.wd-swatches-attr.wd-bg-style-3.wd-text-style-3.wd-dis-style-3.wd-size-default.wd-shape-round {
  top: 45%;
}
/*  */
/* کاهش فاصله بین عنوان و متن زیرین */
.cat-text-style .title-wrapper .liner-continer {
  margin-bottom: 2px !important;
}

.cat-text-style .title-after_title p {
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* ساختار فلکس برای قرارگیری خط آبی در کنار عنوان */
.cat-text-style .woodmart-title-container {
  display: inline-flex !important;
  align-items: center;
  gap: 8px; /* فاصله خط با متن */
  margin: 0 !important;
}

/* خط آبی کوچک در سمت راست */
.cat-text-style .woodmart-title-container::before {
  content: "";
  display: inline-block;
  width: 18px; /* طول خط */
  height: 4px; /* ضخامت خط */
  background-color: #0073e6; /* رنگ آبی */
  border-radius: 4px; /* گردی لبه‌ها */
  flex-shrink: 0;
}
/*  */
.custom-btn-color
  button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
  background: #007eff;
}
