/* R9 Polish 2 — iteration 2 (2026-10-06). Loaded after polish2.css by r9-polish2.php (R9P2_IT2; test gate ?r9p2=it2 + r9-test UA).
   CSS only. Every rule is scoped to an exact existing class; nothing targets r9hd-/r9hm-/r9pp- markup or generic card children.
   Never hides, covers or moves any tracking-contract hook. */

/* ═══ Product card ═══ */
/* Instalments on phones: «أو قسّطها مع» is back as context, on one line with the two official logos (label hidden visually only below 380px) */
@media (max-width:719px){
	html body .wd-product:not(.wd-hover-small) .wrap-price .r9g-cardbnpl,html body .r9g-rail .r9g-card .r9g-cardbnpl{--r9-bnpl-img:16px;flex-wrap:nowrap!important;column-gap:5px!important}
	html body .wd-product:not(.wd-hover-small) .r9g-cardbnpl>span:first-child,html body .r9g-rail .r9g-card .r9g-cardbnpl>span:first-child{position:static!important;width:auto!important;height:auto!important;clip:auto!important;flex:0 1 auto!important;min-width:0;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important}
	html body .wd-product:not(.wd-hover-small) .r9g-cardbnpl .r9g-cardbnpl__logos,html body .r9g-rail .r9g-card .r9g-cardbnpl .r9g-cardbnpl__logos{gap:4px!important}
	html body .wd-product .r9g-cardbnpl .r9g-cardbnpl__logos img[alt]{height:16px!important}
}
@media (max-width:379px){
	html body .wd-product:not(.wd-hover-small) .r9g-cardbnpl>span:first-child,html body .r9g-rail .r9g-card .r9g-cardbnpl>span:first-child{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important}
}
/* Red stays for actions: the weekly-deal tag on card photos is ink (the deal itself is unchanged) */
html body .wd-product:not(.wd-hover-small) .r9g-cardcamp .r9g-cardcamp__tag{background:#16181D!important;color:#fff!important}
@media (min-width:1024px){html body .wd-product:not(.wd-hover-small) .wd-add-btn>a.add_to_cart_button{min-height:44px!important}}

/* ═══ Home ═══ */
/* Desktop weekly deals plate: timer and CTA read as one cluster at the end */
@media (min-width:1025px){html body .r9g-week .r9g-week__head{grid-template-columns:74px minmax(0,1fr) minmax(360px,auto) auto!important;column-gap:16px!important}}
/* Phones: the strip under the dark footer (space kept for the tab bar) is footer-coloured, not a white band */
@media (max-width:1024px){html body.r9c-has-tabbar,html body.r9c-no-tabbar{background-color:#16181D!important}html body.r9c-has-tabbar>.wd-page-wrapper,html body.r9c-no-tabbar>.wd-page-wrapper{background-color:#fff}}

/* ═══ Account ═══ */
/* One active-tab signal: an ink segment with white text (the red underline from iteration 1 is removed) */
html body .r9acc-tabs .r9acc-tabs__thumb::after{content:none!important;display:none!important}
html body .r9acc-tabs .r9acc-tabs__thumb{background:#16181D!important;box-shadow:0 4px 12px -6px rgba(22,24,29,.5)!important}
html body .r9acc-tabs a[aria-selected="true"]{color:#fff!important;position:relative;z-index:1}
html body .r9acc-tabs a:focus-visible{outline:2px solid #C8102E!important;outline-offset:2px}
/* Desktop panel: the thin red edge read as a rendering fault; the brand red becomes a soft glow */
@media (min-width:1024px){html body .r9acc-side::before{background:radial-gradient(70% 55% at 0% 100%,rgba(200,16,46,.22),transparent 70%)!important}}

/* ═══ Side cart ═══ */
/* Items sit on a soft tray as white cards, so the space above the pinned totals is no longer a white void */
html body .cart-widget-side .widget_shopping_cart,html body .cart-widget-side .widget_shopping_cart_content{background:#F3F4F6!important}
html body .cart-widget-side .shopping-cart-widget-body{padding:8px 8px 0!important}
html body .cart-widget-side .woocommerce-mini-cart .woocommerce-mini-cart-item{padding-inline:12px!important}
html body .cart-widget-side .widget_shopping_cart_content>.shopping-cart-widget-footer{flex:0 0 auto!important;margin-top:auto!important;background:#fff!important}
html body .cart-widget-side .woocommerce-mini-cart .woocommerce-mini-cart-item{margin:0 0 10px!important;border:1px solid #E3E5E8!important;border-radius:14px!important;background:#fff!important}

/* ═══ Cart ═══ */
@media (max-width:767px){
	html body.woocommerce-cart table.cart tr.cart_item>td.product-name{padding-top:2px!important}
	html body.woocommerce-cart table.cart tr.cart_item>td.product-name a{font-weight:600;line-height:1.45}
}

/* ═══ Checkout ═══ */
/* Toggle rows: question at the start, action link at the end next to its chevron */
@media (max-width:767px){html body.woocommerce-checkout .woocommerce-info .showlogin,html body.woocommerce-checkout .woocommerce-info .showcoupon{margin-inline-start:auto!important;padding-inline-end:30px!important;font-weight:600!important}}
/* Selected method: one frame, no grey box nested inside the red one */
html body.woocommerce-checkout #payment ul.payment_methods>li.wc_payment_method:has(input:checked) .payment_box{background:transparent!important;padding:8px 0 0!important;margin-top:6px!important;border-top:1px solid rgba(200,16,46,.15)!important;border-radius:0!important}
html body.woocommerce-checkout #payment ul.payment_methods>li.wc_payment_method{min-height:56px;display:flow-root}
/* Phone numbers are typed left-to-right; the field stays aligned with the form */
html body.woocommerce-checkout #billing_phone,html body.woocommerce-checkout #shipping_phone{direction:ltr;text-align:right}
