/* NCC storefront polish for Astra + WooCommerce. Functional rules stay in plugin classes. */
:root{--ncc-ink:#10263d;--ncc-blue:#0875d1;--ncc-line:#e4e9ee;--ncc-soft:#f7f9fb;--ncc-green:#198754;--ncc-radius:10px}
body{color:var(--ncc-ink)}
.ast-primary-header-bar{border-bottom:1px solid var(--ncc-line);box-shadow:0 2px 12px rgba(16,38,61,.05)}
.site-title a,.site-title{font-weight:700;letter-spacing:-.02em}
.main-header-menu>.menu-item>a{font-weight:600}
.ncc-language-switcher{padding:.3rem .55rem; background:#061934}
.ncc-language-switcher a{padding:.1rem .15rem}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{border-radius:var(--ncc-radius);border-top-width:3px;background:var(--ncc-soft)}
.single-product div.product .summary{padding:1.2rem 0}
.single-product .product_title{font-weight:750;line-height:1.35}
.ncc-product-pricing{    padding: 8px;
    border: 1px solid var(--ncc-line);
    border-radius: var(--ncc-radius);
    background: #fff;
    margin-bottom: 10px;
}
#ncc_delivery_region{
	width:100% !important;
}
.woocommerce div.product form.cart{margin-top:1rem;padding:1.25rem;
	border:1px solid var(--ncc-line);border-radius:var(--ncc-radius);background:#fff;box-shadow:0 8px 28px rgba(16,38,61,.06)
}
.ncc-product-pricing select{min-height:46px;border-radius:7px}
.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit{border-radius:7px;font-weight:700;min-height:42px}
.woocommerce table.shop_table{border-color:var(--ncc-line);border-radius:var(--ncc-radius);overflow:hidden}
.cart_totals,.woocommerce-checkout-review-order{border-radius:var(--ncc-radius)}
.woocommerce-checkout #customer_details h3,.woocommerce-checkout-review-order h3,.cart_totals h2{font-weight:750}
#ncc-delivery-location{padding:1.1rem;border:1px solid var(--ncc-line);border-radius:var(--ncc-radius);background:#fff}
#ncc-delivery-location h3{margin-top:0}
.woocommerce-account .woocommerce-MyAccount-navigation ul{border:1px solid var(--ncc-line);border-radius:var(--ncc-radius);overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--ncc-line)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:.8rem 1rem;text-decoration:none}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{font-weight:700;background:var(--ncc-soft)}
html[dir="rtl"] .woocommerce table.shop_table,html[dir="rtl"] .woocommerce-checkout-review-order{text-align:right}
html[dir="rtl"] .woocommerce .woocommerce-message .button,html[dir="rtl"] .woocommerce .woocommerce-info .button{float:left}
@media(max-width:921px){.ncc-language-menu-item{padding:.6rem 1rem}.single-product div.product .summary{padding-top:.5rem}}

/* Arabic cart/order metadata: label on the right, value on the left. */
html[dir="rtl"] body:not(.woocommerce-order-pay) .woocommerce td.product-name dl.variation,
html[dir="rtl"] body:not(.woocommerce-order-pay) .woocommerce td.product-name .wc-item-meta {
  display:grid;grid-template-columns:minmax(9rem,1fr) minmax(5rem,.65fr);column-gap:1rem;direction:rtl;align-items:start;
}
html[dir="rtl"] .woocommerce td.product-name dl.variation dt,
html[dir="rtl"] .woocommerce td.product-name .wc-item-meta-label {grid-column:1;text-align:right;float:none;clear:none;margin:0}
html[dir="rtl"] .woocommerce td.product-name dl.variation dd,
html[dir="rtl"] .woocommerce td.product-name .wc-item-meta p {grid-column:2;text-align:left;float:none;margin:0}
html[dir="rtl"] .woocommerce .cart_totals table th,
html[dir="rtl"] .woocommerce-checkout-review-order-table th {text-align:right}
html[dir="rtl"] .woocommerce .cart_totals table td,
html[dir="rtl"] .woocommerce-checkout-review-order-table td {text-align:left}
html[dir="rtl"] .woocommerce-checkout-review-order-table td.product-name {text-align:right}

/* Keep checkout line subtotal at the top of each product row instead of visually beside metadata values. */
html[dir="rtl"] .woocommerce-checkout-review-order-table td.product-total{vertical-align:top!important;padding-top:1em!important;white-space:nowrap}
html[dir="rtl"] .woocommerce-checkout-review-order-table td.product-name{vertical-align:top!important}

/* Checkout: product metadata already shows price/load, so remove the redundant line subtotal column. */
/* .woocommerce-checkout-review-order-table thead th.product-total,
.woocommerce-checkout-review-order-table tbody td.product-total {
  display:none !important;
}
.woocommerce-checkout-review-order-table thead th.product-name,
.woocommerce-checkout-review-order-table tbody td.product-name {
  width:100% !important;
} */

/* Hide redundant totals ONLY on the normal checkout page.
   Do not affect the Order Pay page. */

body.woocommerce-checkout:not(.woocommerce-order-pay)
.woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout:not(.woocommerce-order-pay)
.woocommerce-checkout-review-order-table tbody td.product-total {
    display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-pay)
.woocommerce-checkout-review-order-table thead th.product-name,
body.woocommerce-checkout:not(.woocommerce-order-pay)
.woocommerce-checkout-review-order-table tbody td.product-name {
    width: 100% !important;
}

.kadence-svg-iconset svg {
    color: #fff !important;
}
/* NCC custom Order Pay summary (no product/quantity/line-total table). */
body.woocommerce-order-pay #order_review .ncc-order-pay-summary{width:100%;max-width:100%;margin:0 0 24px;box-sizing:border-box}
body.woocommerce-order-pay #order_review .ncc-order-pay-products{padding:18px;border:1px solid #dce3eb;border-radius:10px;margin-bottom:16px}
body.woocommerce-order-pay #order_review .ncc-order-pay-products h3{margin:0 0 12px;font-size:18px}
body.woocommerce-order-pay #order_review .ncc-order-pay-product{padding:10px 0;overflow-wrap:break-word}
body.woocommerce-order-pay #order_review .ncc-order-pay-product+.ncc-order-pay-product{border-top:1px solid #e5e9ef}
body.woocommerce-order-pay #order_review .ncc-order-pay-product dl.variation{margin:10px 0 0;display:block}
body.woocommerce-order-pay #order_review .ncc-order-pay-product dl.variation dt,body.woocommerce-order-pay #order_review .ncc-order-pay-product dl.variation dd{display:inline;float:none;width:auto;max-width:none;margin:0 4px 0 0;overflow-wrap:break-word}
body.woocommerce-order-pay #order_review .ncc-order-pay-product dl.variation dd:after{content:"";display:block;margin-bottom:6px}
body.woocommerce-order-pay #order_review .ncc-order-pay-total-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:12px 8px;border-bottom:1px solid #e0e5eb}
body.woocommerce-order-pay #order_review .ncc-order-pay-total-row>span{min-width:0;overflow-wrap:break-word}
body.woocommerce-order-pay #order_review .ncc-order-pay-total-row>span:last-child{text-align:end}
body.woocommerce-order-pay #order_review .ncc-order-pay-grand-total{font-weight:700;font-size:1.1em}
@media(max-width:600px){body.woocommerce-order-pay #order_review .ncc-order-pay-products{padding:12px}body.woocommerce-order-pay #order_review .ncc-order-pay-total-row{padding:11px 4px;font-size:13px;gap:10px}}


/* Individual product totals on Order Pay (desktop and mobile). */
body.woocommerce-order-pay .ncc-order-pay-line-total {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-top:12px; padding:10px 12px;
  background:#f5f8fb; border-radius:7px; font-weight:700;
}
body.woocommerce-order-pay .ncc-order-pay-line-value {text-align:end; white-space:nowrap;}
body.woocommerce-order-pay .ncc-order-pay-product + .ncc-order-pay-product {
  border-top:1px solid #e2e8f0; margin-top:12px; padding-top:18px;
}

/* Order Received: keep line totals from overlapping product metadata on narrow screens. */
@media (max-width: 600px) {
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tbody,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tr.woocommerce-table__line-item {
    display:block !important; width:100% !important; table-layout:auto !important;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details thead {
    display:none !important;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tr.woocommerce-table__line-item {
    padding:12px 0; border-bottom:1px solid #e2e8f0;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tr.woocommerce-table__line-item > td {
    display:block !important; width:100% !important; max-width:100% !important;
    box-sizing:border-box !important; border:0 !important;
    text-align:start !important; float:none !important; overflow-wrap:anywhere;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tr.woocommerce-table__line-item > td.woocommerce-table__product-total {
    padding:10px 12px !important; margin-top:8px; border-radius:7px !important;
    background:#f5f8fb; font-weight:700; text-align:end !important;
    white-space:normal !important;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details td.product-name .wc-item-meta,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details td.product-name dl.variation {
    max-width:100%; min-width:0;
  }
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tfoot th,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details tfoot td {
    overflow-wrap:anywhere; white-space:normal;
  }
}
/* NCC Order Pay - Product Details Heading */
body.woocommerce-order-pay .ncc-pay-section-title {
    background-color: #0b2e63;
    color: #fff !important;
    padding: 8px 14px !important;
    margin: 0 0 16px !important;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}