.elementor-75 .elementor-element.elementor-element-46129263{--display:flex;}/* Start custom CSS *//* =================== WooCommerce My Orders – Final CSS =================== */

.woocommerce-account {
  --wc-bg: #ffffff;
  --wc-muted: #f9fafb;
  --wc-border: #e5e7eb;
  --wc-text: #1f2937;
  --wc-subtext: #6b7280;
  --wc-primary: #3b82f6;
  --wc-success: #10b981;
  --wc-warning: #f59e0b;
  --wc-danger: #ef4444;
  --wc-radius: 12px;
  --wc-shadow: 0 4px 12px rgba(0,0,0,.04);
  box-sizing: border-box;
}

/* ---------- Table layout ---------- */
.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  overflow: hidden;
  background: var(--wc-bg);
  box-shadow: var(--wc-shadow);
}

.woocommerce-account .woocommerce-orders-table thead th {
  background: var(--wc-muted);
  color: var(--wc-subtext);
  font-weight: 600;
  padding: 12px 14px;
  text-align: start;
  font-size: 13px;
}

.woocommerce-account .woocommerce-orders-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--wc-border);
  color: var(--wc-text);
  font-size: 14px;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table tbody tr:hover {
  background: #fbfdff;
}

/* order number link */
.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: var(--wc-primary);
  font-weight: 600;
  text-decoration: none;
}
.woocommerce-account .woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

/* ---------- Action buttons ---------- */
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-right: 6px;
  cursor: pointer;
  transition: background .18s ease, transform .06s ease;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .view {
  background: var(--wc-primary);
  color: #fff;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions .view:hover { filter: brightness(.95); transform: translateY(-1px); }

.woocommerce-account .woocommerce-orders-table__cell-order-actions .pay {
  background: var(--wc-success);
  color: #fff;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions .pay:hover { filter: brightness(.95); transform: translateY(-1px); }

.woocommerce-account .woocommerce-orders-table__cell-order-actions .cancel {
  background: var(--wc-danger);
  color: #fff;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions .cancel:hover { filter: brightness(.95); transform: translateY(-1px); }

/* ========== Status badge styling — targets the actual TD > P structure ========== */

/* هدف‌گیری دقیق: هر المان داخل td وضعیت (مثلاً <p>) */
.woocommerce-account td.woocommerce-orders-table__cell-order-status p,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > * {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 14px !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 18px;
  line-height: 1;
  background: #ecfdf5 !important;   /* پس‌زمینه پیش‌فرض ملایم */
  color: #065f46 !important;        /* متن پیش‌فرض */
  min-width: 110px;
  box-shadow: none;
  white-space: nowrap;
  box-sizing: border-box;
}

/* دایره آیکن سمت چپ (شبیه اسکرین‌شات) */
.woocommerce-account td.woocommerce-orders-table__cell-order-status p::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wc-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  /* حلقه ملایم بیرونی برای جلوه‌ی شناور */
  box-shadow: 0 0 0 8px rgba(59,130,246,0.06);
  flex: 0 0 34px;
}

/* در حالت RTL ترتیب نمایش درست بماند */
html[dir="rtl"] .woocommerce-account td.woocommerce-orders-table__cell-order-status p,
html[dir="rtl"] .woocommerce-account td.woocommerce-orders-table__cell-order-status > * {
  direction: rtl;
}

/* اگر می‌خواهی برای وضعیت‌های خاص رنگ متفاوت داشته باشی
   و HTML سرور این کلاس‌ها را اضافه می‌کند (مثلاً status-cancelled)،
   اینجا نمونه است (در صورت نیاز آن‌ها را فعال کن) */
.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-cancelled,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-cancelled {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-cancelled::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-cancelled::before {
  background: #ef4444;
  content: "✖";
}

/* نمونه برای completed / processing (در صورت وجود کلاس) */
.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-completed,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-completed {
  background: #e0f2fe !important;
  color: #1e3a8a !important;
}
.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-completed::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-completed::before {
  background: #0ea5e9;
  content: "✔";
}

.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-processing,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-processing {
  background: #d1fae5 !important;
  color: #065f46 !important;
}
.woocommerce-account td.woocommerce-orders-table__cell-order-status p.status-processing::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-status > *.status-processing::before {
  background: #10b981;
  content: "✔";
}

/* ========== Mobile responsive: convert rows to cards ========== */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-orders-table { border: none; box-shadow: none; background: transparent; }
  .woocommerce-account .woocommerce-orders-table thead { display: none; }
  .woocommerce-account .woocommerce-orders-table tbody { display: grid; gap: 12px; }
  .woocommerce-account .woocommerce-orders-table tbody tr {
    display: block;
    background: var(--wc-bg);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 12px;
    box-shadow: var(--wc-shadow);
  }
  .woocommerce-account .woocommerce-orders-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border: none;
    font-size: 13px;
  }
  .woocommerce-account .woocommerce-orders-table tbody td::before { content: attr(data-title); font-weight: 600; color: var(--wc-subtext); margin-right: 8px; }

  /* در موبایل، دکمه‌ها پهن‌تر شوند */
  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button { flex: 1 1 48%; text-align: center; margin: 6px 0; }
  .woocommer/* End custom CSS */