/*! Avloon — Cart Design: cart page (/cart/). Loaded only on the cart page and only for visitors who get the new design.
 *
 * Restyles the real Rey / WooCommerce cart markup (table rows → cards, quantity field → stepper, totals table →
 * summary card, proceed block → pay card). Nothing is hidden that the page showed before, with one exception:
 * avloon-storefront's own «وفّرت» pill steps aside while the «وفّرت» strip printed by this plugin is in the summary
 * card (the strip also counts the coupon; two different figures would confuse). Without the strip the pill shows.
 *
 * Scope: every rule starts with  body.avl-cui-cartpage:not(#avl-cui)  — the body class is added by inc/cartpage.php;
 * :not(#avl-cui) always matches (the body has no such id) and gives each rule the weight of an id, so it wins over
 * the theme's and avloon-storefront's class-based selectors whichever file loads first (same method as sidecart.css).
 * !important is used only against inline styles and third-party !important (marked "vs").
 * Logical properties throughout: Arabic (RTL) and /en/ (LTR) share the file. Font: the site's Tajawal 400/500/700. */

body.avl-cui-cartpage{
	--cp-ink:#111214;
	--cp-ink-2:#4a4f57;
	--cp-ink-3:#797979;
	--cp-canvas:#f4f5f7;
	--cp-card:#ffffff;
	--cp-line:#e6e8ec;
	--cp-steel-1:#fafbfc;
	--cp-steel-2:#e9ecf0;
	--cp-steel-3:#c9ced6;
	--cp-steel-4:#9aa2ad;
	--cp-red:#E0003B;
	--cp-green:#1a7f37;
	--cp-green-bg:#edf7ef;
	--cp-green-line:#cfe8d5;
	--cp-radius:18px;
	--cp-shadow:0 1px 2px rgba(17,18,20,.04),0 8px 24px rgba(17,18,20,.05);
	--cp-thumb:112px;
	--cp-pad:16px;
}

/* ------------------------------------------------------------------ page frame */
body.avl-cui-cartpage:not(#avl-cui){background-color:var(--cp-canvas)}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart{padding-block:18px 56px}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart__title{margin:0 2px 14px;color:var(--cp-ink);font-size:22px;font-weight:700;line-height:1.3;letter-spacing:0}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart__icon{padding-inline-end:8px;color:var(--cp-ink)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage{color:var(--cp-ink);font-family:"Tajawal",sans-serif;font-size:15px;font-weight:400;line-height:1.5;-webkit-font-smoothing:antialiased}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .woocommerce-Price-currencySymbol{font-size:max(13px,.8em);font-weight:500}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage bdi{white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage :is(strong,b){font-weight:700}

/* ------------------------------------------------------------------ product rows → cards */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form table.woocommerce-cart-form__contents{display:block;width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form table.woocommerce-cart-form__contents > thead{display:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form table.woocommerce-cart-form__contents > tbody{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;border:0;background:none}

body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item{
	position:relative;
	box-sizing:border-box;
	display:grid;
	grid-template-columns:var(--cp-thumb) minmax(0,1fr) auto;
	grid-template-rows:auto 1fr auto;
	grid-template-areas:"thumb name name" "thumb price price" "qty qty total";
	gap:0;
	width:100%;
	margin:0;
	padding:var(--cp-pad) var(--cp-pad) 0;
	border:1px solid var(--cp-line);
	border-radius:var(--cp-radius);
	/* footer strip (stepper + line total): a hairline and a soft band behind the last grid row (72px) */
	background:
		linear-gradient(var(--cp-line),var(--cp-line)) 0 calc(100% - 72px) / 100% 1px no-repeat,
		linear-gradient(180deg,#fbfbfc,#f6f7f9) 0 100% / 100% 72px no-repeat,
		var(--cp-card);
	box-shadow:var(--cp-shadow);
	overflow:hidden;
}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td{display:block;float:none;position:static;box-sizing:border-box;width:auto;min-width:0;margin:0;padding:0;border:0;background:none;text-align:start}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td::before{content:none;display:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-name,
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-name{display:contents}

/* thumbnail on a plain white tile; the photo is drawn as it is (no blend mode), so a browser that darkens pages by
   itself (Samsung Internet, Chrome's forced dark theme) does not turn it into a dark blob */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-thumbnail{grid-area:thumb;box-sizing:border-box;width:var(--cp-thumb);height:var(--cp-thumb);margin:0;padding:0;border:1px solid #e1e4e9;border-radius:16px;background:#fff;overflow:hidden}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-thumbnail a{display:block;width:100%;height:100%}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-thumbnail img{display:block;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;object-fit:contain}

/* name (+ variation data); room at the end for the remove button */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent{position:static;grid-area:name;align-self:start;min-width:0;margin:0;padding-block:2px 0;padding-inline:14px 42px;color:#000;font-size:15px;font-weight:500;line-height:1.55;text-align:start;text-transform:none;overflow-wrap:break-word}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent .woocommerce-mini-cart-item-title{margin:0;padding:0;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;text-transform:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent a:not(.remove){color:inherit;font-weight:500;line-height:inherit;text-decoration:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent dl.variation{margin:4px 0 0;padding:0;color:var(--cp-ink-2);font-size:13px;font-weight:400;line-height:1.5}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent dl.variation dt{display:inline;float:none;clear:none;margin:0;margin-inline-end:4px;padding:0;font-weight:400}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent dl.variation dd{display:inline;float:none;margin:0;padding:0;color:var(--cp-ink);font-weight:500}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent dl.variation dd::after{content:"\A";white-space:pre}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent dl.variation dd p{display:inline;margin:0}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent .backorder_notification{margin:4px 0 0;color:var(--cp-ink-2);font-size:13px;font-weight:400;line-height:1.5}

/* remove: the same link, drawn as a round quiet button with a trash icon (36px, 44px hit area) */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove{position:absolute;top:14px;inset-inline-end:14px;z-index:1;box-sizing:border-box;display:block;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:var(--cp-canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.5 7V4.5h5V7M6.5 7l.9 11.2a2 2 0 0 0 2 1.8h5.2a2 2 0 0 0 2-1.8L17.5 7M10.3 11v5.5M13.7 11v5.5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;color:var(--cp-ink-2);font-size:0;line-height:0;text-decoration:none;opacity:1;transition:background-color .15s ease}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove::after{content:"";position:absolute;inset:-4px;border-radius:50%}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove > svg{display:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove > span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove:hover,
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove:focus-visible{background-color:var(--cp-steel-2)}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove:focus-visible{outline:2px solid var(--cp-ink);outline-offset:2px}

/* price: selling price first (red), struck price after it (grey) */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price{grid-area:price;align-self:end;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;padding-block:8px 4px;padding-inline:14px 0;color:var(--cp-red);font-size:15px;font-weight:700;line-height:1.45}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price > *{order:3}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price > ins{order:1;margin:0;padding:0;background:none;color:var(--cp-red);font-weight:700;text-decoration:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price > del{order:2;margin:0;padding:0;color:var(--cp-ink-3);font-weight:400;text-decoration:line-through;opacity:1}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price del .woocommerce-Price-currencySymbol{font-weight:400}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price .woocommerce-Price-amount{color:inherit;font-size:inherit;font-weight:inherit}
/* a line whose price another plugin prints inside one wrapper (free gift: struck price + «مجانًا»): both stay on one line */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price > .avl-gift-price{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}

/* footer strip: stepper at the start, line total at the end */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-quantity{grid-area:qty;display:flex;align-items:center;justify-content:flex-start;height:72px;margin-top:var(--cp-pad)}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-subtotal{grid-area:total;display:flex;align-items:center;justify-content:flex-end;height:72px;margin-top:var(--cp-pad);padding-inline-start:12px;color:var(--cp-ink);font-size:21px;font-weight:700;line-height:1;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-subtotal .woocommerce-Price-amount{color:inherit;font-size:inherit;font-weight:inherit}
/* a struck figure another plugin prints beside the line total (free gift): quiet, like the struck unit price */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-subtotal del{margin-inline-end:8px;color:var(--cp-ink-3);font-size:15px;font-weight:400;text-decoration:line-through}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-subtotal ins{text-decoration:none}

body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity .quantity{display:block;width:auto;max-width:none;margin:0;padding:0;border:0;background:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField{position:relative;box-sizing:border-box;display:flex;align-items:center;width:auto;height:50px;margin:0;padding:4px;border:1px solid #d9dde3;border-radius:14px;background:linear-gradient(180deg,#eef0f3,#e6e9ed);overflow:visible}
/* vs the Customizer's `.woocommerce-cart .cartBtnQty-control{width:48px!important;height:48px!important}` */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control{position:static;box-sizing:border-box;flex:0 0 40px;width:40px !important;height:40px !important;margin:0;padding:0;border:1px solid #d9dde3;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(17,18,20,.08);color:var(--cp-ink);font-size:16px;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control::after{content:none}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control svg{display:block;width:18px;height:18px}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control.--minus{order:1}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control.--plus{order:3}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control:active{background:var(--cp-steel-2);box-shadow:none}   /* 1.1.0 touch C1: was --cp-steel-1 (#fafbfc on #fff: not visible) */
/* vs the Customizer's `.woocommerce-cart .quantity input.qty{height:48px!important;width:56px!important}`, its font-size:15px!important and the site-wide input{font-size:16px!important} */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField input.qty{order:2;box-sizing:border-box;flex:0 0 46px;width:46px !important;min-width:0;height:40px !important;margin:0;padding:3px 0 0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--cp-ink);font-size:18px !important;font-weight:700;line-height:1;text-align:center;-moz-appearance:textfield;appearance:textfield}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField input.qty::-webkit-outer-spin-button,
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField input.qty:focus-visible{outline:2px solid var(--cp-steel-4);outline-offset:-2px}

/* ------------------------------------------------------------------ cart form actions
 * With JavaScript (every normal visit) the theme updates the cart by itself one second after a quantity change by
 * clicking the hidden «تحديث السلة» button, and avloon-storefront moves the coupon into the totals: nothing shows here.
 * Without JavaScript (body.rey-no-js, removed by an inline script right after <body>) both stay here and show. */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form .woocommerce-cart-form__actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:0;border:0;background:none}
body.avl-cui-cartpage:not(#avl-cui).rey-no-js .woocommerce-cart-form .woocommerce-cart-form__actions{margin-top:12px}
body.avl-cui-cartpage:not(#avl-cui).rey-no-js .woocommerce-cart-form .woocommerce-cart-form__actions .coupon{display:flex;order:0}
body.avl-cui-cartpage:not(#avl-cui).rey-no-js .woocommerce-cart-form .woocommerce-cart-form__actions .button[name="update_cart"]{display:flex}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form .woocommerce-cart-form__actions .button[name="update_cart"]{box-sizing:border-box;align-items:center;justify-content:center;width:100%;height:48px;margin:0;padding:3px 18px 0;border:1px solid #bfc5ce;border-radius:12px;background:linear-gradient(150deg,#ffffff 0%,var(--cp-steel-2) 100%);box-shadow:inset 0 1px 0 #fff;color:var(--cp-ink);font-family:inherit;font-size:15px;font-weight:700;line-height:1;text-align:center;text-transform:none;letter-spacing:0;cursor:pointer}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form .woocommerce-cart-form__actions .button[name="update_cart"]:disabled{opacity:.55;cursor:default}

/* ------------------------------------------------------------------ coupon field (in the totals, or in the form without JS) */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon{box-sizing:border-box;align-items:stretch;gap:8px;padding:0;border:0;background:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .woocommerce-cart-form__actions .coupon{margin:0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .input-text{box-sizing:border-box;flex:1 1 auto;width:auto;min-width:0;height:48px;margin:0;padding:2px 14px 0;border:1px solid #d9dde3;border-radius:12px;background:#fff;box-shadow:none;color:var(--cp-ink);font-family:inherit;font-weight:500;line-height:1.2;text-align:start}
/* 1.1.0 touch C6: the hint «رمز القسيمة» in the grey the side cart uses for it (#797979, 4.35:1 on white); it was #9aa2ad, 2.58:1 */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .input-text::placeholder{color:var(--cp-ink-3);font-weight:400;opacity:1}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .input-text:focus{border-color:var(--cp-steel-4)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .input-text:focus-visible{outline:2px solid var(--cp-steel-3);outline-offset:1px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .button{box-sizing:border-box;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:88px;height:48px;margin:0;padding:3px 18px 0;border:1px solid #bfc5ce;border-radius:12px;background:linear-gradient(150deg,#ffffff 0%,var(--cp-steel-2) 100%);box-shadow:inset 0 1px 0 #fff;color:var(--cp-ink);font-family:inherit;font-size:15px;font-weight:700;line-height:1;text-transform:none;letter-spacing:0;white-space:nowrap;cursor:pointer}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .button:hover{border-color:var(--cp-steel-4)}

/* ------------------------------------------------------------------ totals → summary card */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals{box-sizing:border-box;display:flex;flex-direction:column;margin-top:22px;padding:0;border:0;background:none;box-shadow:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > h2{order:0;margin:0 2px 10px;padding:0;border:0;color:var(--cp-ink);font-size:17px;font-weight:700;line-height:1.4;text-transform:none;letter-spacing:0}
/* avloon-storefront's script adds its own «وفّرت» pill (sale savings only). While this plugin's strip is in the card
   (it shows the full figure, coupon included) the pill steps aside, so the page never shows two different «وفّرت»
   figures. Without the strip the pill shows as before (weight 700: the 800 it asks for is not a loaded font). */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals:has(tr.avl-cp-saved) > .avs-cp-save{display:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .avs-cp-save{order:0;margin:0 0 10px;font-weight:500}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .avs-cp-save b{font-weight:700}

body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table{order:0;display:block;box-sizing:border-box;width:100%;margin:0;padding:0;border:1px solid var(--cp-line);border-radius:var(--cp-radius);border-collapse:separate;border-spacing:0;background:var(--cp-card);box-shadow:var(--cp-shadow);overflow:hidden}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody{display:block;margin:-1px 0 0;padding:0;border:0;background:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:56px;margin:0 var(--cp-pad);padding:10px 0;border:0;border-top:1px dashed #d9dde3;background:none}
/* same condition as avloon-storefront: without a coupon «المجموع» repeats «الإجمالي» and stays hidden */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody:has(> tr.avlr):not(:has(> tr.cart-discount)) > tr.cart-subtotal{display:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr > th{display:block;flex:0 1 auto;box-sizing:border-box;width:auto;min-width:0;margin:0;padding:0;border:0;background:none;color:var(--cp-ink-2);font-size:15px;font-weight:500;line-height:1.4;text-align:start;text-transform:none;letter-spacing:0;white-space:normal}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr > td{display:block;flex:0 1 auto;box-sizing:border-box;width:auto;min-width:0;margin:0;margin-inline-start:auto;padding:0;border:0;background:none;color:var(--cp-ink);font-size:15px;font-weight:700;line-height:1.4;text-align:end}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr > td::before{content:none;display:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr > td .woocommerce-Price-amount{color:inherit;font-size:inherit;font-weight:inherit}

/* coupon row: tag icon, code chip, [حذف] beside the label, green amount at the end
   (1.1.0 touch C6: [حذف] in the grey of the labels, #4a4f57, 8.4:1 — a 13px link in #797979 is 4.35:1, under the 4.5:1 a link needs) */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount{justify-content:flex-start;gap:4px 10px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > th{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > th::before{content:"";flex:0 0 28px;box-sizing:border-box;width:28px;height:28px;border:1px solid #d5d9df;border-radius:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.6V4.5a1 1 0 0 1 1-1h7.1a1 1 0 0 1 .7.3l8 8a1 1 0 0 1 0 1.4l-7.1 7.1a1 1 0 0 1-1.4 0l-8-8a1 1 0 0 1-.3-.7z'/%3E%3Ccircle cx='8' cy='8' r='1.4'/%3E%3C/svg%3E") center / 15px 15px no-repeat,linear-gradient(150deg,#ffffff,var(--cp-steel-2))}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount .avl-cp-code{display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:3px 9px 1px;border:1px dashed var(--cp-steel-4);border-radius:7px;background:var(--cp-steel-1);color:var(--cp-ink);font-size:14px;font-weight:700;line-height:1.3;letter-spacing:.3px;text-transform:none;direction:ltr}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td{display:contents}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > .woocommerce-Price-amount{order:3;margin-inline-start:auto;color:var(--cp-green);font-size:15px;font-weight:700;white-space:nowrap}
/* same look as the «الخصم» row above it, where the store prints the currency as plain text */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > .woocommerce-Price-amount .woocommerce-Price-currencySymbol{font-size:inherit;font-weight:inherit}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > a.woocommerce-remove-coupon{order:2;margin:-13px 0;padding:13px 6px;color:var(--cp-ink-2);font-size:13px;font-weight:400;line-height:1.4;text-decoration:underline;text-underline-offset:3px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > a.woocommerce-remove-coupon:hover{color:var(--cp-ink)}

/* «قبل الخصم» / «الخصم» rows of avloon-storefront (inline styles there: "vs") */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avlr > td del{color:var(--cp-ink-3) !important;font-size:15px;text-decoration:line-through}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avlr > td > span{color:var(--cp-green);font-weight:700 !important}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avlr > th > span{display:inline-block;margin-inline-start:4px;padding:3px 7px 1px;border:1px solid #d5d9df;border-radius:7px;background:linear-gradient(150deg,#ffffff,var(--cp-steel-2));color:var(--cp-ink-2) !important;font-size:12px !important;line-height:1.3}

/* shipping rows (WooCommerce's, and the «مجاني» row avloon-storefront adds) */
/* the Customizer draws this label on th::after (th itself is font-size:0!important); inline-block keeps its first letter from joining the hidden text */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping > th::after{display:inline-block;color:var(--cp-ink-2);font-size:15px;font-weight:500}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avs-cp-ship > td b{color:var(--cp-green);font-weight:700}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avs-cp-ship > td small{display:block;margin-top:2px;color:var(--cp-ink-2);font-size:13px;font-weight:400;line-height:1.4}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.woocommerce-shipping-totals{align-items:flex-start}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.woocommerce-shipping-totals > th{padding-top:2px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.woocommerce-shipping-totals > td{flex:1 1 60%;font-weight:500}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping ul#shipping_method{margin:0;padding:0;list-style:none;text-align:inherit}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping ul#shipping_method li{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:32px;margin:0;padding:0;text-indent:0;line-height:1.4}
/* several methods to choose from: the radio buttons form one column, and the lines under them follow it */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.woocommerce-shipping-totals > td:has(input[type="radio"]){text-align:start}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.woocommerce-shipping-totals > td:has(input[type="radio"]) ul#shipping_method li{justify-content:flex-start}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping ul#shipping_method li input{flex:0 0 auto;margin:0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping ul#shipping_method li label{margin:0;color:var(--cp-ink);font-size:15px;font-weight:500;line-height:1.4}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping ul#shipping_method li label .woocommerce-Price-amount{font-weight:700}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping .woocommerce-shipping-destination,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping .woocommerce-shipping-contents{margin:4px 0 0;color:var(--cp-ink-2);font-size:13px;font-weight:400;line-height:1.5}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping .woocommerce-shipping-calculator{margin:4px 0 0;font-weight:400}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping .shipping-calculator-button{display:inline-block;padding:6px 0;color:var(--cp-ink);font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--cp-steel-4)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.shipping .shipping-calculator-form{margin-top:8px;text-align:start}

/* a note row the cart settings can print instead of shipping (one cell across the card) */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.__no-shipping-text > td{flex:1 1 100%;margin:0;color:var(--cp-ink-2);font-size:13px;font-weight:400;font-style:normal;line-height:1.6;text-align:start}

/* total row */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total{min-height:66px;border-top:1px solid var(--cp-line)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total > th{color:var(--cp-ink);font-size:15px;font-weight:700}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total > td{display:flex;flex-direction:column;align-items:flex-end;gap:1px;font-size:19px;font-weight:700;line-height:1.25}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total > td strong{font-size:19px;font-weight:700;line-height:1.25}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total > td small{color:var(--cp-ink-2);font-size:13px;font-weight:400}
/* the Customizer prints «شامل ضريبة القيمة المضافة» here at 10.5px: same text, readable size */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.order-total > td::after{display:block;margin:0;color:var(--cp-ink-3);font-size:13px;font-weight:400;line-height:1.4}

/* «وفّرت X» strip closes the card */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avl-cp-saved{display:block;min-height:0;margin:0;padding:0;border-top:1px solid var(--cp-green-line);background:var(--cp-green-bg)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avl-cp-saved > td{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0;padding:2px var(--cp-pad) 0;color:var(--cp-green);font-size:15px;font-weight:700;line-height:1.2;text-align:center}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.avl-cp-saved .avl-cp-ico{flex:0 0 18px;display:block;width:18px;height:18px;margin-top:-2px}

/* ------------------------------------------------------------------ pay card: express pay, total + checkout, marks */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout{order:10;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;margin:12px 0 0;padding:10px var(--cp-pad) var(--cp-pad);border:1px solid #dfe2e7;border-radius:var(--cp-radius);background:var(--cp-card);box-shadow:0 1px 2px rgba(17,18,20,.04),0 10px 28px rgba(17,18,20,.07)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout::before,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout::after{content:none;display:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > *{order:6;flex:0 0 100%;min-width:0}

/* the store's own note for this block (cart settings), when set: stays above the buttons */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .rey-cart-customText{order:0;margin:6px 0;color:var(--cp-ink-2);font-size:14px;line-height:1.6}

/* express pay first: only the container is arranged here; the Stripe plugin decides which buttons exist */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container{order:1;flex:0 0 100%;margin:0;padding:0;border:0;background:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{display:flex;flex-direction:column;margin:0;padding:0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li.wc-stripe-payment-method{margin:0;padding:0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li[class*="payment_method_stripe_"]{order:1}
/* space under a method only while it shows something (a button or its loading placeholder): no gap when it is absent */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li[class*="payment_method_stripe_"]:has(.payment-box > div > *),
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li[class*="payment_method_stripe_"]:has(.wc-stripe-express-skeleton){margin-block:6px 4px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li.wc-stripe-payment-method.or{order:2;margin:2px 0 0;color:var(--cp-ink-3)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods > li.wc-stripe-payment-method.or .wc-stripe-cart-or{margin:0;color:var(--cp-ink-3);text-align:center}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container .wc-stripe-express-skeleton{border-radius:14px}
/* the button itself is drawn by the Stripe / Google script inside this box (its height is that plugin's setting):
   only the corners are rounded here, to match the checkout button. display is never touched. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .wc-stripe-cart-checkout-container .payment-box > [id$="-cart-button"]{border-radius:14px;overflow:hidden}

/* the large total. It and the button carry 6px above and below, so they keep a gap if a long amount pushes the
   button onto its own line */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand{order:2;flex:0 1 auto;display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:6px 0;margin-inline-end:14px;text-align:start}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand .avl-cp-grand__label{color:var(--cp-ink-2);font-size:14px;font-weight:500;line-height:1.2}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand .avl-cp-grand__amount{color:var(--cp-ink);font-size:clamp(24px,7.6vw,30px);font-weight:700;line-height:1;letter-spacing:-.3px;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand .avl-cp-grand__amount .woocommerce-Price-amount{color:inherit;font-size:inherit;font-weight:inherit}

/* checkout button: black, with an arrow that points forward (left in Arabic, right in English).
   min-width:max-content — the label is never squeezed: when it does not fit beside the total (a longer label, a long
   amount in another currency) the button moves to its own full-width line under the total. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button{order:3;flex:1 1 130px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:max-content;height:58px;margin:6px 0;padding:3px 14px 0;border:0;border-radius:14px;background:var(--cp-ink);box-shadow:0 6px 16px rgba(17,18,20,.18);color:#fff;font-family:inherit;font-size:17px;font-weight:700;line-height:1;text-align:center;text-decoration:none;text-transform:none;letter-spacing:0;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button::after{content:"";flex:0 0 20px;width:20px;height:20px;margin-top:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / 20px 20px no-repeat}
body.avl-cui-cartpage:not(#avl-cui):not(.rtl) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button::after{transform:scaleX(-1)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button:hover{background:#000;color:#fff}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button:focus-visible{outline:2px solid var(--cp-steel-4);outline-offset:2px}

/* tamara's own widget: untouched, placed under the pay row */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > tamara-widget{order:4;flex:0 0 100%;display:block}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > tamara-widget:defined{margin-top:12px}

/* payment marks */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks{order:5;flex:0 0 100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:8px 0 0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark{box-sizing:border-box;display:inline-flex;align-items:center;gap:3px;height:28px;padding:2px 9px 0;border:1px solid #dde0e5;border-radius:7px;background:#fff;color:#3d4249;font-size:13px;font-weight:500;line-height:1;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark .avl-cp-ico{display:block;width:12px;height:12px;margin-top:-3px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark--visa{font-weight:700;letter-spacing:.6px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark--tamara{font-weight:700}

/* ------------------------------------------------------------------ coupon in the totals (avloon-storefront moves it here)
 * No coupon applied: its script shows the link «عندك كود خصم؟» and opens the field on tap. Coupon applied: the field shows.
 * The link keeps the colour the store's own CSS gives it (grey, !important there); the open field sits in a white card
 * like everything else on the page. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .avs-cp-coupon{order:20;align-self:center;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:10px 0 0;padding:2px 14px 0;border:0;background:none;font-family:inherit;font-size:14px;font-weight:500;line-height:1.2;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--cp-steel-4);cursor:pointer}
/* 1.1.0 touch C3: the side padding follows the other cards (--cp-pad: 16px, 14px under 360px, 20px on a computer), so the
   field and «تطبيق» start and end on the same lines as the rows of the cards above; it was 12px at every width (4px, 2px, 8px off). */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .coupon{order:21;margin:12px 0 0;padding:12px var(--cp-pad);border:1px solid var(--cp-line);border-radius:var(--cp-radius);background:var(--cp-card);box-shadow:var(--cp-shadow)}

/* ------------------------------------------------------------------ phone bar of avloon-storefront (shows while the checkout button is off screen) */
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar{gap:14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #dfe2e7;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -10px 28px rgba(17,18,20,.07);font-family:"Tajawal",sans-serif}
/* hidden state: the bar waits just under the screen; its shadow must not show at the bottom edge */
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar:not(.is-on){box-shadow:none}
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar .avs-cp-bar__sum{flex:0 0 auto;gap:4px;line-height:1.2}
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar .avs-cp-bar__sum small{color:var(--cp-ink-2);font-size:13px;font-weight:500;line-height:1.2}
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar .avs-cp-bar__sum b{color:var(--cp-ink);font-size:clamp(18px,6.2vw,24px);font-weight:700;line-height:1;letter-spacing:-.2px;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar a{flex:1 1 auto;box-sizing:border-box;gap:10px;min-width:0;height:54px;padding:3px 14px 0;border-radius:14px;background:var(--cp-ink);box-shadow:0 6px 16px rgba(17,18,20,.18);font-size:17px;font-weight:700;line-height:1;white-space:nowrap}
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar a::after{content:"";flex:0 0 20px;width:20px;height:20px;margin-top:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / 20px 20px no-repeat}
body.avl-cui-cartpage:not(#avl-cui):not(.rtl) .avs-cp-bar a::after{transform:scaleX(-1)}

/* ------------------------------------------------------------------ notices */
/* WooCommerce messages (coupon applied, errors, item removed): same boxes, drawn as compact cards */
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){--padding:12px;--padding-start:42px;box-sizing:border-box;margin:0 0 10px;padding:12px 14px;padding-inline-start:42px;border:1px solid var(--cp-line);border-radius:14px;background:var(--cp-card);box-shadow:var(--cp-shadow);color:var(--cp-ink);font-family:"Tajawal",sans-serif;font-size:14px;font-weight:500;line-height:1.6;text-align:start}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info)::before{inset-inline:14px auto;top:calc(50% - .5em);font-size:16px}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart .woocommerce-message{border-color:var(--cp-green-line);background:var(--cp-green-bg);color:var(--cp-green)}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart .woocommerce-message::before{color:var(--cp-green)}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart .woocommerce-error{border-color:#f2c6d0;background:#fdf1f3;color:#a40030}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart .woocommerce-error::before{color:#a40030}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) li{margin:0;padding:0}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) li + li{margin-top:4px}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:not(.button){margin:0 6px;color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart .wc-block-components-notice-banner{margin:0 0 10px;border-radius:14px;font-size:14px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .woocommerce-notices-wrapper:not(:empty){margin:0 0 2px}

/* ------------------------------------------------------------------ cross-sells (when the store shows them): spacing and heading only */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cross-sells{margin-top:28px}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cross-sells > h2{margin:0 2px 12px;color:var(--cp-ink);font-size:17px;font-weight:700;line-height:1.4;text-transform:none;letter-spacing:0}

/* ------------------------------------------------------------------ empty cart */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart{box-sizing:border-box;margin:0;padding:36px 20px 32px;border:1px solid var(--cp-line);border-radius:var(--cp-radius);background:var(--cp-card);box-shadow:var(--cp-shadow);text-align:center}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .rey-emptyCart-icon{margin:0 0 14px;color:var(--cp-steel-4)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .rey-emptyCart-icon svg{font-size:52px;opacity:1}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .rey-emptyCart-title h2{margin:0 0 18px;color:var(--cp-ink);font-size:19px;font-weight:700;line-height:1.5}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .rey-emptyCart-content p{margin:0}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .return-to-shop .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:200px;height:52px;padding:3px 24px 0;border:0;border-radius:14px;background:var(--cp-ink);color:#fff;font-size:16px;font-weight:700;line-height:1;text-decoration:none;text-transform:none;letter-spacing:0}

/* ------------------------------------------------------------------ widths */
/* under 384px the five payment marks need tighter chips to stay on one row (360 and 375 are the common phones) */
@media (max-width:383px){
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks{flex-wrap:nowrap;gap:4px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark{padding-inline:6px}
}
@media (max-width:359px){
	body.avl-cui-cartpage{--cp-thumb:88px;--cp-pad:14px}
	body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent{padding-inline-start:12px}
	body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price{padding-inline-start:12px}
	body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-subtotal{font-size:19px}
	/* 320px: the coupon row, the total + checkout row and the payment marks each stay on one line */
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount{gap:4px 6px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > th{gap:4px 6px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > th::before{flex-basis:24px;width:24px;height:24px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > a.woocommerce-remove-coupon{padding-inline:2px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand{margin-inline-end:10px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand .avl-cp-grand__label{font-size:13px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button{flex-basis:120px;gap:8px;padding-inline:10px;font-size:16px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks .avl-cp-mark{padding-inline:4px;font-size:12px}
}
/* narrower than any current phone (folded screens): the marks may wrap again rather than leave the card */
@media (max-width:319px){
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-marks{flex-wrap:wrap}
}
@media (max-width:1024px){
	body.avl-cui-cartpage:not(#avl-cui) .avs-cart{max-width:668px}
}
@media (min-width:1025px){
	body.avl-cui-cartpage{--cp-thumb:128px;--cp-pad:20px}
	body.avl-cui-cartpage:not(#avl-cui) .avs-cart{padding-block:36px 90px}
	body.avl-cui-cartpage:not(#avl-cui) .avs-cart__title{margin-bottom:18px;font-size:28px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .rey-cartPage-inner{display:flex;align-items:flex-start;gap:32px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .rey-cartPage-inner > .woocommerce-cart-formWrapper{flex:1 1 auto;width:auto;min-width:0;margin:0}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .rey-cartPage-inner > .cart_totals{flex:0 0 404px;width:404px;margin-top:0}
	body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent{padding-inline-start:18px;font-size:16px}
	body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td.product-price{padding-inline-start:18px;font-size:16px}
	body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > .avl-cp-grand .avl-cp-grand__amount{font-size:30px}
}

/* ================================================================== 1.1.0 — finishing touches
 * Small touches on the approved design. No content, order or wording changes. At rest no box moves (every element was
 * measured before / after at 320–1440px, Arabic and English); the one intended change of size is the coupon field of
 * touch C3. The express-pay buttons (Stripe / Google) are not addressed by any rule below. */

/* touch C1 — pressed feedback. The site switches the browser's own tap flash off, and apart from − / + nothing on this
   page answered a finger: «إتمام الطلب», the trash, «تطبيق», [حذف], «عندك كود خصم؟» showed no reaction to a tap. While
   the finger is down the control darkens one step (the black buttons sink 1px); at rest nothing differs. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .wc-proceed-to-checkout > a.checkout-button:active,
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar a:active{background:#000;box-shadow:0 2px 6px rgba(17,18,20,.2);transform:translateY(1px)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .return-to-shop .btn:active{background:#000;transform:translateY(1px)}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item a.remove:active{background-color:var(--cp-steel-3)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .button:active,
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form .woocommerce-cart-form__actions .button[name="update_cart"]:active{background:var(--cp-steel-2);box-shadow:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > a.woocommerce-remove-coupon:active,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .avs-cp-coupon:active{opacity:.6}

/* touch C2 — − / + answer a finger on 44 × 48px instead of 40 × 40px: an invisible area over the track's own padding
   (outwards and above / below; it ends 1px before the number field, so the edge between a button and the field
   answers exactly as before). Nothing is drawn and no box moves. The buttons stay position:static; the area is
   measured from the track (div.rey-qtyField is position:relative above). */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control::before{content:"";position:absolute;inset-block:0;width:43px}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control.--minus::before{inset-inline-start:0}
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-quantity div.rey-qtyField .cartBtnQty-control.--plus::before{inset-inline-end:0}

/* touch C4 — keyboard focus (Tab on a computer): one ring in the design's own ink instead of the browser's default
   blue ring, on the controls that had no ring of their own. Taps are not affected (:focus-visible). */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-nameContent a:not(.remove):focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > table.shop_table > tbody > tr.cart-discount > td > a.woocommerce-remove-coupon:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .cart_totals > .avs-cp-coupon:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon .button:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form .woocommerce-cart-form__actions .button[name="update_cart"]:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .avs-cp-bar a:focus-visible,
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage.rey-emptyCart .return-to-shop .btn:focus-visible{outline:2px solid var(--cp-ink);outline-offset:2px}
/* the picture's link fills a tile that clips what leaves it: its ring is drawn inside the tile */
body.avl-cui-cartpage:not(#avl-cui) .woocommerce-cart-form tr.woocommerce-cart-form__cart-item .woocommerce-cart-form__cart-thumbnail a:focus-visible{outline:2px solid var(--cp-ink);outline-offset:-2px;border-radius:15px}

/* touch C5 — links inside a notice («تراجع؟» after a product was removed by mistake): 44px tap height instead of 22px.
   An invisible area inside the notice's own padding; the text and the box keep their place. */
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:not(.button){position:relative}
body.avl-cui-cartpage:not(#avl-cui) .avs-cart :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:not(.button)::after{content:"";position:absolute;inset:-11px -6px}

/* ================================================================== 1.1.0 — the coupon answer, under the field
 * assets/coupon-inline.js takes WooCommerce's answer to a coupon (applied, not valid, removed) from the top of the
 * page and writes it into div.avl-co-coupon__msg, the last child of this coupon box; it marks the box
 * data-avl-coupon="cart" and .is-ok / .is-err. The line takes the full width under field + button (the box is a flex
 * row with an 8px gap). Without the script nothing here matches. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"]{flex-wrap:wrap}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"] > .avl-co-coupon__msg{flex:0 0 100%;box-sizing:border-box;min-width:0;margin:0;padding:0;color:var(--cp-ink-2);font-size:13px;font-weight:500;line-height:1.55;text-align:start;overflow-wrap:anywhere}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"] > .avl-co-coupon__msg:empty{display:none}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"].is-ok > .avl-co-coupon__msg{color:var(--cp-green)}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"].is-err > .avl-co-coupon__msg{color:#b8002e}
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"].is-err .input-text{border-color:var(--cp-red)}
/* 1.1.0 review: at 320-350px flex-wrap let «تطبيق» drop under the field (card 74 -> 130px). flex-basis 0 keeps field +
   button on one line; the answer line (flex:0 0 100%) still takes the next line. */
body.avl-cui-cartpage:not(#avl-cui) .rey-cartPage .coupon[data-avl-coupon="cart"] > .input-text{flex:1 1 0%}
