/* M7trf checkout: clean white / purple pattern, comfortable on phones. Scoped to body.m7-co. */
body.m7-co{
  --m7-line:#ebe8f2; --m7-soft:#f6f5fa; --m7-fg:#16131f; --m7-muted:#6e6880;
  --m7-accent:#7c4dff; --m7-accent-hover:#6a3bf0; --m7-accent-soft:#f1ecff;
  background:#fff;
}
body.m7-co .content-page,body.m7-co .site-header,body.m7-co .et-footers-wrapper,
body.m7-co .content-page :is(h1,h2,h3,p,a,span,label,input,select,textarea,button,td,th,li,div,strong){font-family:"M7 Tajawal",Tahoma,sans-serif!important}

/* header: logo + steps */
body.m7-co .site-header .header-main{border-bottom:1px solid var(--m7-line)!important}
body.m7-co .cart-checkout-nav a{color:var(--m7-muted)!important;font-weight:700}
body.m7-co .cart-checkout-nav a.active{color:var(--m7-fg)!important}
body.m7-co .cart-checkout-nav a::before{border-color:var(--m7-line)!important}
body.m7-co .cart-checkout-nav a.active::before{background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important}

/* notices + coupon */
body.m7-co .woocommerce-message,body.m7-co .woocommerce-info,body.m7-co .woocommerce-error{border:1px solid var(--m7-line)!important;border-radius:14px!important;background:var(--m7-soft)!important;color:var(--m7-fg)!important}
body.m7-co .woocommerce-message a,body.m7-co .woocommerce-info a{color:var(--m7-accent)!important;font-weight:700}
body.m7-co .woocommerce-form-coupon-toggle{text-align:center}
body.m7-co .woocommerce-form-coupon-toggle .woocommerce-info,
body.m7-co .woocommerce-form-coupon-toggle > *{display:inline-block;padding:10px 18px!important;border-radius:999px!important;background:var(--m7-accent-soft)!important;border:0!important;color:var(--m7-fg)!important}
body.m7-co .woocommerce-form-coupon-toggle a{color:var(--m7-accent)!important;font-weight:700;text-decoration:none!important}
body.m7-co form.checkout_coupon{border:1px solid var(--m7-line)!important;border-radius:16px!important;padding:16px!important;background:#fff}
body.m7-co form.checkout_coupon .button{background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:12px!important;height:48px}

/* layout */
body.m7-co form.checkout .checkout-columns-wrap{align-items:flex-start}
body.m7-co .step-title{font-size:20px!important;font-weight:800!important;color:var(--m7-fg)!important;border-bottom:0!important;padding-bottom:0!important;margin-bottom:16px!important;text-transform:none!important;letter-spacing:0!important}
body.m7-co #customer_details{background:#fff;border:1px solid var(--m7-line);border-radius:20px;padding:22px}
body.m7-co #customer_details .col-2:empty{display:none}

/* fields */
body.m7-co form.checkout .form-row{margin-bottom:12px!important}
body.m7-co form.checkout :is(input.input-text:not(.qty),select,textarea),
body.m7-co form.checkout .select2-container .select2-selection--single{min-height:50px;border:1px solid var(--m7-line)!important;border-radius:12px!important;background:#fff!important;font-size:16px!important;color:var(--m7-fg)!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
body.m7-co form.checkout textarea{min-height:90px;padding-top:14px!important}
body.m7-co form.checkout :is(input.input-text:not(.qty),select,textarea):focus,
body.m7-co form.checkout .select2-container--open .select2-selection--single,
body.m7-co form.checkout .select2-container--focus .select2-selection--single{border-color:var(--m7-accent)!important;box-shadow:0 0 0 3px rgba(124,77,255,.15)!important;outline:0}
body.m7-co form.checkout .select2-selection__rendered{line-height:48px!important;font-size:16px!important;color:var(--m7-fg)!important}
body.m7-co form.checkout .select2-selection__arrow{height:48px!important}
body.m7-co form.checkout label{color:var(--m7-muted)!important;font-weight:500}
body.m7-co form.checkout .required{color:#e5484d!important;text-decoration:none}
body.m7-co form.checkout input[type=checkbox],body.m7-co form.checkout input[type=radio]{accent-color:var(--m7-accent);width:18px;height:18px}
body.m7-co #ship-to-different-address label{font-weight:700;color:var(--m7-fg)!important;font-size:15px}
body.m7-co .woocommerce-invalid :is(input.input-text,select),body.m7-co .woocommerce-invalid .select2-selection{border-color:#e5484d!important}

/* order summary card */
body.m7-co .cart-order-details .order-review{border:1px solid var(--m7-line)!important;border-radius:20px!important;background:var(--m7-soft)!important;padding:22px!important;box-shadow:none!important}
@media (min-width:993px){body.m7-co .cart-order-details{position:sticky;top:20px}}
body.m7-co .woocommerce-checkout-review-order-table{border:0!important;background:transparent!important}
body.m7-co .woocommerce-checkout-review-order-table :is(td,th){border-color:var(--m7-line)!important;color:var(--m7-fg)!important;background:transparent!important}
body.m7-co .woocommerce-checkout-review-order-table img{border-radius:12px;background:#fff;border:1px solid var(--m7-line)}
body.m7-co .woocommerce-checkout-review-order-table .product-name a,body.m7-co .woocommerce-checkout-review-order-table .product-title{color:var(--m7-fg)!important;font-weight:700}
body.m7-co .woocommerce-checkout-review-order-table .order-total :is(th,td),
body.m7-co .woocommerce-checkout-review-order-table .order-total .amount{font-size:22px!important;font-weight:800!important;color:var(--m7-fg)!important}
body.m7-co .woocommerce-checkout-review-order-table .cart-subtotal .amount{font-weight:700}
body.m7-co #shipping_method li label{color:var(--m7-fg)!important}
body.m7-co .woocommerce-checkout-review-order-table .remove,body.m7-co .woocommerce-checkout-review-order-table a.remove-item{color:var(--m7-muted)!important}

body.m7-co .woocommerce-checkout-review-order-table .quantity-wrapper{border:1px solid var(--m7-line)!important;border-radius:10px!important;background:#fff!important;overflow:hidden}
body.m7-co .woocommerce-checkout-review-order-table input.qty{min-height:0!important;height:30px!important;font-size:14px!important;border:0!important;background:transparent!important}

/* payment methods as selectable cards */
body.m7-co #payment{background:transparent!important;border:0!important;padding:0!important}
body.m7-co #payment ul.payment_methods{border:0!important;padding:0!important;margin:16px 0!important;display:grid;gap:10px}
body.m7-co #payment ul.payment_methods li.wc_payment_method{list-style:none;margin:0!important;padding:14px 14px!important;background:#fff;border:1.5px solid var(--m7-line);border-radius:14px;transition:border-color .15s,background .15s}
body.m7-co #payment ul.payment_methods li.wc_payment_method::before{display:none!important}
body.m7-co #payment ul.payment_methods li.wc_payment_method:has(>input:checked){border-color:var(--m7-accent);background:#fff;box-shadow:0 0 0 3px rgba(124,77,255,.12)}
body.m7-co #payment ul.payment_methods li.wc_payment_method>label{display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:8px;font-weight:700!important;color:var(--m7-fg)!important;font-size:15px!important;cursor:pointer;opacity:1!important}
body.m7-co #payment ul.payment_methods li.wc_payment_method>label img{max-height:28px;width:auto;margin:0!important;opacity:1!important;filter:none!important}
body.m7-co #payment .payment_box{background:var(--m7-soft)!important;border-radius:12px!important;margin:12px 0 0!important;padding:12px!important;color:var(--m7-muted)!important;font-size:14px}
body.m7-co #payment .payment_box::before{display:none!important}

/* terms + place order */
body.m7-co .woocommerce-terms-and-conditions-wrapper{margin:6px 0 14px}
body.m7-co .woocommerce-terms-and-conditions-wrapper label{color:var(--m7-fg)!important;font-size:14px}
body.m7-co .woocommerce-terms-and-conditions-wrapper a{color:var(--m7-accent)!important;font-weight:700}
body.m7-co #place_order{width:100%;min-height:54px;background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:14px!important;font-size:17px!important;font-weight:800!important;text-transform:none!important;letter-spacing:0!important;opacity:1!important;transition:background .15s}
body.m7-co #place_order:hover{background:var(--m7-accent-hover)!important;border-color:var(--m7-accent-hover)!important}
body.m7-co .m7-co-secure{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 0;font-size:13px;color:var(--m7-muted)}
body.m7-co .m7-co-secure svg{width:14px;height:14px;fill:currentColor}

/* footer */
body.m7-co .et-footers-wrapper .footer{background:#16131f!important;border-top:4px solid var(--m7-accent);color:#9a93ad!important;padding:28px 0!important}
body.m7-co .et-footers-wrapper .footer .text-center>img{display:none!important}
body.m7-co .et-footers-wrapper .copyrights{background:#16131f!important;color:#9a93ad!important}
body.m7-co .et-footers-wrapper .copyrights *{color:inherit!important}
body.m7-co .m7-pay{list-style:none;margin:0!important;padding:0!important;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;align-items:center}
body.m7-co .m7-pay-item{margin:0!important;height:40px;min-width:64px;padding:0 10px;background:#fff;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px}
body.m7-co .m7-pay-item img{display:block;height:24px;width:auto;max-width:70px;object-fit:contain;border:0!important;max-height:none!important}
body.m7-co .m7-pay-item.is-visa img{height:16px}
body.m7-co .m7-pay-item.is-mastercard img,body.m7-co .m7-pay-item.is-knet img{height:28px}
body.m7-co .m7-pay-item.is-tabby{background:#3effb9;padding:0 8px}
body.m7-co .m7-pay-item.is-tabby img{height:26px}
body.m7-co .m7-pay-item.is-taly{background:#1c232b}
body.m7-co .m7-pay-item.is-taly img{height:26px}
body.m7-co .m7-pay-item.is-deema img{height:22px;width:22px;border-radius:6px}
body.m7-co .m7-pay-item.is-deema b{font-family:Tahoma,Arial,sans-serif!important;font-size:14px;font-weight:700;color:#1b1b1f;direction:ltr}

/* phones */
@media (max-width:767px){
  body.m7-co .content-page{padding-left:12px!important;padding-right:12px!important}
  body.m7-co .site-header .et_b_header-logo{display:block!important}
  body.m7-co .site-header .et_b_header-logo img{max-height:40px;width:auto}
  body.m7-co .cart-checkout-nav{font-size:14px}
  body.m7-co #customer_details,body.m7-co .cart-order-details .order-review{padding:16px!important;border-radius:16px!important}
  body.m7-co .cart-order-details{margin-top:16px}
  body.m7-co .step-title{font-size:18px!important}
  body.m7-co form.checkout .form-row-first,body.m7-co form.checkout .form-row-last{width:100%!important;float:none!important}
  body.m7-co .woocommerce-checkout-review-order-table .order-total .amount{font-size:20px!important}
  body.m7-co #place_order{min-height:56px;font-size:18px!important}
  body.m7-co .m7-pay{gap:6px}
  body.m7-co .m7-pay-item{height:36px;min-width:56px;padding:0 8px}
}

/* ---------- cart page (body.m7-cart, Elementor page 1305) ---------- */
body.m7-cart .etheme-elementor-cart-checkout-page-wrapper{gap:24px}
body.m7-cart .etheme-elementor-cart-page-table{background:#fff;border:1px solid var(--m7-line);border-radius:20px;padding:20px}
body.m7-cart table.cart{border:0!important;margin:0!important}
body.m7-cart table.cart :is(th,td){border-color:var(--m7-line)!important;color:var(--m7-fg)!important;background:transparent!important}
body.m7-cart table.cart th{font-weight:800!important;font-size:14px!important;color:var(--m7-muted)!important;text-transform:none!important;letter-spacing:0!important}
body.m7-cart table.cart .product-thumbnail img{border-radius:12px;border:1px solid var(--m7-line);background:#fff}
body.m7-cart table.cart a.product-title{color:var(--m7-fg)!important;font-weight:700!important;font-size:16px!important;line-height:1.5}
body.m7-cart table.cart .product-subtotal .amount{font-weight:800;color:var(--m7-fg)}
body.m7-cart table.cart a.remove-item{color:var(--m7-muted)!important}
body.m7-cart table.cart a.remove-item:hover{color:#e5484d!important}
body.m7-cart table.cart :is(th.product-sku,td.product-sku){display:none!important}
body.m7-cart .woocommerce-cart-form .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding-top:16px!important}
body.m7-cart form.checkout_coupon{border:0!important;padding:0!important;background:transparent}
body.m7-cart .coupon{display:flex!important;gap:8px;align-items:stretch;flex-wrap:nowrap}
body.m7-cart .coupon input.input-text{height:48px!important;min-width:0;flex:1 1 auto;width:auto!important;max-width:none!important;margin:0!important;border:1px solid var(--m7-line)!important;border-radius:12px!important;font-size:16px!important;padding:0 14px!important;background:#fff!important}
body.m7-cart .coupon input.input-text:focus{border-color:var(--m7-accent)!important;box-shadow:0 0 0 3px rgba(124,77,255,.15)!important;outline:0}
body.m7-cart .coupon .btn{position:static!important;margin:0!important;height:48px!important;min-width:84px;width:auto!important;padding:0 18px!important;border-radius:12px!important;background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;font-weight:800!important;font-size:15px!important;text-transform:none!important;white-space:nowrap;flex:none}
body.m7-cart a.clear-cart{height:48px;border-radius:12px!important;border:1px solid var(--m7-line)!important;color:var(--m7-muted)!important;background:#fff!important;font-weight:700!important;text-transform:none!important;padding:0 16px!important}
body.m7-cart a.clear-cart:hover{border-color:#e5484d!important;color:#e5484d!important}
body.m7-cart .etheme-elementor-cart-page-totals-inner,body.m7-cart .cart_totals{border:1px solid var(--m7-line)!important;border-radius:20px!important;background:var(--m7-soft)!important;box-shadow:none!important}
body.m7-cart .etheme-elementor-cart-page-totals-inner .cart_totals{border:0!important;background:transparent!important}
body.m7-cart .etheme-elementor-cart-page-totals-inner{padding:22px!important}
body.m7-cart .cart-totals-title{font-size:20px!important;font-weight:800!important;color:var(--m7-fg)!important;text-transform:none!important;letter-spacing:0!important;border:0!important;padding-bottom:4px!important}
body.m7-cart .cart-totals-title::after,body.m7-cart .cart-totals-title::before{display:none!important}
body.m7-cart .cart_totals table :is(th,td){border-color:var(--m7-line)!important;color:var(--m7-fg)!important;background:transparent!important}
body.m7-cart .cart_totals .order-total :is(th,td),body.m7-cart .cart_totals .order-total .amount{font-size:22px!important;font-weight:800!important}
body.m7-cart .woocommerce-shipping-destination,body.m7-cart .shipping-calculator-button{font-size:13px!important;color:var(--m7-muted)!important}
body.m7-cart .wc-proceed-to-checkout{padding-bottom:0!important}
body.m7-cart a.checkout-button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:54px;background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:14px!important;font-size:17px!important;font-weight:800!important;text-transform:none!important;letter-spacing:0!important}
body.m7-cart a.checkout-button:hover{background:var(--m7-accent-hover)!important;border-color:var(--m7-accent-hover)!important}
body.m7-cart a.return-shop{display:flex!important;align-items:center;justify-content:center;min-height:48px;margin-top:10px;border-radius:14px!important;border:1px solid var(--m7-line)!important;background:#fff!important;color:var(--m7-fg)!important;font-weight:700!important;text-transform:none!important}
body.m7-cart .cart-empty,body.m7-cart .return-to-shop .button{text-transform:none!important}
body.m7-cart .return-to-shop .button{background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:12px!important;font-weight:800!important}
@media (max-width:767px){
  body.m7-cart .etheme-elementor-cart-page-table{padding:14px;border-radius:16px}
  body.m7-cart .etheme-elementor-cart-page-totals-inner{padding:16px!important}
  body.m7-cart .woocommerce-cart-form .actions{flex-direction:column;align-items:stretch}
  body.m7-cart .woocommerce-cart-form .actions>div{width:100%;text-align:center}
  body.m7-cart a.clear-cart{width:100%;justify-content:center}
  /* the theme's sticky "proceed" bar covers the totals; keep the button in the card instead */
  body.m7-cart .etheme-elementor-cart-totals-sticky-buttons .wc-proceed-to-checkout{position:static!important;box-shadow:none!important;background:transparent!important;padding:12px 0 0!important;transform:none!important}
}

/* XStore icon font must not be replaced by the page font (cart trash icon) */
body.m7-co .et-icon,body.m7-co .content-page span.et-icon,body.m7-co .content-page span.et-icon:before{font-family:xstore-icons!important}
body.m7-cart .cart_totals tr.m7-ship-note td{padding:4px 0 0!important;border:0!important;font-size:13px!important;color:var(--m7-muted)!important;text-align:start!important}
body.m7-cart .cart_totals tr.shipping{display:none!important}

/* ---- checkout v2 (Maalem-style layout), body.m7-co2 ---- */
body.m7-co2 .woocommerce-form-coupon-toggle,body.m7-co2 form.checkout_coupon{display:none!important}
body.m7-co2 .m7co2-hide,body.m7-co2 #billing_country_field,body.m7-co2 #billing_state_field,body.m7-co2 .woocommerce-shipping-fields,body.m7-co2 .woocommerce-additional-fields > h3{display:none!important}
body.m7-co2 .m7co2-top{display:flex;justify-content:flex-end;margin:0 0 10px}
body.m7-co2 .header-wrapper .m7co2-top{margin:0 0 8px;width:100%}
body.m7-co2 .content-page > .m7co2-top{justify-content:center;margin:14px 0}
body.m7-co2 #customer_details .woocommerce-billing-fields{display:flex;flex-wrap:wrap;gap:0 12px}
body.m7-co2 #customer_details .woocommerce-billing-fields > h3{flex:0 0 100%}
body.m7-co2 #customer_details .woocommerce-billing-fields__field-wrapper{display:flex;flex-wrap:wrap;gap:0 12px;width:100%}
body.m7-co2 #customer_details .woocommerce-billing-fields__field-wrapper > .form-row{flex:0 0 100%;width:100%!important;float:none!important;margin-inline:0!important}
body.m7-co2 #customer_details .woocommerce-billing-fields__field-wrapper > .form-row-first,
body.m7-co2 #customer_details .woocommerce-billing-fields__field-wrapper > .form-row-last{flex:1 1 calc(50% - 6px);width:auto!important}
body.m7-co2 #billing_phone_field{position:relative}
body.m7-co2 #billing_phone{padding-left:52px!important;direction:ltr;text-align:start;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'%3E%3Cpath fill='%23007a3d' d='M0 0h12v2H0z'/%3E%3Cpath fill='%23fff' d='M0 2h12v2H0z'/%3E%3Cpath fill='%23ce1126' d='M0 4h12v2H0z'/%3E%3Cpath d='M0 0l3 2v2L0 6z'/%3E%3C/svg%3E") no-repeat!important;background-size:26px 13px!important;background-position:left 16px center!important}
body.m7-co2:not(.rtl) #billing_phone{background-position:right 16px center!important;padding-left:14px!important;padding-right:52px!important}
body.m7-co2.rtl #billing_phone{text-align:right}
body.m7-co2 .m7co2-gov-row,body.m7-co2 #billing_city_field{margin-top:6px}
body.m7-co2 #m7co2-gov{width:100%;min-height:50px;padding:0 14px;appearance:auto}
body.m7-co2 #billing_city_field.m7co2-off{opacity:.55;pointer-events:none}
body.m7-co2 #billing_email_field{order:0}
body.m7-co2 .woocommerce-billing-fields__field-wrapper > #billing_city_field{border-bottom:0}
body.m7-co2 .woocommerce-additional-fields{margin-top:4px}

/* summary: coupon fold-out */
body.m7-co2 tr.m7co2-coupon-row td{padding:10px 0!important;border-top:1px solid var(--m7-line)!important}
body.m7-co2 .m7co2-coupon-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;background:#fff!important;border:1px solid var(--m7-line)!important;border-radius:12px!important;padding:12px 14px!important;font-size:15px!important;font-weight:700!important;color:var(--m7-fg)!important;cursor:pointer;min-height:0;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
body.m7-co2 .m7co2-coupon-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}
body.m7-co2 .m7co2-coupon-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
body.m7-co2 .m7co2-coupon-body{display:flex;gap:8px;margin-top:8px}
body.m7-co2 .m7co2-coupon-body[hidden]{display:none}
body.m7-co2 .m7co2-coupon-code{flex:1 1 auto;width:auto!important;min-width:0;height:46px;border:1px solid var(--m7-line)!important;border-radius:12px!important;padding:0 12px!important;font-size:16px!important;background:#fff!important}
body.m7-co2 .m7co2-coupon-apply{flex:0 0 auto;min-width:84px;height:46px;border:0!important;border-radius:12px!important;background:var(--m7-accent)!important;color:#fff!important;font-weight:700!important;padding:0 16px!important;cursor:pointer}
body.m7-co2 .m7co2-coupon.is-busy{opacity:.6;pointer-events:none}
body.m7-co2 .m7co2-coupon-flash{margin:8px 0}
body.m7-co2 .m7co2-coupon-flash ul{margin:0}
body.m7-co2 .m7co2-gov-row > label{font-size:13px!important;margin-bottom:4px}
body.m7-co2 .m7co2-phone-note{display:block;font-size:13px;color:#e5484d;margin-top:6px}
body.m7-co2 .m7co2-phone-note:empty{display:none}
body.m7-co2 .m7co2-phone-bad #billing_phone{border-color:#e5484d!important}
