/* Enerfoam V8.5 minimal cart, mini-cart and offline request.
   Elementor global colors/fonts remain the designer's primary visual controls. */
:root{--ef85-ink:#142c49;--ef85-muted:#647489;--ef85-line:#e0e6eb;--ef85-accent:#51a7d4;}
/* Side mini-cart is a preview, not a second checkout. */
.elementor-menu-cart__product-image,
.elementor-menu-cart__container .elementor-menu-cart__product-image,
.elementor-menu-cart__container .elementor-menu-cart__product img{display:none!important;}
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button--checkout{display:none!important;}
.elementor-menu-cart__footer-buttons{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart{width:100%;grid-column:1;min-height:44px;}
.elementor-menu-cart__products{padding:0!important;}
.elementor-menu-cart__product{display:block!important;min-height:0!important;padding:10px 4px!important;border-bottom:1px solid var(--ef85-line)!important;}
.elementor-menu-cart__product-name,.elementor-menu-cart__product-price{font-size:.88rem!important;line-height:1.55!important;color:var(--ef85-ink)!important;opacity:1!important;}
.elementor-menu-cart__container .elementor-menu-cart__product-name a{color:var(--ef85-ink)!important;}
.elementor-menu-cart__container .elementor-menu-cart__product-remove{position:static!important;width:24px!important;height:24px!important;}
/* Compact single Woo cart table, not separate giant cards. */
.enerfoam-cart-v82 .product-thumbnail{display:none!important;}
.enerfoam-cart-v82 .ef-cart-product-name{color:var(--ef85-ink);font-weight:650;display:block;}
.enerfoam-cart-v82 .ef-cart-product-variation,.enerfoam-cart-v82 .ef-nominal-line{
 display:block;font-size:.82em;line-height:1.45;color:var(--ef85-muted);font-weight:400;
}
.enerfoam-cart-v82 .woocommerce-cart-form__contents{border:1px solid var(--ef85-line)!important;border-radius:9px;overflow:hidden;}
.enerfoam-cart-v82 .woocommerce-cart-form__cart-item{background:#fff!important;}
.enerfoam-cart-v82 td.product-subtotal{font-weight:650;}
.enerfoam-cart-v82 .cart_totals{border:1px solid var(--ef85-line)!important;border-radius:9px;}
.enerfoam-cart-v82 .ef-cart-qty-button{width:38px;min-width:38px;height:44px;}
.enerfoam-cart-v82 .ef-cart-qty input.qty{width:49px;max-width:49px;height:44px;min-height:44px;}
.enerfoam-cart-v82 .ef-cart-qty{max-width:138px;gap:0;}
@media(max-width:1023px){
 .enerfoam-cart-v82 table.shop_table_responsive tr.woocommerce-cart-form__cart-item{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto;align-items:start;gap:6px 8px;
    border:0!important;border-bottom:1px solid var(--ef85-line)!important;
    border-radius:0!important;box-shadow:none!important;margin:0!important;padding:12px 10px!important;
 }
 .enerfoam-cart-v82 table.shop_table_responsive tr.woocommerce-cart-form__cart-item td{
    display:block;float:none;width:auto!important;min-width:0!important;
    max-width:100%;margin:0!important;padding:0!important;border:0!important;
    box-sizing:border-box;overflow-wrap:anywhere;white-space:normal;text-align:start!important;
 }
 .enerfoam-cart-v82 table.shop_table_responsive tr.woocommerce-cart-form__cart-item td:before{display:none!important;}
 .enerfoam-cart-v82 table.shop_table_responsive tr.woocommerce-cart-form__cart-item td.product-thumbnail{display:none!important;}
 .enerfoam-cart-v82 td.product-name{grid-row:1;grid-column:1;padding-inline-start:4px!important;}
 .enerfoam-cart-v82 td.product-quantity{grid-row:1;grid-column:2;justify-self:end;align-self:center;}
 .enerfoam-cart-v82 td.product-price{display:none!important;}
 .enerfoam-cart-v82 td.product-remove{grid-row:2;grid-column:2;justify-self:end;align-self:end;}
 .enerfoam-cart-v82 td.product-remove a{font-size:19px!important;color:#697888!important;}
 .enerfoam-cart-v82 td.product-subtotal{grid-row:2;grid-column:1;padding-top:5px!important;}
 .enerfoam-cart-v82 td.product-subtotal .woocommerce-Price-amount{white-space:nowrap;}
 .enerfoam-cart-v82 .product-remove .remove{width:28px!important;height:28px!important;line-height:28px!important;}
}
/* Request fields: three values, no giant empty country/address panels. */
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .ef-request-field{margin:0 0 12px!important;padding:0!important;}
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .ef-request-field label{
 font-size:14px!important;color:var(--ef85-ink)!important;font-weight:600;line-height:1.7!important;
}
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .ef-request-field input{
 min-height:44px!important;background:#fff!important;border:1px solid #cbd5df!important;
 border-radius:7px!important;padding:8px 12px!important;box-shadow:none!important;
}
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .woocommerce-billing-fields h3{
 font-size:1.05rem!important;margin-bottom:12px!important;
}
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #ship-to-different-address{display:none!important;}
body.woocommerce-checkout #payment .payment_box{
 padding:10px!important;margin:6px 0!important;font-size:.88rem!important;line-height:1.65!important;
}
body.woocommerce-checkout .woocommerce-checkout-payment{margin-top:12px!important;}
body.woocommerce-checkout .woocommerce-checkout-review-order-table{
 font-size:.88rem!important;}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name{
 line-height:1.45!important;overflow-wrap:anywhere;}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount{
 white-space:nowrap;}
.ef-request-confirmation{border:1px solid #b4d9c7;border-radius:8px;padding:12px;margin:14px 0!important;color:#143d2c;}

/* Remove inactive promotional coupon sections from the request flow. */
.enerfoam-cart-v82 .coupon,.enerfoam-cart-v82 .e-cart__coupon,
.enerfoam-cart-v82 .e-cart__coupon-container,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-coupon,
body.woocommerce-checkout .e-checkout__coupon,
body.woocommerce-checkout .e-coupon-box{display:none!important;}
/* Counter nesting from Elementor's legacy cart layout. */
.enerfoam-cart-v82 .e-cart__container,.enerfoam-cart-v82 .e-cart__column-start,
.enerfoam-cart-v82 .e-cart__column-end{gap:12px!important;}
.enerfoam-cart-v82 .e-cart__column-start,.enerfoam-cart-v82 .e-cart__column-end{margin-block:0!important;}
.enerfoam-cart-v82 .woocommerce-cart-form,.enerfoam-cart-v82 .cart_totals{
 margin-block:0!important;
}
/* A professional single primary action in the mini cart. */
.elementor-menu-cart__footer-buttons .elementor-button--view-cart{
 background:var(--ef85-accent)!important;color:#fff!important;
 border:0!important;border-radius:8px!important;font-size:14px!important;font-weight:650!important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-remove{
 opacity:.7!important;border-color:var(--ef85-line)!important;
}
@media(max-width:767px){
 .enerfoam-cart-v82 td.product-quantity:after{
  content:"بسته";display:block;font-size:11px;color:var(--ef85-muted);text-align:center;
 }
 .enerfoam-cart-v82 .woocommerce-cart-form__contents{
  box-shadow:none!important;margin:0!important;
 }
}

/* V8.5.1: fix 320px Elementor checkout horizontal reflow at source. */
@media(max-width:360px){
 body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page,
 body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page > .elementor-widget-container,
 body.woocommerce-checkout .e-checkout__container,
 body.woocommerce-checkout .e-checkout__column,
 body.woocommerce-checkout .e-checkout__column-start,
 body.woocommerce-checkout .e-checkout__column-end,
 body.woocommerce-checkout .woocommerce,
 body.woocommerce-checkout form.checkout,
 body.woocommerce-checkout #order_review,
 body.woocommerce-checkout .woocommerce-checkout-review-order {
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;
 }
 body.woocommerce-checkout .e-checkout__container{grid-template-columns:minmax(0,1fr)!important;}
 body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width:100%!important;max-width:100%!important;table-layout:fixed;
 }
 body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
 body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  padding:6px 4px!important;min-width:0!important;overflow-wrap:anywhere;
 }
 body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {width:53%!important;}
 body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {width:47%!important;white-space:normal!important;}
 body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount {
  white-space:normal!important;overflow-wrap:break-word;
 }
}

/* V8.5.3 precise RTL in checkout, without exposing logged-in account email. */
body.woocommerce-checkout #billing_email_field:has(input[type="hidden"]){display:none!important;}
body.logged-in.woocommerce-checkout #billing_email_field{display:none!important;}
body.woocommerce-checkout #billing_phone{direction:ltr!important;text-align:left!important;unicode-bidi:plaintext;font-variant-numeric:tabular-nums;}
body.woocommerce-checkout #billing_first_name,
body.woocommerce-checkout #billing_last_name{direction:rtl!important;text-align:right!important;}
body.woocommerce-checkout .ef-cart-product-name,
body.woocommerce-checkout .ef-cart-product-variation{
 display:block!important;line-height:1.65!important;
 direction:rtl!important;unicode-bidi:isolate;
 text-align:right;white-space:normal;
}
body.woocommerce-checkout .ef-cart-product-variation{
 font-size:.86em!important;color:var(--ef85-muted)!important;font-weight:400;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name bdi,
body.woocommerce-cart .ef-cart-product-name bdi,
body.woocommerce-cart .ef-cart-product-variation bdi{unicode-bidi:isolate;direction:ltr;}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount{
 direction:rtl;unicode-bidi:isolate;font-variant-numeric:tabular-nums;
}
body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .ef-nominal-total{font-variant-numeric:tabular-nums;}


/* V8.5.6: concise, uneditable final review; editing is in the cart only. */
body.woocommerce-checkout .ef-checkout-qty-readonly{
 display:block!important;margin-top:5px!important;
 font-size:13px!important;line-height:1.6!important;
 font-weight:500!important;color:var(--ef85-ink)!important;
 direction:rtl!important;unicode-bidi:isolate!important;
 text-align:right!important;
}
body.woocommerce-checkout .ef-checkout-cart-edit td{
 border:0!important;text-align:right!important;padding:4px 8px!important;
 background:transparent!important;
}
body.woocommerce-checkout .ef-checkout-cart-edit a,
body.woocommerce-checkout .ef-edit-cart-link{
 display:inline-block!important;font-size:13px!important;font-weight:600!important;
 color:#267eae!important;text-decoration:underline!important;
 text-underline-offset:3px!important;
 padding:8px 3px!important;min-height:40px!important;line-height:24px!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name .quantity{
 display:none!important; /* defensive: no misleading editable quantity in final step */
}

/* EF-DS V2 / 2026-10-28: Primary purchase actions match brand navy.
   Fixed at the commerce CSS source because Elementor's saved cart color lost
   the cascade to the rendered Woo CTA. Scope only to cart and mini-cart. */
body.woocommerce-cart .enerfoam-cart-v82 .e-cart__footer a.checkout-button,
body.woocommerce-cart .enerfoam-cart-v82 a.checkout-button,
body.page-id-1346 .elementor-widget-woocommerce-cart a.checkout-button,
body.page-id-1346 .wc-proceed-to-checkout a.checkout-button {
  background-color: #080E53 !important;
  background: #080E53 !important;
  border-color: #080E53 !important;
  color: #FFFFFF !important;
  min-height: 48px;
  font-weight: 700;
  border-radius: 10px;
}
body.woocommerce-cart .enerfoam-cart-v82 a.checkout-button:hover,
body.woocommerce-cart .enerfoam-cart-v82 a.checkout-button:focus-visible,
body.page-id-1346 .elementor-widget-woocommerce-cart a.checkout-button:hover,
body.page-id-1346 .elementor-widget-woocommerce-cart a.checkout-button:focus-visible {
  background: #1B3175 !important;
  border-color: #1B3175 !important;
  color: #FFFFFF !important;
}
body.woocommerce-cart .enerfoam-cart-v82 a.checkout-button:focus-visible,
body.page-id-1346 .elementor-widget-woocommerce-cart a.checkout-button:focus-visible {
  outline: 3px solid #A9D059 !important;
  outline-offset: 3px;
}
/* The drawer has only one cart-review action and keeps its own scoped color. */
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  background: #080E53 !important;
  color: #FFFFFF !important;
  border-radius: 9px;
}
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover,
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button--view-cart:focus-visible {
  background: #1B3175 !important;
  color: #FFFFFF !important;
}
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button--view-cart:focus-visible {
  outline: 3px solid #A9D059 !important;
  outline-offset: 3px;
}
