/* V26.3: native WooCommerce Cart/Checkout presentation.
 * Keep native responsive layout, totals, forms and payment interactions.
 * No display:none hacks, generated prices or DOM text replacement.
 */
body.ms-wp.woocommerce-cart main.ms-wc-wrap,
body.ms-wp.woocommerce-checkout main.ms-wc-wrap{
    width:100%;max-width:1200px;min-width:0;
    padding:52px 28px 100px;
}
.ms-commerce-heading{margin-bottom:32px}
body.ms-wp .ms-commerce-heading h1{margin-bottom:0;font-size:clamp(32px,4vw,48px)}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-cart,
body.ms-wp.woocommerce-checkout .wp-block-woocommerce-checkout{
    width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0;
}
body.ms-wp.woocommerce-cart .wc-block-cart,
body.ms-wp.woocommerce-checkout .wc-block-checkout{
    width:100%;max-width:100%;font-family:var(--font-body);font-size:16px;line-height:1.5;
}
body.ms-wp.woocommerce-cart .wc-block-components-main,
body.ms-wp.woocommerce-checkout .wc-block-components-main{min-width:0}
body.ms-wp.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__main{padding-right:36px}
body.ms-wp.woocommerce-cart .wc-block-cart__sidebar,
body.ms-wp.woocommerce-checkout .wc-block-checkout__sidebar{
    min-width:0;padding:24px;border:1px solid hsl(var(--border));
    border-radius:20px;background:hsl(var(--card));
}
body.ms-wp.woocommerce-cart .wc-block-cart-items{width:100%;margin-top:0}
body.ms-wp.woocommerce-cart .wc-block-cart-item__image img,
body.ms-wp.woocommerce-checkout .wc-block-components-order-summary-item__image img{
    display:block;max-width:100%;height:auto;aspect-ratio:1;
    object-fit:contain;background:white;border-radius:12px;
}
body.ms-wp.woocommerce-cart .wc-block-components-product-name{
    font-family:var(--font-body);font-size:16px;font-weight:600;line-height:1.45;
    color:hsl(var(--foreground));text-decoration:none;overflow-wrap:anywhere;
}
body.ms-wp.woocommerce-cart .wc-block-components-product-name:hover{text-decoration:underline}
body.ms-wp.woocommerce-cart .wc-block-components-product-metadata{
    font-size:13px;line-height:1.6;color:hsl(var(--muted-foreground));
}
body.ms-wp.woocommerce-cart .wc-block-components-quantity-selector{
    border-radius:999px;border-color:hsl(var(--border));background:hsl(var(--card));
}
body.ms-wp.woocommerce-cart .wc-block-components-quantity-selector input{font:inherit}
body.ms-wp.woocommerce-cart .wc-block-cart__submit-button,
body.ms-wp.woocommerce-checkout .wc-block-components-checkout-place-order-button{
    min-height:52px;border-radius:999px;background:hsl(var(--foreground));
    color:hsl(var(--background));font-family:var(--font-body);font-size:15px;font-weight:500;
    text-align:center;text-decoration:none;border:1px solid hsl(var(--foreground));
}
body.ms-wp.woocommerce-cart .wc-block-cart__submit-button{width:100%}
body.ms-wp.woocommerce-cart .wc-block-cart__submit-button:hover,
body.ms-wp.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover{
    background:hsl(var(--foreground)/.9);color:hsl(var(--background));
}
body.ms-wp.woocommerce-cart .wc-block-cart__sidebar h2,
body.ms-wp.woocommerce-checkout .wc-block-checkout__sidebar h2{
    font-family:var(--font-heading);font-size:23px;line-height:1.3;
}
/* Classic cart is kept usable when a shop uses [woocommerce_cart]. */
body.ms-wp.woocommerce-cart .woocommerce-cart-form{width:100%}
body.ms-wp.woocommerce-cart .woocommerce-cart-form table.shop_table{width:100%;border-radius:16px}
body.ms-wp.woocommerce-cart .woocommerce-cart-form .product-thumbnail img{
    width:88px;height:88px;object-fit:contain;background:white;border-radius:12px;
}
body.ms-wp.woocommerce-cart .cart-collaterals .cart_totals{
    padding:24px;border:1px solid hsl(var(--border));border-radius:20px;background:hsl(var(--card));
}
body.ms-wp.woocommerce-cart .cart_totals h2{font-size:26px;margin-bottom:16px}
body.ms-wp.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
    display:block;min-height:52px;text-align:center;
}
@media(max-width:800px){
    body.ms-wp.woocommerce-cart main.ms-wc-wrap,
    body.ms-wp.woocommerce-checkout main.ms-wc-wrap{padding:32px 20px 88px}
    .ms-commerce-heading{margin-bottom:24px}
    body.ms-wp.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__main{padding-right:0}
    body.ms-wp.woocommerce-cart .wc-block-cart__sidebar,
    body.ms-wp.woocommerce-checkout .wc-block-checkout__sidebar{padding:20px}
}
@media(max-width:380px){
    body.ms-wp.woocommerce-cart main.ms-wc-wrap,
    body.ms-wp.woocommerce-checkout main.ms-wc-wrap{padding-left:16px;padding-right:16px}
    body.ms-wp.woocommerce-cart .wc-block-cart__sidebar,
    body.ms-wp.woocommerce-checkout .wc-block-checkout__sidebar{padding:16px}
    body.ms-wp.woocommerce-cart .wc-block-components-product-name{font-size:14px}
}
/* Empty cart only: bilingual introduction and the native product-new grid.
 * Prices, products and cart behaviour remain supplied by WooCommerce.
 * Only the inactive language copy is hidden; no JavaScript is required.
 */
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block{
    min-width:0;max-width:100%;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-ar,
body.ms-wp.woocommerce-cart.ms-lang-ar .wp-block-woocommerce-empty-cart-block .ms-empty-cart-fr{
    display:none;
}
body.ms-wp.woocommerce-cart.ms-lang-ar .wp-block-woocommerce-empty-cart-block .ms-empty-cart-ar{
    display:block;direction:rtl;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-intro{
    padding:clamp(28px,5vw,52px) 24px;margin:0 0 36px;text-align:center;
    border:1px solid hsl(var(--border));border-radius:24px;background:hsl(var(--card));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-title{
    margin:0 0 12px;font-family:var(--font-heading);font-size:clamp(26px,3.5vw,36px);
    line-height:1.25;color:hsl(var(--foreground));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-intro p{
    max-width:560px;margin:0 auto 24px;font-size:16px;line-height:1.6;
    color:hsl(var(--muted-foreground));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-shop-link,
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link{
    display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
    min-height:48px;max-width:100%;padding:12px 22px;border:1px solid hsl(var(--foreground));
    border-radius:999px;background:hsl(var(--foreground));color:hsl(var(--background));
    font-family:var(--font-body);font-size:15px;font-weight:500;line-height:1.4;
    text-align:center;text-decoration:none;white-space:normal;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-shop-link:hover,
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover{
    background:hsl(var(--foreground)/.9);color:hsl(var(--background));text-decoration:none;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block a:focus-visible{
    outline:2px solid hsl(var(--foreground));outline-offset:4px;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-recommendations-title{
    margin:0 0 24px;font-family:var(--font-heading);font-size:clamp(23px,3vw,28px);
    line-height:1.3;text-align:start;color:hsl(var(--foreground));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new{
    width:100%;max-width:100%;margin:0;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new .wc-block-grid__products{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;
    margin:0;padding:0;list-style:none;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new .wc-block-grid__product{
    display:flex;flex-direction:column;flex:none;box-sizing:border-box;
    width:auto;max-width:none;min-width:0;margin:0;padding:16px;
    border:1px solid hsl(var(--border));border-radius:20px;background:hsl(var(--card));
    text-align:start;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link{
    display:block;color:hsl(var(--foreground));text-decoration:none;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image{
    margin:0 0 14px;border-radius:14px;overflow:hidden;background:white;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img{
    display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1/1;
    margin:0;object-fit:contain;border-radius:14px;background:white;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title{
    margin:0 0 12px;font-family:var(--font-body);font-size:16px;font-weight:600;
    line-height:1.5;overflow-wrap:anywhere;color:hsl(var(--foreground));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link:hover .wc-block-grid__product-title{
    text-decoration:underline;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price{
    margin:0 0 10px;font-size:15px;line-height:1.5;color:hsl(var(--foreground));
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-rating{
    margin:0 0 12px;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart{
    width:100%;margin:auto 0 0;padding-top:16px;
}
body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link{
    width:100%;padding-right:14px;padding-left:14px;
}
@media(max-width:960px){
    body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new .wc-block-grid__products{
        grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;
    }
}
@media(max-width:600px){
    body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .ms-empty-cart-intro{
        padding:28px 20px;margin-bottom:28px;
    }
    body.ms-wp.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new .wc-block-grid__products{
        grid-template-columns:minmax(0,1fr);
    }
}
