/* =========================================================
   Luxury Blue WooCommerce – Clean Stylesheet
   Version: 0.3.6
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
  --lb-blue: #2563eb;
  --lb-navy: #102c50;
  --lb-hover: #2563eb;
  --lb-border: #dce5ef;
  --lb-bg: #f5f8fc;
  --lb-text: #173554;
  --lb-muted: #64748b;
  --lb-radius: 16px;
  --lb-radius-sm: 10px;
  --lb-shadow: 0 8px 28px rgba(16, 44, 80, 0.055);
  --lb-shadow-strong: 0 10px 35px rgba(16, 44, 80, 0.07);
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  color: var(--lb-text);
}

/* Hide theme sidebars on cart / checkout / thank-you */
body.woocommerce-cart .widget-area,
body.woocommerce-checkout .widget-area,
body.woocommerce-order-received .widget-area {
  display: none !important;
}

/* ---------------------------------------------------------
   3. Cards (shared look)
   --------------------------------------------------------- */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.lbwc-confirm {
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  padding: clamp(16px, 2.2vw, 28px);
  box-shadow: var(--lb-shadow);
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input[type="submit"],
.lbwc-print {
  background: var(--lb-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--lb-radius-sm) !important;
  padding: 13px 22px !important;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input[type="submit"]:hover,
.lbwc-print:hover {
  background: var(--lb-blue) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------
   5. Prices
   --------------------------------------------------------- */
.woocommerce-Price-amount,
.woocommerce-cart .cart-collaterals .amount,
.woocommerce-checkout #order_review .amount {
  color: var(--lb-blue) !important;
  font-weight: 700;
}

/* ---------------------------------------------------------
   6. Tables
   --------------------------------------------------------- */
.woocommerce table.shop_table {
  border: 1px solid var(--lb-border);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.woocommerce table.shop_table th {
  background: var(--lb-bg);
  font-weight: 600;
  color: var(--lb-text);
  padding: 14px 12px;
}

.woocommerce table.shop_table td {
  padding: 14px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f6;
}

.woocommerce table.shop_table tr:last-child td {
  border-bottom: none;
}



/* =========================================================
   7) CART PAGE – Layout (Desktop)
========================================================= */
@media (min-width: 1025px) {

  body.woocommerce-cart .woocommerce {
    direction: rtl !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* دو ستون: جدول محصولات (راست) + جمع کل (چپ) */
  body.woocommerce-cart .cart-content-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    grid-template-areas: "cart totals";
    gap: 25px !important;
    align-items: start !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .woocommerce-cart-form {
    grid-area: cart;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals,
  body.woocommerce-cart .cart-collaterals {
    grid-area: totals;
    float: none !important;
    position: static !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: none !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
  }

  /* حذف کادر اضافه‌ی قالب دور باکس جمع کل */
  body.woocommerce-cart .cart-content-wrapper > .cart_totals .cart-totals-inner {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
  }

  body.woocommerce-cart table.shop_table {
    width: 100% !important;
    margin: 0 0 18px !important;
    direction: rtl !important;
  }

  /* هدر و سلول‌های جدول محصولات */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 20px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.product-name,
  body.woocommerce-cart .woocommerce-cart-form td.product-price,
  body.woocommerce-cart .woocommerce-cart-form td.product-subtotal,
  body.woocommerce-cart .woocommerce-cart-form td.product-quantity {
    text-align: center !important;
    vertical-align: middle !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .woocommerce-Price-amount {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
  }

  /* ستون حذف محصول */
  body.woocommerce-cart table.shop_table th.product-remove,
  body.woocommerce-cart table.shop_table td.product-remove {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 2px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart table.shop_table td.product-remove a.remove {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
}


/* ---------------------------------------------------------
   8. CART – Internal elements
   --------------------------------------------------------- */
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  margin: 0 0 18px !important;
  width: 100% !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #f6f9fd !important;
  padding: 5px !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-name {
  font-weight: 600 !important;
  min-width: 140px;
}

body.woocommerce-cart .woocommerce-cart-form .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
}

body.woocommerce-cart form.woocommerce-cart-form
tr.wd-cart-action-row > td.actions > .cart-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  padding-top: 16px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
body.woocommerce-cart tr.wd-cart-action-row #coupon_code {
  border-radius: 10px !important;
}
body.woocommerce-cart tr.wd-cart-action-row
.coupon.wd-coupon-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
}

body.woocommerce-cart tr.wd-cart-action-row
#coupon_code {
  width: 180px !important;
  min-width: 130px !important;
  height: 44px !important;
}

body.woocommerce-cart tr.wd-cart-action-row
button[name="apply_coupon"],
body.woocommerce-cart tr.wd-cart-action-row
button[name="update_cart"] {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

body.woocommerce-cart tr.wd-cart-action-row
.cart-actions br {
  display: none !important;
}

/* Totals card internals */
body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #e5edf6 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--lb-navy) !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals table {
  width: 100% !important;
  border: 0 !important;
  margin: 0 !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals th,
body.woocommerce-cart .cart-collaterals .cart_totals td {
  padding: 12px 8px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #edf1f6 !important;
  background: transparent !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals th {
  font-weight: 600 !important;
  color: #52677e !important;
}

body.woocommerce-cart .cart-collaterals .shipping-calculator-form,
body.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination {
  margin-top: 12px !important;
  padding: 14px !important;
  background: var(--lb-bg) !important;
  border: 1px solid #e2eaf3 !important;
  border-radius: 12px !important;
  line-height: 1.9 !important;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
  padding: 18px 0 0 !important;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}

/* ---------------------------------------------------------
   9. CHECKOUT PAGE
   --------------------------------------------------------- */
body.woocommerce-checkout .wd-content-area.site-content,
body.woocommerce-checkout .wd-content-layout.content-layout-wrapper,
body.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
  margin-inline: auto !important;
  max-width: 1200px !important;
}

body.woocommerce-checkout #customer_details {
  grid-column: 1 !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout #order_review_heading {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 0 12px !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout #order_review {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout #payment {
  background: var(--lb-bg);
  border-radius: 12px;
  padding: 8px;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: 10px;
  margin: 8px;
  padding: 12px 16px;
}

@media (max-width: 900px) {
  body.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* ---------------------------------------------------------
   10. NOTICES
   --------------------------------------------------------- */
.woocommerce .woocommerce-info {
  display: none !important;
}

.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
  background: linear-gradient(135deg, #c6283d 0%, #a91632 100%) !important;
  border: 1px solid #e35b6d !important;
  border-inline-start: 5px solid #ff9aaa !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 16px 48px 16px 18px !important;
  margin: 0 0 22px !important;
  box-shadow: 0 8px 22px rgba(169, 22, 50, 0.18) !important;
}

.woocommerce .woocommerce-error li,
.woocommerce .woocommerce-error a,
.woocommerce-page .woocommerce-error li,
.woocommerce-page .woocommerce-error a {
  color: #fff !important;
}

.woocommerce .woocommerce-error a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.woocommerce .woocommerce-error::before {
  color: #fff !important;
  inset-inline-start: 18px !important;
  inset-inline-end: auto !important;
}

/* ---------------------------------------------------------
   11. WARRANTY
   --------------------------------------------------------- */
.lbwc-warranty,
.lbwc-product-warranty {
  display: block;
  margin-top: 5px;
  color: var(--lb-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   12. ORDER RECEIVED / CONFIRMATION / INVOICE
   --------------------------------------------------------- */
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-thankyou-order-details,
body.woocommerce-order-received .order_details,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
  display: none !important;
}

.lbwc-confirm {
  direction: rtl;
  text-align: right;
  margin: 32px auto;
  max-width: 1050px;
  width: min(100% - 32px, 1050px);
}

.lbwc-confirm h2,
.lbwc-confirm h3 {
  color: var(--lb-navy);
}

.lbwc-confirm .lbwc-table-wrap {
  overflow-x: auto;
}

.lbwc-confirm .lbwc-table td:last-child,
.lbwc-confirm .lbwc-totals strong {
  color: #1764c0;
}

.lbwc-invoice {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--lb-border);
  direction: rtl;
  text-align: right;
}

.lbwc-print {
  display: inline-block;
  margin-top: 12px;
}

/* Center confirmation inside WoodMart wrappers */
body.woocommerce-order-received .wd-content-layout,
body.woocommerce-order-received .wd-content-area,
body.woocommerce-order-received .site-content {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

body.woocommerce-order-received .lbwc-confirm {
  float: none !important;
  clear: both !important;
  position: relative !important;
  margin: 32px auto !important;
  width: min(100% - 32px, 1050px) !important;
  max-width: 1050px !important;
  box-sizing: border-box !important;
}

/* ---------------------------------------------------------
   13. Small screens polish
   --------------------------------------------------------- */
@media (max-width: 600px) {
  body.woocommerce-cart .woocommerce-cart-form td,
  body.woocommerce-cart .woocommerce-cart-form th {
    padding: 10px 6px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    width: 54px !important;
    height: 54px !important;
  }

  /* body.woocommerce-cart .woocommerce-cart-form .actions {
    align-items: stretch !important;
  } */

  /* body.woocommerce-cart .woocommerce-cart-form .coupon {
    width: 100% !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text {
    flex: 1 !important;
    width: auto !important;
  }

  body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    width: 100% !important;
  } */

  .lbwc-confirm {
    padding: 16px;
    width: calc(100% - 20px) !important;
    margin: 16px auto !important;
  }
}

/* ---------------------------------------------------------
   14. Print
   --------------------------------------------------------- */
@media print {
  body * {
    visibility: hidden !important;
  }

  .lbwc-confirm,
  .lbwc-confirm *,
  .lbwc-invoice,
  .lbwc-invoice * {
    visibility: visible !important;
  }

  .lbwc-confirm,
  .lbwc-invoice {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .lbwc-print {
    display: none !important;
  }
}


/* =========================================
   Luxury Blue - Checkout Layout
========================================= */

/* ساختار کلی دو ستون */
body.woocommerce-checkout .customer-details,
body.woocommerce-checkout .checkout-order-review {
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    min-width: 0;
}

/* فرم اطلاعات مشتری */
body.woocommerce-checkout .customer-details {
    width: 100% !important;
    padding: 24px !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

/* خلاصه سفارش */
body.woocommerce-checkout .checkout-order-review {
    width: 100% !important;
    padding: 24px !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

/* عنوان بخش‌ها */
body.woocommerce-checkout .customer-details h3,
body.woocommerce-checkout .checkout-order-review h3 {
    text-align: right !important;
    margin-bottom: 20px !important;
}

/* فیلدهای فرم */
body.woocommerce-checkout .customer-details input,
body.woocommerce-checkout .customer-details select,
body.woocommerce-checkout .customer-details textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
}

/* برچسب فیلدها */
body.woocommerce-checkout .customer-details label {
    display: block;
    text-align: right !important;
    margin-bottom: 7px !important;
}

/* جدول خلاصه سفارش */
body.woocommerce-checkout .checkout-order-review table {
    width: 100% !important;
    direction: rtl !important;
    text-align: right !important;
    border-collapse: collapse;
}

/* سلول‌های جدول */
body.woocommerce-checkout .checkout-order-review th,
body.woocommerce-checkout .checkout-order-review td {
    text-align: right !important;
    padding: 12px 8px !important;
}

/* نمایش موبایل */
@media (max-width: 767px) {
    body.woocommerce-checkout .customer-details,
    body.woocommerce-checkout .checkout-order-review {
        padding: 16px !important;
        border-radius: 12px;
    }
}
/* افزایش عرض ستون‌های تسویه حساب */
body.woocommerce-checkout .customer-details,
body.woocommerce-checkout .checkout-order-review {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* افزایش فضای اختصاص‌یافته به دو ستون */
body.woocommerce-checkout .woocommerce-checkout {
    width: 100% !important;
    max-width: 100% !important;
}

/* جلوگیری از محدود شدن عرض محتوای داخلی */
body.woocommerce-checkout .customer-details *,
body.woocommerce-checkout .checkout-order-review * {
    box-sizing: border-box;
}
/* افزایش عرض ستون سفارش‌های شما */
body.woocommerce-checkout .checkout-order-review {
    width: 110% !important;
    max-width: none !important;
    flex: 0 0 110% !important;
}
/* وسط‌چین کردن کانتینر اصلی تسویه‌حساب */
body.woocommerce-checkout .wd-content-layout.content-layout-wrapper.container.wd-grid-g.wd-sidebar-hidden-md-sm.wd-sidebar-hidden-sm.wd-builder-off {
    margin-left: auto !important;
    margin-right: 15% !important;
    float: none !important;
    width: 100% !important;
    max-width: 1600px !important;
    box-sizing: border-box !important;
}


/* Luxury Blue - Checkout Order Table Alignment */

/* راست‌چین کردن محتوای ستون نام محصول */
body.woocommerce-checkout
.checkout-order-review
table.woocommerce-checkout-review-order-table
td.product-name {
    text-align: right !important;
    padding-right: 25px !important;
    padding-left: 10px !important;
}

/* راست‌چین کردن مبلغ محصول */
body.woocommerce-checkout
.checkout-order-review
table.woocommerce-checkout-review-order-table
td.product-total {
    text-align: right !important;
    padding-right: 25px !important;
    padding-left: 65px !important;
}

/* تنظیم موقعیت قیمت */
body.woocommerce-checkout
.checkout-order-review
table.woocommerce-checkout-review-order-table
td.product-total .woocommerce-Price-amount {
    display: inline-block !important;
    direction: rtl !important;
    text-align: right !important;
    margin: 0 !important;
}

/* راست‌چین کردن سرستون‌ها */
body.woocommerce-checkout
.checkout-order-review
table.woocommerce-checkout-review-order-table
thead th.product-name,
body.woocommerce-checkout
.checkout-order-review
table.woocommerce-checkout-review-order-table
thead th.product-total {
    text-align: right !important;
    padding-right: 25px !important;
}

/* Luxury Blue - Checkout quantity badge */

body.woocommerce-checkout
.checkout-order-review
.woocommerce-checkout-review-order-table
td.product-name {
    direction: rtl !important;
    text-align: right !important;
}

body.woocommerce-checkout
.checkout-order-review
.woocommerce-checkout-review-order-table
td.product-name .lbwc-checkout-quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 27px !important;
    padding: 0 8px !important;
    margin-left: 8px !important;
    border: 1px solid #d7e5f5 !important;
    border-radius: 7px !important;
    background: #edf5ff !important;
    color: #174b83 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    direction: ltr !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Note below checkout products */

body.woocommerce-checkout
.lbwc-checkout-order-note td {
    padding: 12px 15px !important;
    color: #666 !important;
    font-size: 12px !important;
    line-height: 2 !important;
    text-align: right !important;
    background: #f8faff !important;
    border-radius: 8px !important;
}
body.woocommerce-checkout .lbwc-checkout-privacy-note {
    direction: rtl !important;
    text-align: right !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    line-height: 2 !important;
}

/* عنوان ارسال به آدرس متفاوت */
body.woocommerce-checkout h3#ship-to-different-address {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 185px 12px 0 !important;
    padding: 8px 12px !important;
    direction: rtl !important;
    text-align: right !important;
}

/* چیدمان متن و چک‌باکس */
body.woocommerce-checkout h3#ship-to-different-address label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* حذف فاصله پیش‌فرض چک‌باکس */
body.woocommerce-checkout #ship-to-different-address-checkbox {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    position: static !important;
    float: none !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 15px !important;
}

/* متن عنوان */
body.woocommerce-checkout h3#ship-to-different-address label span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* افکت هاور گزینه‌های شهر و استان */
body.woocommerce-checkout .select2-container--default
.select2-results__option {
    transition: background-color 0.25s ease,
                color 0.25s ease,
                padding-right 0.25s ease !important;
}

/* وقتی ماوس روی نام شهر یا استان قرار می‌گیرد */
body.woocommerce-checkout .select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background-color: #1769aa !important;
    color: #ffffff !important;
    padding-right: 14px !important;
}

/* گزینه انتخاب‌شده */
body.woocommerce-checkout .select2-container--default
.select2-results__option[aria-selected="true"] {
    background-color: #e8f2fc !important;
    color: #174b83 !important;
}
body.woocommerce-checkout .lbwc-confirm {
    transform: translateX(100px) !important;
}
/* مخفی کردن بخش روش‌های حمل‌ونقل در صفحه سبد خرید */
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals {
    display: none !important;
}
.woocommerce-message {
    direction: rtl !important;
    text-align: right !important;
}

.woocommerce-message::before {
    right: 1.5em !important;
    left: auto !important;
}

.woocommerce-message a {
    float: left !important;
}

/* =========================================================
   Luxury Blue - Responsive Fix
   Tablet and Mobile
   ========================================================= */

/* جلوگیری از بیرون‌زدگی افقی */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-received {
    overflow-x: hidden !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-order-received .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* =========================
   Tablet
========================= */
@media (min-width: 601px) and (max-width: 1024px) {

    /* سبد خرید */
    body.woocommerce-cart .woocommerce {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        position: static !important;
        margin: 0 0 20px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px !important;
    }

    /* تسویه حساب */
    body.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        gap: 18px !important;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout .customer-details,
    body.woocommerce-checkout .checkout-order-review {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
        position: static !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-checkout h3#ship-to-different-address {
        margin: 0 0 12px !important;
    }

    body.woocommerce-order-received .lbwc-confirm {
        transform: none !important;
        width: calc(100% - 32px) !important;
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 600px) {

    /* تنظیم عرض کلی */
    body.woocommerce-cart .woocommerce,
    body.woocommerce-checkout .woocommerce,
    body.woocommerce-order-received .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    /* سبد خرید */
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        position: static !important;
        margin: 0 0 16px !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        margin: 0 0 16px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table th,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
        padding: 9px 5px !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
        width: 45px !important;
        height: 45px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form .product-name {
        min-width: 90px !important;
    }

    /* نوار کد تخفیف و دکمه‌ها */
    body.woocommerce-cart form.woocommerce-cart-form
    tr.wd-cart-action-row > td.actions > .cart-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 10px 0 !important;
        gap: 10px !important;
    }

    body.woocommerce-cart tr.wd-cart-action-row
    .coupon.wd-coupon-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    body.woocommerce-cart tr.wd-cart-action-row #coupon_code {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart tr.wd-cart-action-row
    button[name="apply_coupon"],
    body.woocommerce-cart tr.wd-cart-action-row
    button[name="update_cart"] {
        width: 100% !important;
        margin: 0 !important;
    }

    /* تسویه حساب */
    body.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 14px !important;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout .customer-details,
    body.woocommerce-checkout .checkout-order-review {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
        float: none !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-checkout .checkout-order-review {
        width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: auto !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
        padding: 9px 5px !important;
        font-size: 12px !important;
    }

    body.woocommerce-checkout
    .woocommerce-checkout-review-order-table td.product-total {
        padding-left: 5px !important;
        padding-right: 8px !important;
    }

    body.woocommerce-checkout h3#ship-to-different-address {
        margin: 0 0 12px !important;
        padding: 8px 0 !important;
        white-space: normal !important;
    }

    body.woocommerce-checkout h3#ship-to-different-address label {
        white-space: normal !important;
        flex-wrap: wrap !important;
    }

    /* فیلدهای فرم */
    body.woocommerce-checkout .form-row,
    body.woocommerce-checkout .form-row input,
    body.woocommerce-checkout .form-row select,
    body.woocommerce-checkout .form-row textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* کارت تأیید سفارش */
    body.woocommerce-order-received .lbwc-confirm {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin: 16px auto !important;
        padding: 14px !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-received .lbwc-confirm table {
        min-width: 500px;
    }

    body.woocommerce-order-received .lbwc-confirm .lbwc-table-wrap {
        overflow-x: auto !important;
    }

    /* پیام‌های ووکامرس */
    .woocommerce .woocommerce-error,
    .woocommerce .woocommerce-message {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    /* دکمه‌ها */
    .woocommerce button.button,
    .woocommerce a.button,
    .woocommerce input[type="submit"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
}
/* Luxury Blue - Gateway Fee Description */

.woocommerce-checkout #payment
.lbwc-gateway-fee {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    direction: rtl !important;
}

.woocommerce-checkout #payment
.lbwc-gateway-fee-label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    text-align: right !important;
    color: #173554 !important;
    font-weight: 600 !important;
}

.woocommerce-checkout #payment
.lbwc-gateway-fee-amount {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    color: #2563eb !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    direction: rtl !important;
}

/* =========================================================================
   بخش B  —  باکس «جمع کل سبد خرید»
   این بخش رو **آخر فایل CSS** بذار (بیرون از هر @media) تا روی دسکتاپ،
   تبلت و موبایل اعمال بشه و از قوانین بخش ۸ و ریسپانسیو قوی‌تر باشه.
========================================================================= */

/* خود باکس: border + پس‌زمینه */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-content-wrapper > .cart_totals {
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1fc 100%) !important;
  border: 2px solid #c9d9f0 !important;
  border-radius: 16px !important;
  padding: 22px 18px !important;
  box-shadow: 0 8px 28px rgba(16, 44, 80, 0.06) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* عنوان (سلکتور هم‌وزن بخش ۸ تا رنگ خط زیرش یکی بشه) */
body.woocommerce-cart .cart-collaterals .cart_totals h2,
body.woocommerce-cart .cart-content-wrapper > .cart_totals h2 {
  text-align: center !important;
  margin: 0 0 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #c9d9f0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--lb-navy) !important;
}

/* جدول داخل باکس */
body.woocommerce-cart .cart_totals table.shop_table {
  background: transparent !important;
  border: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* هر ردیف: عنوان بالا، مبلغ پایین، وسط‌چین */
body.woocommerce-cart .cart_totals table.shop_table tr {
  display: block !important;
  text-align: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #c9d9f0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr:last-child {
  border-bottom: 0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  padding: 4px 0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  color: #52677e !important;
  font-weight: 600 !important;
}

/* مخفی بودن ردیف حمل‌ونقل (باید بعد از قانون tr بالا باشه) */
body.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals {
  display: none !important;
}

/* مبلغ‌ها: وسط‌چین. ترتیب «۰ تومان» با فیلتر PHP تنظیم می‌شه */
body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount {
  display: inline-block !important;
  width: auto !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount bdi {
  direction: rtl !important;
  unicode-bidi: isolate !important;
}

/* مجموع نهایی کمی بزرگ‌تر */
body.woocommerce-cart .cart_totals tr.order-total .woocommerce-Price-amount.amount {
  font-size: 1.25rem !important;
}

/* دکمه ادامه جهت تسویه حساب */
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding: 16px 0 0 !important;
  text-align: center !important;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}
/* =========================================================================
   بخش C — درست کردن ترتیب «0 تومان» داخل باکس جمع کل
   (مستقل از فیلتر PHP و ترتیب خروجی ووکامرس کار می‌کنه)
   این بخش رو آخر فایل CSS بذار، بعد از بخش B.
========================================================================= */
body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount bdi {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  direction: ltr !important;          /* عدد چپ، واحد پولی راست */
  unicode-bidi: isolate !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount
.woocommerce-Price-currencySymbol {
  order: 2 !important;                /* همیشه بعد از عدد */
  margin: 0 !important;
}


/* =========================================================================
   بخش D — باکس جدول محصولات (کارت سبد خرید) با ظاهر جذاب‌تر
   این بخش رو هم آخر فایل بذار.
========================================================================= */

/* خود کارت */
body.woocommerce-cart .woocommerce-cart-form {
  background: #fff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 14px 40px rgba(16, 44, 80, 0.08) !important;
}

/* جدول داخل کارت بدون کادر اضافه */
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* هدر جدول: گرادیانت سرمه‌ای */
body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 16px 14px !important;
  border: 0 !important;
}

/* ردیف‌ها */
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td {
  padding: 18px 14px !important;
  border-bottom: 1px solid #edf2f9 !important;
  background: #fff !important;
  transition: background 0.2s ease;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item:hover td {
  background: #f6f9ff !important;
}

/* تصویر محصول */
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 84px !important;
  height: 84px !important;
  padding: 8px !important;
  background: #f4f8ff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(16, 44, 80, 0.06) !important;
  object-fit: contain !important;
  transition: transform 0.2s ease;
}

body.woocommerce-cart .woocommerce-cart-form tr.cart_item:hover .product-thumbnail img {
  transform: scale(1.04);
}

/* نام محصول */
body.woocommerce-cart .woocommerce-cart-form td.product-name a {
  color: var(--lb-navy) !important;
  font-weight: 700 !important;
  line-height: 1.9 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.woocommerce-cart .woocommerce-cart-form td.product-name a:hover {
  color: var(--lb-blue) !important;
}

/* دکمه حذف: دایره‌ای، با هاور قرمز */
body.woocommerce-cart table.shop_table td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #fff0f2 !important;
  color: #d62839 !important;
  font-size: 15px !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

body.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
  background: #d62839 !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* فیلد تعداد */
body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
  border: 1px solid #cfdcf0 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  color: var(--lb-navy) !important;
  font-weight: 700 !important;
  text-align: center !important;
}

/* ردیف کد تخفیف و دکمه‌ها */
body.woocommerce-cart .woocommerce-cart-form tr.wd-cart-action-row td.actions {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4fd 100%) !important;
  border-top: 1px solid #dbe6f5 !important;
  border-bottom: 0 !important;
  padding: 18px 20px !important;
}

body.woocommerce-cart tr.wd-cart-action-row #coupon_code {
  border: 1px solid #cfdcf0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-cart tr.wd-cart-action-row #coupon_code:focus {
  border-color: var(--lb-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* دکمه بروزرسانی سبد: سفید با کادر سرمه‌ای (ثانویه) */
body.woocommerce-cart tr.wd-cart-action-row button[name="update_cart"] {
  background: #fff !important;
  color: var(--lb-navy) !important;
  border: 1.5px solid var(--lb-navy) !important;
  border-radius: 10px !important;
}

body.woocommerce-cart tr.wd-cart-action-row button[name="update_cart"]:hover:not(:disabled) {
  background: var(--lb-navy) !important;
  color: #fff !important;
}

body.woocommerce-cart tr.wd-cart-action-row button[name="update_cart"]:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}
body.woocommerce-cart table.shop_table td.product-remove a.remove {
  font-size: 0 !important;      /* متن × دوباره مخفی می‌شه */
}

body.woocommerce-cart table.shop_table td.product-remove a.remove::before {
  font-size: 14px !important;   /* اندازه آیکون اصلی */
  line-height: 1 !important;
  color: inherit !important;
  margin: 0 !important;
}
/* =========================================================================
   Luxury Blue - Checkout Redesign
   این کد رو آخر فایل CSS بذار (بیرون از هر @media).
========================================================================= */

/* ---------------------------------------------------------
   1) هر دو باکس: اطلاعات مشتری + سفارش شما
   --------------------------------------------------------- */
body.woocommerce-checkout .customer-details,
body.woocommerce-checkout .checkout-order-review {
  background:
    linear-gradient(90deg, #102c50 0%, #2563eb 100%) top / 100% 4px no-repeat,
    #fff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 40px rgba(16, 44, 80, 0.08) !important;
  padding: 30px 26px 26px !important;
  overflow: hidden;
}

/* عنوان‌ها */
body.woocommerce-checkout .customer-details h3,
body.woocommerce-checkout .checkout-order-review h3,
body.woocommerce-checkout #order_review_heading {
  color: var(--lb-navy) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin: 0 0 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #e3ecf8 !important;
}

/* ---------------------------------------------------------
   2) فرم اطلاعات مشتری
   --------------------------------------------------------- */
body.woocommerce-checkout .customer-details label {
  color: #3e5673 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.woocommerce-checkout .customer-details .form-row input.input-text,
body.woocommerce-checkout .customer-details .form-row select,
body.woocommerce-checkout .customer-details .form-row textarea {
  background: #f8fbff !important;
  border: 1px solid #cfdcf0 !important;
  border-radius: 12px !important;
  color: var(--lb-navy) !important;
  padding: 0 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.woocommerce-checkout .customer-details .form-row input.input-text {
  height: 46px !important;
}

body.woocommerce-checkout .customer-details .form-row textarea {
  padding: 12px 14px !important;
  min-height: 110px;
}

body.woocommerce-checkout .customer-details .form-row input.input-text:focus,
body.woocommerce-checkout .customer-details .form-row select:focus,
body.woocommerce-checkout .customer-details .form-row textarea:focus {
  background: #fff !important;
  border-color: var(--lb-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* استان / شهر (select2) */
body.woocommerce-checkout .customer-details .select2-container--default .select2-selection--single {
  height: 46px !important;
  background: #f8fbff !important;
  border: 1px solid #cfdcf0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
}

body.woocommerce-checkout .customer-details .select2-container--default
.select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

/* ---------------------------------------------------------
   3) جدول سفارش شما
   --------------------------------------------------------- */
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table {
  border: 1px solid #dbe6f5 !important;
  border-radius: 14px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 0 18px !important;
}

/* هدر جدول */
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table thead th {
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  border: 0 !important;
}

/* ردیف محصولات */
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tbody td {
  background: #fff !important;
  border-bottom: 1px solid #edf2f9 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  transition: background 0.2s ease;
}

body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tbody tr:hover td {
  background: #f6f9ff !important;
}

body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table td.product-name {
  color: var(--lb-navy) !important;
  font-weight: 700 !important;
  line-height: 2 !important;
}

/* ردیف‌های جمع (جمع جزء، تخفیف، ...) */
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot td {
  background: #f6f9ff !important;
  border-top: 1px solid #e3ecf8 !important;
  border-bottom: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot th {
  color: #52677e !important;
  font-weight: 600 !important;
}

/* ردیف مجموع نهایی: برجسته */
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  background: linear-gradient(135deg, #e6efff 0%, #d9e7fb 100%) !important;
  border-top: 2px solid #c3d6f2 !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  color: var(--lb-navy) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.woocommerce-checkout .checkout-order-review table.woocommerce-checkout-review-order-table tfoot tr.order-total .woocommerce-Price-amount {
  font-size: 1.2rem !important;
}

/* ترتیب «0 تومان» (عدد، بعد واحد پولی) */
body.woocommerce-checkout .checkout-order-review .woocommerce-Price-amount bdi {
  display: inline-flex !important;
  align-items: center !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .checkout-order-review .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  order: 2 !important;
}

/* ---------------------------------------------------------
   4) روش‌های پرداخت و دکمه ثبت سفارش
   --------------------------------------------------------- */
body.woocommerce-checkout #payment {
  background: #f4f8ff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 16px !important;
  padding: 10px !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  background: #fff !important;
  border: 1.5px solid #dbe6f5 !important;
  border-radius: 12px !important;
  margin: 8px !important;
  padding: 14px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-checkout #payment ul.payment_methods li:hover {
  border-color: #9db8e3 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--lb-blue) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12) !important;
}

body.woocommerce-checkout #payment div.payment_box {
  background: #f4f8ff !important;
  border-radius: 10px !important;
  color: #3e5673 !important;
}

body.woocommerce-checkout #payment #place_order {
  display: block !important;
  width: 100% !important;
  padding: 17px 22px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(16, 44, 80, 0.25) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

body.woocommerce-checkout #payment #place_order:hover {
  background: linear-gradient(135deg, #1d4c8f 0%, #2563eb 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32) !important;
}
/* =========================================================================
   Luxury Blue - v3
   کل این فایل رو آخر فایل CSS بذار (بیرون از هر @media).
========================================================================= */

/* =========================================================================
   بخش 1 — درست کردن جای عدد و واحد پولی (سبد خرید، تسویه‌حساب، همه جا)
   نتیجه: عدد سمت راست، «تومان» سمت چپ  →  خوانده می‌شه «0 تومان»
   این قوانین جایگزین ترتیب‌دهی‌های قبلی (بخش C و بخش 3 تسویه‌حساب) هستن
   و چون آخر فایل‌اند، روشون اولویت دارن. نیازی به حذف قوانین قبلی نیست.
========================================================================= */

/* سراسری */
.woocommerce-Price-amount bdi {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  gap: 3px !important;
  white-space: nowrap !important;
}

.woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  order: 2 !important;          /* واحد پولی همیشه بعد از عدد (سمت چپ) */
}

/* همون سلکتورهای قبلی با همون اولویت، تا ترتیب قبلی (ltr) رو خنثی کنن */
body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount bdi,
body.woocommerce-checkout .checkout-order-review .woocommerce-Price-amount bdi {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  gap: 3px !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol,
body.woocommerce-checkout .checkout-order-review .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  order: 2 !important;
}

/* اگه بعد از اعمال ترتیب برعکس دیده شد، فقط 2 رو به -1 تغییر بده
   (در هر سه قانون بالا که order: 2 دارن) */


/* =========================================================================
   بخش 2 — صفحه تکمیل سفارش (Order Received)
========================================================================= */
@media screen {

  /* کارت اصلی */
  body.woocommerce-order-received .lbwc-confirm {
    background:
      linear-gradient(90deg, #102c50 0%, #2563eb 55%, #22c55e 100%) top / 100% 5px no-repeat,
      #fff !important;
    border: 1px solid #dbe6f5 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 50px rgba(16, 44, 80, 0.10) !important;
    padding: clamp(22px, 3vw, 38px) !important;
    overflow: hidden;
  }

  /* عنوان‌ها */
  body.woocommerce-order-received .lbwc-confirm h2 {
    color: var(--lb-navy) !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    margin: 0 0 18px !important;
  }

  /* تیک سبز کنار عنوان اول (اگه روی عنوان اشتباهی افتاد، این قانون رو حذف کن) */
  body.woocommerce-order-received .lbwc-confirm h2:first-of-type::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    vertical-align: middle;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  }

  body.woocommerce-order-received .lbwc-confirm h3 {
    color: var(--lb-navy) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 26px 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e3ecf8 !important;
  }

  body.woocommerce-order-received .lbwc-confirm p {
    color: #3e5673;
    line-height: 2;
  }

  /* جدول‌ها (هم داخل کارت، هم داخل فاکتور) */
  body.woocommerce-order-received .lbwc-confirm table,
  body.woocommerce-order-received .lbwc-invoice table {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #dbe6f5 !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    margin: 0 0 18px !important;
  }

  body.woocommerce-order-received .lbwc-confirm thead th,
  body.woocommerce-order-received .lbwc-invoice thead th {
    background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 15px 16px !important;
    border: 0 !important;
    text-align: right !important;
  }

  body.woocommerce-order-received .lbwc-confirm th,
  body.woocommerce-order-received .lbwc-invoice th {
    background: #f6f9ff;
    color: #52677e;
    font-weight: 600;
  }

  body.woocommerce-order-received .lbwc-confirm th,
  body.woocommerce-order-received .lbwc-confirm td,
  body.woocommerce-order-received .lbwc-invoice th,
  body.woocommerce-order-received .lbwc-invoice td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #edf2f9 !important;
    text-align: right !important;
    vertical-align: middle !important;
  }

  body.woocommerce-order-received .lbwc-confirm tbody tr:hover td,
  body.woocommerce-order-received .lbwc-invoice tbody tr:hover td {
    background: #f6f9ff;
  }

  body.woocommerce-order-received .lbwc-confirm tr:last-child th,
  body.woocommerce-order-received .lbwc-confirm tr:last-child td,
  body.woocommerce-order-received .lbwc-invoice tr:last-child th,
  body.woocommerce-order-received .lbwc-invoice tr:last-child td {
    border-bottom: 0 !important;
  }

  /* ردیف‌های جمع پایین جدول */
  body.woocommerce-order-received .lbwc-confirm tfoot th,
  body.woocommerce-order-received .lbwc-confirm tfoot td,
  body.woocommerce-order-received .lbwc-invoice tfoot th,
  body.woocommerce-order-received .lbwc-invoice tfoot td {
    background: #f6f9ff !important;
    border-top: 1px solid #e3ecf8 !important;
  }

  body.woocommerce-order-received .lbwc-confirm tfoot tr:last-child th,
  body.woocommerce-order-received .lbwc-confirm tfoot tr:last-child td,
  body.woocommerce-order-received .lbwc-invoice tfoot tr:last-child th,
  body.woocommerce-order-received .lbwc-invoice tfoot tr:last-child td {
    background: linear-gradient(135deg, #e6efff 0%, #d9e7fb 100%) !important;
    color: var(--lb-navy) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    border-top: 2px solid #c3d6f2 !important;
  }

  /* باکس جمع‌ها (اگه table نباشه) */
  body.woocommerce-order-received .lbwc-confirm div.lbwc-totals,
  body.woocommerce-order-received .lbwc-confirm ul.lbwc-totals,
  body.woocommerce-order-received .lbwc-confirm dl.lbwc-totals {
    background: linear-gradient(180deg, #f4f8ff 0%, #eaf1fc 100%);
    border: 1px solid #c9d9f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 18px;
    list-style: none;
  }

  body.woocommerce-order-received .lbwc-confirm .lbwc-totals strong {
    color: var(--lb-blue) !important;
    font-weight: 800;
  }

  /* ---------------------------------------------------------
     فاکتور: ظاهر کاغذی با لبه‌ی منگنه‌ای
     --------------------------------------------------------- */
  body.woocommerce-order-received .lbwc-invoice {
    position: relative;
    margin-top: 32px !important;
    padding: 30px 26px 22px !important;
    background: #fff !important;
    border: 1px solid #dbe6f5 !important;
    border-top: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 34px rgba(16, 44, 80, 0.08) !important;
    background-image:
      radial-gradient(circle at 10px 0, transparent 7px, #f4f8ff 8px) !important;
    background-size: 20px 14px !important;
    background-repeat: repeat-x !important;
    background-position: top left !important;
  }

  body.woocommerce-order-received .lbwc-invoice h2,
  body.woocommerce-order-received .lbwc-invoice h3 {
    color: var(--lb-navy) !important;
    font-weight: 800 !important;
    margin: 6px 0 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px dashed #c9d9f0 !important;
  }

  /* دکمه چاپ */
  body.woocommerce-order-received .lbwc-print {
    background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
    border-radius: 12px !important;
    padding: 14px 26px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 24px rgba(16, 44, 80, 0.25) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
  }

  body.woocommerce-order-received .lbwc-print::before {
    content: "🖨";
    margin-left: 8px;
  }

  body.woocommerce-order-received .lbwc-print:hover {
    background: linear-gradient(135deg, #1d4c8f 0%, #2563eb 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32) !important;
  }
}
/* =========================================================================
   Luxury Blue - v4
   پنل کاربری (پیشخوان / حساب کاربری ووکامرس) + ارتقای فاکتور
   این فایل رو آخر فایل CSS بذار (بیرون از هر @media).
========================================================================= */

@media screen {

/* =========================================================
   A) پنل کاربری — منوی کناری
========================================================= */
body.woocommerce-account .woocommerce {
  direction: rtl;
  color: var(--lb-text);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  background:
    linear-gradient(90deg, #102c50 0%, #2563eb 100%) top / 100% 4px no-repeat,
    #fff;
  border: 1px solid #dbe6f5;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16, 44, 80, 0.08);
  padding: 22px 14px 14px;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 13px 16px !important;
  border-radius: 12px !important;
  color: var(--lb-navy) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 0 !important;
  transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #eef4fd !important;
  color: var(--lb-blue) !important;
  padding-right: 20px !important;
}

/* آیتم فعال */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(16, 44, 80, 0.25);
}

/* خروج */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #d62839 !important;
  margin-top: 8px;
  border-top: 1px dashed #dbe6f5 !important;
  border-radius: 0 0 12px 12px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fff0f2 !important;
  color: #d62839 !important;
}


/* =========================================================
   B) پنل کاربری — محتوا
========================================================= */
body.woocommerce-account .woocommerce-MyAccount-content {
  background:
    linear-gradient(90deg, #102c50 0%, #2563eb 100%) top / 100% 4px no-repeat,
    #fff;
  border: 1px solid #dbe6f5;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16, 44, 80, 0.08);
  padding: clamp(20px, 2.5vw, 34px) !important;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--lb-navy);
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ecf8;
}

/* بنر خوش‌آمدگویی (فقط در صفحه پیشخوان) */
body.woocommerce-account
.woocommerce-MyAccount-navigation:has(li.woocommerce-MyAccount-navigation-link--dashboard.is-active)
~ .woocommerce-MyAccount-content > p:first-of-type {
  background: linear-gradient(135deg, #102c50 0%, #2563eb 100%);
  color: #fff !important;
  padding: 22px 26px;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 2;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

body.woocommerce-account
.woocommerce-MyAccount-navigation:has(li.woocommerce-MyAccount-navigation-link--dashboard.is-active)
~ .woocommerce-MyAccount-content > p:first-of-type a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* میانبرهای پیشخوان (قالب وودمارت) */
body.woocommerce-account .wd-my-account-links a,
body.woocommerce-account .woocommerce-MyAccount-content .wd-my-account-link a {
  background: #f4f8ff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 16px !important;
  color: var(--lb-navy) !important;
  font-weight: 700 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account .wd-my-account-links a:hover,
body.woocommerce-account .woocommerce-MyAccount-content .wd-my-account-link a:hover {
  transform: translateY(-4px);
  border-color: #9db8e3 !important;
  box-shadow: 0 12px 26px rgba(16, 44, 80, 0.12);
}


/* =========================================================
   C) پنل کاربری — جدول سفارش‌ها و جدول‌های عمومی
========================================================= */
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.woocommerce-account .woocommerce-orders-table {
  width: 100% !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 14px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table thead th {
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 15px 14px !important;
  border: 0 !important;
  text-align: center !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table td,
body.woocommerce-account .woocommerce-MyAccount-content table tbody th {
  padding: 15px 14px !important;
  border-bottom: 1px solid #edf2f9 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table tbody tr:hover td {
  background: #f6f9ff;
}

body.woocommerce-account .woocommerce-MyAccount-content table tbody tr:last-child td,
body.woocommerce-account .woocommerce-MyAccount-content table tbody tr:last-child th {
  border-bottom: 0 !important;
}

/* شماره سفارش */
body.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: var(--lb-blue) !important;
  font-weight: 800;
  text-decoration: none;
}

/* رنگ وضعیت سفارش */
body.woocommerce-account tr.woocommerce-orders-table__row .woocommerce-orders-table__cell-order-status {
  font-weight: 700;
}
body.woocommerce-account tr.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #16a34a; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: #2563eb; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
body.woocommerce-account tr.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: #d97706; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
body.woocommerce-account tr.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
body.woocommerce-account tr.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: #d62839; }

/* دکمه‌های داخل جدول */
body.woocommerce-account .woocommerce-orders-table a.button {
  padding: 9px 18px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}


/* =========================================================
   D) پنل کاربری — آدرس‌ها و فرم‌ها
========================================================= */
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  background: #f8fbff;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(16, 44, 80, 0.05);
}

body.woocommerce-account .woocommerce-Address-title a.edit {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eaf1fc;
  color: var(--lb-blue) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row select,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row textarea {
  background: #f8fbff !important;
  border: 1px solid #cfdcf0 !important;
  border-radius: 12px !important;
  color: var(--lb-navy) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text {
  height: 46px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row select:focus,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row textarea:focus {
  border-color: var(--lb-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content fieldset {
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  padding: 18px;
}

body.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
  color: var(--lb-navy);
  font-weight: 700;
  padding: 0 10px;
}


/* =========================================================
   E) جزئیات سفارش در پنل کاربری (به شکل فاکتور)
========================================================= */
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
  background: #fff;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  padding: 22px;
  margin-top: 22px;
  box-shadow: 0 8px 24px rgba(16, 44, 80, 0.06);
}

body.woocommerce-account .woocommerce-order-details table.shop_table tfoot tr:last-child th,
body.woocommerce-account .woocommerce-order-details table.shop_table tfoot tr:last-child td {
  background: linear-gradient(135deg, #e6efff 0%, #d9e7fb 100%) !important;
  color: var(--lb-navy) !important;
  font-weight: 800 !important;
}


/* =========================================================
   F) ارتقای فاکتور (صفحه تکمیل سفارش)
   — اگه فاکتور خودش عنوان داره و عنوان تکراری شد،
     قانون ::before رو حذف کن.
========================================================= */
body.woocommerce-order-received .lbwc-invoice::before {
  content: "فاکتور سفارش";
  display: block;
  margin: 0 0 22px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(16, 44, 80, 0.22);
}

/* ردیف‌های یک‌درمیان */
body.woocommerce-order-received .lbwc-invoice tbody tr:nth-child(even) td {
  background: #fafcff;
}

/* مبلغ‌ها در فاکتور */
body.woocommerce-order-received .lbwc-invoice .woocommerce-Price-amount,
body.woocommerce-order-received .lbwc-invoice strong {
  color: var(--lb-blue) !important;
  font-weight: 800;
}

/* مهر «ثبت‌شده» در گوشه فاکتور */
body.woocommerce-order-received .lbwc-invoice::after {
  content: "ثبت شد";
  position: absolute;
  top: 88px;
  left: 22px;
  padding: 4px 14px;
  border: 2px solid #16a34a;
  border-radius: 8px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-8deg);
  opacity: 0.75;
  pointer-events: none;
}

}

/* =========================================================================
   Luxury Blue - v5  |  فاکتور PDF / چاپ
   این کد رو آخر فایل CSS بذار. جایگزین نمایش چاپ قبلی (بخش 14 Print) نمی‌شه
   ولی چون آخر فایله روش اولویت داره؛ برای تمیزی می‌تونی بخش 14 قدیمی رو پاک کنی.
========================================================================= */

@page {
  size: A4;
  margin: 12mm;
}

@media print {

  html,
  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- فقط کارت سفارش و والدهاش بمونن؛ هدر، فوتر و بقیه حذف بشن --- */
  body.woocommerce-order-received *:not(:has(.lbwc-confirm)):not(.lbwc-confirm):not(.lbwc-confirm *) {
    display: none !important;
  }

  body.woocommerce-order-received,
  body.woocommerce-order-received .website-wrapper,
  body.woocommerce-order-received .main-page-wrapper,
  body.woocommerce-order-received .site-content,
  body.woocommerce-order-received .wd-content-area,
  body.woocommerce-order-received .wd-content-layout,
  body.woocommerce-order-received .container,
  body.woocommerce-order-received .woocommerce,
  body.woocommerce-checkout .wd-content-layout.content-layout-wrapper.container.wd-grid-g.wd-sidebar-hidden-md-sm.wd-sidebar-hidden-sm.wd-builder-off {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    transform: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  /* --- خود کارت / فاکتور --- */
  body.woocommerce-order-received .lbwc-confirm,
  body.woocommerce-checkout .lbwc-confirm {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    direction: rtl;
    text-align: right;
    font-size: 12px;
    color: #173554;
    visibility: visible !important;
  }

  body.woocommerce-order-received .lbwc-invoice {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    visibility: visible !important;
  }

  .lbwc-print {
    display: none !important;
  }

  /* --- سربرگ فاکتور --- */
  body.woocommerce-order-received .lbwc-invoice::before {
    content: "فاکتور سفارش";
    display: block;
    margin: 0 0 18px;
    padding: 16px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #102c50 0%, #1d4c8f 100%) !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
  }

  /* --- عنوان‌ها --- */
  body.woocommerce-order-received .lbwc-confirm h2,
  body.woocommerce-order-received .lbwc-confirm h3 {
    color: #102c50 !important;
    font-weight: 800 !important;
    margin: 18px 0 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px dashed #c9d9f0 !important;
    page-break-after: avoid;
  }

  body.woocommerce-order-received .lbwc-confirm p {
    line-height: 2;
    margin: 0 0 8px;
  }

  /* --- جدول‌ها --- */
  body.woocommerce-order-received .lbwc-confirm table,
  body.woocommerce-order-received .lbwc-invoice table {
    width: 100% !important;
    min-width: 0 !important;
    border: 1px solid #c9d9f0 !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    margin: 0 0 16px !important;
    page-break-inside: auto;
  }

  body.woocommerce-order-received .lbwc-confirm tr,
  body.woocommerce-order-received .lbwc-invoice tr {
    page-break-inside: avoid;
  }

  body.woocommerce-order-received .lbwc-confirm thead th,
  body.woocommerce-order-received .lbwc-invoice thead th {
    background: #102c50 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    text-align: right !important;
  }

  body.woocommerce-order-received .lbwc-confirm th,
  body.woocommerce-order-received .lbwc-confirm td,
  body.woocommerce-order-received .lbwc-invoice th,
  body.woocommerce-order-received .lbwc-invoice td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #e3ecf8 !important;
    text-align: right !important;
    vertical-align: middle !important;
  }

  body.woocommerce-order-received .lbwc-confirm tbody tr:nth-child(even) td,
  body.woocommerce-order-received .lbwc-invoice tbody tr:nth-child(even) td {
    background: #f6f9ff !important;
  }

  body.woocommerce-order-received .lbwc-confirm tfoot th,
  body.woocommerce-order-received .lbwc-confirm tfoot td,
  body.woocommerce-order-received .lbwc-invoice tfoot th,
  body.woocommerce-order-received .lbwc-invoice tfoot td {
    background: #eef4fd !important;
    font-weight: 700 !important;
  }

  /* مجموع نهایی */
  body.woocommerce-order-received .lbwc-confirm tfoot tr:last-child th,
  body.woocommerce-order-received .lbwc-confirm tfoot tr:last-child td,
  body.woocommerce-order-received .lbwc-invoice tfoot tr:last-child th,
  body.woocommerce-order-received .lbwc-invoice tfoot tr:last-child td {
    background: #d9e7fb !important;
    color: #102c50 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-bottom: 0 !important;
  }

  /* مبلغ‌ها */
  body.woocommerce-order-received .lbwc-confirm .woocommerce-Price-amount,
  body.woocommerce-order-received .lbwc-confirm strong,
  body.woocommerce-order-received .lbwc-invoice .woocommerce-Price-amount,
  body.woocommerce-order-received .lbwc-invoice strong {
    color: #2563eb !important;
    font-weight: 800 !important;
  }

  /* --- پاورقی --- */
  body.woocommerce-order-received .lbwc-invoice::after {
    content: "از خرید شما سپاسگزاریم";
    display: block;
    margin-top: 22px;
    padding-top: 12px;
    border-top: 2px dashed #c9d9f0;
    color: #64748b;
    font-size: 11px;
    text-align: center;
    position: static;
    transform: none;
    opacity: 1;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}