/* R9 cart totals + checkout order review — one summary system (UX 2026-10-02). Loaded on cart + checkout only, after r9-design.css.
   Grid per row: label at the start (right), value at the end (left), one baseline. Woo's mobile "responsive table" (th hidden, label
   printed by td::before) is undone here: it was the reason labels travelled next to their values. */
.cart_totals table.shop_table,.cart_totals table.shop_table>tbody,table.woocommerce-checkout-review-order-table>tfoot{display:block!important;width:100%!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important}
.cart_totals table.shop_table tr,table.woocommerce-checkout-review-order-table tfoot tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:2px;align-items:baseline;margin:0!important;padding:9px 0!important;border:0!important;background:none!important;width:auto!important}
.cart_totals table.shop_table tr>th,.cart_totals table.shop_table tr>td,
table.woocommerce-checkout-review-order-table tfoot tr>th,table.woocommerce-checkout-review-order-table tfoot tr>td{display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;flex:none!important;line-height:1.5!important;vertical-align:baseline}
.cart_totals table.shop_table tr>td::before,table.woocommerce-checkout-review-order-table tfoot tr>td::before{content:none!important;display:none!important}
/* labels */
.cart_totals table.shop_table tr>th,table.woocommerce-checkout-review-order-table tfoot tr>th{grid-column:1;grid-row:1;text-align:start!important;font-size:14px!important;font-weight:500!important;color:var(--r9-text,#4a4f57)!important;text-transform:none!important;letter-spacing:0!important}
/* values */
.cart_totals table.shop_table tr>td,table.woocommerce-checkout-review-order-table tfoot tr>td{grid-column:2;grid-row:1;text-align:end!important;font-size:15px!important;font-weight:700!important;color:var(--r9-ink,#16181d)!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.cart_totals table.shop_table td .amount,.cart_totals table.shop_table td bdi,
table.woocommerce-checkout-review-order-table tfoot td .amount,table.woocommerce-checkout-review-order-table tfoot td bdi{color:inherit!important;font-weight:inherit!important;font-size:inherit!important}
.cart_totals table.shop_table .woocommerce-Price-currencySymbol,table.woocommerce-checkout-review-order-table tfoot .woocommerce-Price-currencySymbol{font-size:.86em!important;font-weight:600}

/* shipping: value on the row, «method · delivery» caption under the label */
.cart_totals tr.woocommerce-shipping-totals>td:has(.r9ct-ship__v),.cart_totals tr.woocommerce-shipping-totals>td:has(.r9ct-ship__v) :is(ul,li,label),
table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals>td:has(.r9ct-ship__v),table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals>td:has(.r9ct-ship__v) :is(ul,li,label){display:contents!important}
tr.woocommerce-shipping-totals .r9ct-ship__v{grid-column:2;grid-row:1;text-align:end;font-size:15px;font-weight:700;color:var(--r9-ink,#16181d);white-space:nowrap}
tr.woocommerce-shipping-totals .r9ct-ship__v.r9ct-free{color:var(--r9-green,#1e7e34)}
tr.woocommerce-shipping-totals .r9ct-ship__m{grid-column:1/-1;grid-row:2;text-align:start;font-size:12.5px;font-weight:400;line-height:1.5;color:var(--r9-muted,#646973);white-space:normal}
tr.woocommerce-shipping-totals .r9ct-ship__m i{font-style:normal}
tr.woocommerce-shipping-totals .r9ct-ship__gap{grid-column:1/-1;grid-row:3;margin-top:4px;text-align:start;font-size:12.5px;font-weight:500;line-height:1.5;color:var(--r9-text,#4a4f57);white-space:normal}
tr.woocommerce-shipping-totals .r9ct-ship__gap .amount{color:var(--r9-ink,#16181d)!important;font-weight:700}

tr.woocommerce-shipping-totals .woocommerce-shipping-methods{margin:0!important;padding:0!important;list-style:none!important}
tr.woocommerce-shipping-totals .woocommerce-shipping-methods li{margin:0!important;padding:0!important;text-align:end}
tr.woocommerce-shipping-totals .woocommerce-shipping-methods label{margin:0!important;font-weight:inherit;white-space:normal}

/* total: the anchor */
.cart_totals table.shop_table tr.order-total,table.woocommerce-checkout-review-order-table tfoot tr.order-total{margin-top:6px!important;padding:14px 0 12px!important;border-top:1px solid var(--r9-silver,#c9cdd2)!important;align-items:center}
.cart_totals table.shop_table tr.order-total>th,table.woocommerce-checkout-review-order-table tfoot tr.order-total>th{font-size:16px!important;font-weight:700!important;color:var(--r9-ink,#16181d)!important}
.cart_totals table.shop_table tr.order-total>td,table.woocommerce-checkout-review-order-table tfoot tr.order-total>td{display:contents!important}
tr.order-total>td>strong{grid-column:2;grid-row:1;text-align:end;font-size:22px;font-weight:800;line-height:1.25;color:var(--r9-ink,#16181d);white-space:nowrap;font-variant-numeric:tabular-nums}
tr.order-total>td>strong .amount{color:inherit!important;font-weight:inherit!important;font-size:inherit!important}
tr.order-total .includes_tax{grid-column:1/-1;grid-row:2;justify-self:start;text-align:start;display:block;margin:2px 0 0!important;font-size:12.5px!important;font-weight:400!important;line-height:1.5;color:var(--r9-muted,#646973)!important;white-space:normal}
tr.order-total .includes_tax .amount,tr.order-total .includes_tax .amount *{font-size:12.5px!important;font-weight:600!important;color:var(--r9-muted,#646973)!important}

/* savings: a regular row, green */
.cart_totals table.shop_table tr.r9g-tr-saved,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-saved{padding:4px 0 8px!important;border-top:0!important}
.cart_totals table.shop_table tr.r9g-tr-saved>th,.cart_totals table.shop_table tr.r9g-tr-saved>td,.cart_totals table.shop_table tr.r9g-tr-saved .amount,
table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-saved>th,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-saved>td,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-saved .amount{color:var(--r9-green,#1e7e34)!important}
.cart_totals table.shop_table tr.r9g-tr-saved>th,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-saved>th{font-weight:600!important}

/* instalments: one full-width strip, logos inline at the end */
.cart_totals table.shop_table tr.r9g-tr-bnpl,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-bnpl{grid-template-columns:minmax(0,1fr);padding:6px 0 0!important}
.cart_totals table.shop_table tr.r9g-tr-bnpl>td,table.woocommerce-checkout-review-order-table tfoot tr.r9g-tr-bnpl>td{grid-column:1/-1!important;text-align:start!important;white-space:normal!important;font-weight:400!important;font-size:13px!important}
body tr.r9g-tr-bnpl .r9g-bnpl p strong{font-weight:700;white-space:nowrap}
body tr.r9g-tr-bnpl .r9g-bnpl p{text-wrap:balance}
body tr.r9g-tr-bnpl .r9g-bnpl__logos img{border:0!important;padding:0!important;background:none!important;height:18px!important}
body tr.r9g-tr-bnpl .r9g-bnpl__logos img:last-child{height:13px!important}
body tr.r9g-tr-bnpl .r9g-bnpl__logos{gap:12px!important}
body tr.r9g-tr-bnpl .r9g-bnpl{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:10px!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:9px 12px!important;border:1px solid var(--r9-line,#e3e5e8);border-radius:10px;background:#fafbfc;text-align:start!important}
body tr.r9g-tr-bnpl .r9g-bnpl p{flex:1 1 auto;min-width:0;margin:0;text-align:start!important;font-size:13px!important;line-height:1.5;color:var(--r9-text,#4a4f57)}
body tr.r9g-tr-bnpl .r9g-bnpl__logos{flex:none;margin:0!important;gap:6px}

/* CTA */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout{margin-top:16px!important;padding:0!important}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button{min-height:52px;font-size:16px!important;font-weight:700!important;border-radius:var(--r9-r-btn,10px)!important;margin:0!important}

/* checkout review: item rows use the mini-cart row component (image | title / stepper + line price, remove at the top end) */
table.woocommerce-checkout-review-order-table>thead{display:none!important}
table.woocommerce-checkout-review-order-table td.wd-checkout-prod{position:relative;display:grid!important;grid-template-columns:64px minmax(0,1fr);column-gap:12px;align-items:start;padding:14px 0!important;border-bottom:1px solid var(--r9-line-2,#eceef1)!important;text-align:start!important}
table.woocommerce-checkout-review-order-table tbody tr.cart_item{border:0!important;padding:0!important}
table.woocommerce-checkout-review-order-table tbody tr.cart_item:first-child td.wd-checkout-prod{padding-top:4px!important}
.wd-checkout-prod>.wd-checkout-prod-img{grid-column:1;grid-row:1;width:64px!important;height:64px!important;margin:0!important;border-radius:10px!important;overflow:hidden}
.wd-checkout-prod>.wd-checkout-prod-img img{width:100%!important;height:100%!important;object-fit:contain}
.wd-checkout-prod>.wd-checkout-prod-cont{grid-column:2;grid-row:1;display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"t t" "q p";column-gap:12px;row-gap:10px;align-items:center;min-width:0;margin:0!important;padding:0!important}
.wd-checkout-prod-cont>.wd-checkout-prod-title{display:contents!important}
.wd-checkout-prod-title>*{grid-column:1/-1}
.wd-checkout-prod-title>.cart-product-label{grid-area:t;padding-inline-end:40px;font-size:14px!important;font-weight:600!important;line-height:1.5;color:var(--r9-ink,#16181d)!important}
.wd-checkout-prod-cont>.wd-checkout-prod-total{grid-area:p;justify-self:end;margin:0!important;text-align:end;white-space:nowrap}
.wd-checkout-prod-cont>.wd-checkout-prod-total,.wd-checkout-prod-cont>.wd-checkout-prod-total .amount{font-size:16px!important;font-weight:800!important;color:var(--r9-ink,#16181d)!important}
.wd-checkout-prod>.wd-checkout-remove-btn-wrapp{position:absolute;top:6px;inset-inline-end:0;z-index:2;margin:0!important;padding:0!important;width:auto!important}
.wd-checkout-prod a.wd-checkout-remove-btn{display:block!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;font-size:0!important;color:transparent!important}
.wd-checkout-prod a.wd-checkout-remove-btn::before,.wd-checkout-prod a.wd-checkout-remove-btn::after{display:none!important;content:none!important}
.wd-checkout-prod a.wd-checkout-remove-btn:hover{background-color:var(--r9-red-50,#fdecef)!important}
.wd-checkout-prod a.wd-checkout-remove-btn:focus-visible{outline:none;box-shadow:var(--r9-focus,0 0 0 3px #fff,0 0 0 5px #16181d)!important}
.wd-checkout-prod-title>div.quantity{grid-area:q;position:relative;z-index:1;display:inline-flex!important;align-items:stretch;width:auto!important;margin:0!important;border:1.5px solid #7b818b!important;border-radius:10px!important;overflow:hidden;background:#fff!important}
.wd-checkout-prod-title>div.quantity .minus,.wd-checkout-prod-title>div.quantity .plus{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background-color:#fff!important;background-size:18px 18px!important;background-position:center!important;background-repeat:no-repeat!important;font-size:0!important;color:transparent!important;box-shadow:none!important}
.wd-checkout-prod-title>div.quantity .plus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")!important}
.wd-checkout-prod-title>div.quantity .minus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")!important}
.wd-checkout-prod-title>div.quantity :is(.minus,.plus):hover{background-color:var(--r9-bg,#f3f4f6)!important}
.wd-checkout-prod-title>div.quantity :is(.minus,.plus):focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--r9-ink,#16181d)!important}
.wd-checkout-prod-title>div.quantity input.qty{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-inline:1px solid var(--r9-line,#e3e5e8)!important;border-radius:0!important;background:#fff!important;font-size:16px!important;font-weight:700!important;color:var(--r9-ink,#16181d)!important;text-align:center;-moz-appearance:textfield}
.wd-checkout-prod-title>div.quantity input.qty::-webkit-inner-spin-button,.wd-checkout-prod-title>div.quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* free-shipping bar on the cart page: solid progress, green when reached (same as the side cart) */
.woocommerce-cart .wd-free-progress-bar .progress-area{padding:0!important;box-sizing:border-box!important;height:6px!important;border-radius:3px!important;background:var(--r9-line,#e3e5e8)!important;overflow:hidden}
.woocommerce-cart .wd-free-progress-bar .progress-bar{height:100%!important;margin:0!important;background-image:none!important;background-color:var(--r9-text,#4a4f57)!important;border-radius:3px!important;animation:none!important}
.woocommerce-cart .wd-free-progress-bar .progress-bar[style*="100%"]{background-color:var(--r9-green,#1e7e34)!important}
.woocommerce-cart .wd-free-progress-bar:has(.progress-bar[style*="100%"]) .progress-msg{color:var(--r9-green,#1e7e34);font-weight:600}
table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal{padding-top:14px!important}

@media (min-width:1025px){
	.cart_totals table.shop_table tr>th,table.woocommerce-checkout-review-order-table tfoot tr>th{font-size:15px!important}
	.cart_totals table.shop_table tr>td,table.woocommerce-checkout-review-order-table tfoot tr>td,tr.woocommerce-shipping-totals .r9ct-ship__v{font-size:16px!important}
	tr.order-total>td>strong{font-size:24px}
	.cart_totals table.shop_table tr.order-total>th,table.woocommerce-checkout-review-order-table tfoot tr.order-total>th{font-size:17px!important}
}
body .cart_totals table.shop_table tr.order-total .includes_tax .amount,body .cart_totals table.shop_table tr.order-total .includes_tax .amount *,body table.woocommerce-checkout-review-order-table tfoot tr.order-total .includes_tax .amount,body table.woocommerce-checkout-review-order-table tfoot tr.order-total .includes_tax .amount *{font-size:12.5px!important;font-weight:600!important;color:var(--r9-muted,#646973)!important}

.woocommerce-cart .wd-free-progress-bar .progress-msg{margin:0 0 8px!important}
.woocommerce-cart .wd-free-progress-bar .progress-msg .amount{color:var(--r9-ink,#16181d)!important;font-weight:700}
/* instalment strip on phones: one text line, logos under it at the start */
@media (max-width:479px){
	body tr.r9g-tr-bnpl .r9g-bnpl{flex-wrap:wrap!important;gap:6px 12px!important}
	body tr.r9g-tr-bnpl .r9g-bnpl p{flex:1 1 100%}
	body tr.r9g-tr-bnpl .r9g-bnpl__logos{margin-inline-end:auto!important}
}
/* cart page item rows: same stepper + remove as the side cart and checkout */
.woocommerce-cart .woocommerce-cart-form .quantity{display:inline-flex!important;align-items:stretch;border:1.5px solid #7b818b!important;border-radius:10px!important;overflow:hidden;background:#fff!important}
.woocommerce-cart .woocommerce-cart-form .quantity .minus,.woocommerce-cart .woocommerce-cart-form .quantity .plus{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background-color:#fff!important;background-size:18px 18px!important;background-position:center!important;background-repeat:no-repeat!important;font-size:0!important;color:transparent!important;box-shadow:none!important}
.woocommerce-cart .woocommerce-cart-form .quantity .plus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")!important}
.woocommerce-cart .woocommerce-cart-form .quantity .minus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")!important}
.woocommerce-cart .woocommerce-cart-form .quantity :is(.minus,.plus):hover{background-color:var(--r9-bg,#f3f4f6)!important}
.woocommerce-cart .woocommerce-cart-form .quantity :is(.minus,.plus):focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--r9-ink,#16181d)!important}
.woocommerce-cart .woocommerce-cart-form .quantity input.qty{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-inline:1px solid var(--r9-line,#e3e5e8)!important;border-radius:0!important;background:#fff!important;font-size:16px!important;font-weight:700!important;color:var(--r9-ink,#16181d)!important;text-align:center;-moz-appearance:textfield}
.woocommerce-cart .woocommerce-cart-form .quantity input.qty::-webkit-inner-spin-button,.woocommerce-cart .woocommerce-cart-form .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.woocommerce-cart .woocommerce-cart-form .product-remove a.remove{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:0!important;border-radius:10px!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center/20px 20px no-repeat!important;font-size:0!important;color:transparent!important}
.woocommerce-cart .woocommerce-cart-form .product-remove a.remove::before,.woocommerce-cart .woocommerce-cart-form .product-remove a.remove::after{display:none!important;content:none!important}
.woocommerce-cart .woocommerce-cart-form .product-remove a.remove:hover{background-color:var(--r9-red-50,#fdecef)!important}
.woocommerce-cart .woocommerce-cart-form .product-remove a.remove:focus-visible{outline:none;box-shadow:var(--r9-focus,0 0 0 3px #fff,0 0 0 5px #16181d)!important}
.woocommerce-cart .woocommerce-cart-form .product-subtotal,.woocommerce-cart .woocommerce-cart-form .product-subtotal .amount{font-weight:800!important;color:var(--r9-ink,#16181d)!important}

/* nudge: the number carries the emphasis (beats the generic «inherit» rule on td amounts) */
body .cart_totals table.shop_table tr.woocommerce-shipping-totals .r9ct-ship__gap .amount,body .cart_totals table.shop_table tr.woocommerce-shipping-totals .r9ct-ship__gap .amount *,
body table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals .r9ct-ship__gap .amount,body table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals .r9ct-ship__gap .amount *{font-weight:700!important;color:var(--r9-ink,#16181d)!important;font-size:12.5px!important}

/* ═══ visual-v2 (2026-10-02): تنبيها «عميل سابق؟» و«لديك قسيمة خصم؟» — صفوف كاملة العرض بأيقونة، والبطاقة كلها قابلة للنقر ═══ */
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle){display:block;width:100%;margin:0 0 10px!important}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info{position:relative;display:grid!important;grid-template-columns:40px minmax(0,1fr) 20px;grid-template-rows:auto auto;column-gap:12px;align-items:center;width:100%;box-sizing:border-box;min-height:64px;margin:0!important;padding:11px 14px!important;border:1px solid var(--r9-line,#e3e5e8)!important;border-radius:16px!important;background:#fff!important;color:var(--r9-ink,#16181d)!important;font-size:14.5px;font-weight:700;line-height:1.35;text-align:start;box-shadow:0 1px 2px rgba(22,24,29,.04);transition:border-color .15s,box-shadow .15s}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info::before{content:""!important;position:static!important;grid-column:1;grid-row:1/3;display:block;width:40px;height:40px;margin:0!important;border-radius:12px;background:var(--r9-soft,#f7f7f8) var(--r9v-ic) center/22px no-repeat;font-size:0!important;transform:none!important}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{--r9v-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E")}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{--r9v-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M9 15l6-6M9.5 9.5h.01M14.5 14.5h.01'/%3E%3C/svg%3E")}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a{grid-column:2;grid-row:2;justify-self:start;display:inline!important;min-height:0!important;margin:2px 0 0!important;padding:0!important;color:var(--r9-red,#c8102e)!important;font-size:13.5px;font-weight:600;text-decoration:none!important}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a::before{content:"";position:absolute;inset:0;border-radius:16px}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a::after{content:"";position:absolute;top:50%;inset-inline-end:14px;width:20px;height:20px;margin-top:-10px;background:var(--r9-muted,#5c616b);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .18s}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info>a[aria-expanded=true]::after{transform:rotate(-90deg)}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info:hover{border-color:#c9cdd3!important;box-shadow:0 4px 14px rgba(22,24,29,.07)}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info:has(a:focus-visible){box-shadow:var(--r9-focus,0 0 0 3px #fff,0 0 0 5px #16181d)}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a:focus-visible{outline:none!important;box-shadow:none!important}
/* النماذج التي تفتحها البطاقتان */
.woocommerce-checkout form.checkout_coupon,.woocommerce-checkout form.woocommerce-form-login{margin:0 0 12px!important;padding:16px!important;border:1px solid var(--r9-line,#e3e5e8)!important;border-radius:16px!important;background:#fff}
.woocommerce-checkout form.checkout_coupon :is(input.input-text,button){min-height:48px;border-radius:12px!important}
@media (prefers-reduced-motion:reduce){.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info,.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info>a::after{transition:none}}
.woocommerce-checkout .wd-checkout-login .woocommerce-form-login-toggle{margin-bottom:0!important}
.woocommerce-checkout .wd-checkout-login:has(.woocommerce-form-login-toggle)+.wd-checkout-coupon{margin-top:-20px}
/* iter2: أخفّ ارتفاعًا، وسهم «يفتح هنا» (لأسفل) بدل سهم التنقّل؛ وفي الشاشات الواسعة النص والرابط في سطر واحد */
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info{min-height:58px;padding:8px 12px!important;grid-template-columns:38px minmax(0,1fr) 20px}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info::before{width:38px;height:38px}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a::after{transform:rotate(-90deg)}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info>a[aria-expanded=true]::after{transform:rotate(90deg)}
@media (min-width:769px){
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info{display:flex!important;align-items:center;gap:6px}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info::before{margin-inline-end:8px!important}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;font-size:14.5px}
.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) .woocommerce-info>a::after{position:static;margin:0;width:18px;height:18px;background:var(--r9-red,#c8102e)}
}
/* iter3: desktop — the two cards side by side (each grows to full width when the other is absent) */
@media (min-width:1025px){
.woocommerce-checkout .e-con-inner:has(>.wd-checkout-login,>.wd-checkout-coupon){flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-start}
.woocommerce-checkout .e-con-inner:has(>.wd-checkout-login,>.wd-checkout-coupon)>*{flex:1 1 100%;min-width:0}
.woocommerce-checkout .e-con-inner>:is(.wd-checkout-login,.wd-checkout-coupon){flex:1 1 calc(50% - 10px)!important;margin-top:0!important}
}
