/* r9-growth — uses r9-design tokens */
[class^="r9g-"][hidden],[class*=" r9g-"][hidden],.r9g-fbt [hidden]{display:none!important}
.r9g-num,.r9g-cd b{font-variant-numeric:tabular-nums}
.r9g-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:0;border-radius:8px;background:var(--r9-red,#c8102e);color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.r9g-btn:hover{background:var(--r9-red-700,#a00d25)}
.r9g-btn:focus-visible,.r9g-linkbtn:focus-visible{outline:3px solid var(--r9-ink,#16181d);outline-offset:2px}
.r9g-btn[disabled]{opacity:.55;cursor:not-allowed}
.r9g-btn.is-loading{opacity:.7}
.r9g-linkbtn{background:none;border:0;color:var(--r9-muted,#646973);font-size:13px;text-decoration:underline;min-height:44px;padding:0 6px;cursor:pointer}

/* countdown */
.r9g-cd{display:inline-flex;gap:4px;align-items:center;direction:rtl;min-height:28px}
.r9g-cd__txt{font-size:13px;color:var(--r9-ink-2,#2a2e35)}
.r9g-cd__u{display:inline-flex;flex-direction:column;align-items:center;min-width:34px;padding:2px 4px;border-radius:6px;background:var(--r9-ink,#16181d);color:#fff;line-height:1.1}
.r9g-cd__u b{font-size:14px;font-weight:700}
.r9g-cd__u i{font-style:normal;font-size:9.5px;opacity:.8}
.r9g-cd--big .r9g-cd__u{min-width:46px;padding:5px 6px}
.r9g-cd--big .r9g-cd__u b{font-size:19px}
.r9g-cd--mini{min-height:22px}
.r9g-cd--mini .r9g-cd__u{min-width:0;flex-direction:row;gap:2px;padding:1px 4px;background:var(--r9-red-50,#fdecef);color:var(--r9-red-700,#a00d25)}
.r9g-cd--mini .r9g-cd__u i{display:none}
.r9g-cd--mini .r9g-cd__u b{font-size:12px}
.r9g-cd--mini .r9g-cd__txt{font-size:11.5px}

/* product page: campaign strip */
.r9g-camp{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 10px;padding:8px 10px;border-radius:10px;background:var(--r9-red-50,#fdecef)}
.r9g-camp__tag{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:6px;background:var(--r9-red,#c8102e);color:#fff!important;font-weight:700;font-size:13px}
.r9g-camp__txt{font-size:13.5px;font-weight:600;color:var(--r9-red-700,#a00d25)}

/* Tabby / Tamara */
.r9g-bnpl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;padding:8px 10px;border:1px solid var(--r9-line,#e3e5e8);border-radius:10px;background:#fff}
.r9g-bnpl p{margin:0;font-size:13.5px;color:var(--r9-text,#4a4f57);line-height:1.5}
.r9g-bnpl strong{color:var(--r9-ink,#16181d)}
.r9g-bnpl__logos{display:inline-flex;gap:6px;align-items:center;margin-inline-start:auto}
.r9g-bnpl__logos img{display:block;height:24px;width:auto;padding:4px 7px;border:1px solid var(--r9-line,#e3e5e8);border-radius:6px;background:#fff;box-sizing:content-box}
.r9g-bnpl__logos img:first-child{height:20px;padding:2px 6px}
.r9g-bnpl__logos img:last-child{height:12px;padding:6px 7px}
.r9g-bnpl--mini{margin:8px 0}
.r9g-bnpl--cart{margin:10px 0 0}

/* social proof */
.r9g-proof{margin:8px 0 0}
.r9g-proof.is-on{animation:r9gIn .3s ease-out}
@keyframes r9gIn{from{opacity:0}to{opacity:1}}
.r9g-proof__i{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:13.5px;color:var(--r9-ink-2,#2a2e35)}
.r9g-proof__i:before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--r9-silver,#c9cdd2)}
.r9g-proof__i--eye:before{background:#2563eb}
.r9g-proof__i--cart:before{background:var(--r9-green,#1e7e34)}
.r9g-proof__i--box{color:var(--r9-red-700,#a00d25);font-weight:700}
.r9g-proof__i--box:before{background:var(--r9-red,#c8102e)}
.r9g-ask{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;font-size:14px;font-weight:600;color:#128c4a!important;text-decoration:underline}

/* «يُشترى معًا» */
.r9g-fbt{margin:24px 0;padding:18px;border:1px solid var(--r9-line,#e3e5e8);border-radius:12px;background:#fff}
.r9g-fbt__head h2{margin:0 0 4px;font-size:19px;color:var(--r9-ink,#16181d)}
.r9g-fbt__deal{margin:0 0 12px;font-size:14px;color:var(--r9-text,#4a4f57)}
.r9g-fbt__deal strong{color:var(--r9-red,#c8102e)}
.r9g-fbt__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.r9g-fbt__item{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--r9-line,#e3e5e8);border-radius:10px;margin:0;transition:opacity .15s}
.r9g-fbt__item.is-off{opacity:.55}
.r9g-fbt__chk{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;cursor:pointer}
.r9g-fbt__chk input{width:20px;height:20px;accent-color:var(--r9-red,#c8102e);margin:0}
.r9g-fbt__thumb{flex:none;width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--r9-img-bg,#f5f6f7)}
.r9g-fbt__thumb img{width:64px;height:64px;object-fit:contain}
.r9g-fbt__info{min-width:0;display:flex;flex-direction:column;gap:2px}
.r9g-fbt__this{font-size:11.5px;font-weight:700;color:var(--r9-muted,#646973)}
.r9g-fbt__name{font-size:13.5px;line-height:1.45;color:var(--r9-ink,#16181d);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.r9g-fbt__price{font-weight:700;color:var(--r9-ink,#16181d);font-size:14px}
.r9g-fbt__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.r9g-fbt__sum{font-size:15px;color:var(--r9-ink,#16181d)}
.r9g-fbt__sum strong{font-size:18px}
.r9g-fbt__sum s{color:var(--r9-muted,#646973);font-size:14px}
.r9g-fbt__sum small{display:block;font-size:12px;color:var(--r9-green,#1e7e34)}
.r9g-fbt__msg{margin:10px 0 0;font-weight:600;color:var(--r9-green,#1e7e34)}
@media (max-width:600px){.r9g-fbt{padding:14px}.r9g-fbt__foot .r9g-btn{width:100%}}

/* weekly deals */
.r9g-week{margin:10px 0 24px}
.r9g-week__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin-bottom:12px;padding:14px 16px;border-radius:12px;background:var(--r9-ink,#16181d);color:#fff}
.r9g-week__head h2{margin:0;color:#fff;font-size:21px}
.r9g-week__head p{margin:2px 0 0;font-size:13.5px;color:#d7d9dc}
.r9g-week__cd{display:flex;align-items:center;gap:8px;font-size:13px}
.r9g-week__cd .r9g-cd__u{background:#fff;color:var(--r9-ink,#16181d)}
.r9g-week__cd .r9g-cd__txt{color:#fff}
.r9g-week__all{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:8px;background:var(--r9-red,#c8102e);color:#fff!important;font-weight:700}
.r9g-cardcamp{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px;min-height:24px}
.r9g-cardcamp__tag{font-size:11px;font-weight:700;color:#fff;background:var(--r9-red,#c8102e);border-radius:4px;padding:1px 6px}

/* rails */
.r9g-rail{margin:24px 0}
.r9g-rail.is-wait{min-height:300px}
.r9g-rail__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.r9g-rail__head h2{margin:0;font-size:19px}
.r9g-rail__head a{font-weight:600;color:var(--r9-red,#c8102e);min-height:44px;display:inline-flex;align-items:center}
.r9g-rail__list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
@media (min-width:1025px){.r9g-rail__list{grid-auto-columns:calc((100% - 50px)/6)}}
.r9g-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:10px;background:#fff;border:1px solid var(--r9-line,#e3e5e8);color:var(--r9-ink,#16181d)!important}
.r9g-card img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:var(--r9-img-bg,#f5f6f7);border-radius:8px}
.r9g-card__n{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.r9g-card__p s{color:var(--r9-muted,#646973);font-size:12px}
.r9g-card__p b{font-size:15px}

/* mini-cart nudge */
.r9g-nudge{margin:10px 0;padding:10px;border-radius:10px;background:var(--r9-bg,#f3f4f6)}
.r9g-nudge__h{margin:0 0 8px;font-weight:700;font-size:13.5px;color:var(--r9-ink,#16181d)}
.r9g-nudge__h span{font-weight:400;color:var(--r9-green,#1e7e34)}
.r9g-nudge ul{list-style:none;margin:0;padding:0}
.r9g-nudge li{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.r9g-nudge li>div{flex:1;min-width:0;display:flex;flex-direction:column}
.r9g-nudge__img img{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#fff}
.r9g-nudge__name{font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--r9-ink,#16181d)}
.r9g-nudge__price{font-size:13px;font-weight:700}
.r9g-nudge .r9g-nudge__add{min-height:44px!important;min-width:56px;padding:0 12px!important;font-size:13px!important}

/* cart / checkout totals */
.r9g-tr-saved th,.r9g-tr-saved td{color:var(--r9-green,#1e7e34)!important}
.r9g-tr-bnpl td{padding-top:8px!important;padding-bottom:4px!important}
.r9g-tr-bnpl .r9g-bnpl{margin:0}
.r9g-fbt__name{padding-block:2px}
.r9g-tr-saved .amount,.r9g-tr-saved bdi{color:inherit!important}
/* ── official Tabby box + sticky bar (2026-09-29) ── */
.wd-sticky-btn .tabbyPromo,.wd-sticky-btn .r9g-bnpl,.wd-sticky-btn tamara-widget{display:none!important}
.wd-sticky-btn .single_add_to_cart_button{white-space:nowrap!important;padding-inline:14px!important;min-width:0}
.wd-sticky-btn .price{white-space:nowrap}
.single-product #tabbyPromo{width:100%;max-width:100%;margin:0 0 10px!important;direction:rtl}
.r9g-has-tabby #tabbyPromo{min-height:78px}
@media (max-width:767px){.r9g-has-tabby #tabbyPromo{min-height:100px}}
@media (max-width:400px){.r9g-has-tabby #tabbyPromo{min-height:122px}}
.r9g-bnpl--tamara{border:0;padding:0 2px;margin:-2px 0 12px;background:none}
.r9g-bnpl--tamara p{font-size:13px}
.r9g-bnpl--tamara .r9g-bnpl__logos img{height:14px!important;padding:5px 7px!important}
/* product cards: one fixed-height line so every card keeps the same height */
.r9g-cardbnpl{display:flex;align-items:center;gap:4px;height:20px;margin-top:4px;font-size:11px;color:var(--r9-muted,#646973);white-space:nowrap;overflow:hidden}
.r9g-cardbnpl img{display:block;width:auto;flex:none}
.r9g-cardbnpl>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.r9g-cardbnpl img[alt^="تابي"]{height:12px}
.r9g-cardbnpl img[alt^="تمارا"]{height:9px}
.r9g-cardbnpl__sep{color:var(--r9-line,#c9cdd2);font-size:10px}
.r9g-card .r9g-cardbnpl{margin-top:0}
@media (max-width:1024px){.wd-sticky-btn .wd-sticky-btn-container{padding-inline:16px!important;box-sizing:border-box}}

/* empty [r9g_under_price] (no campaign, Tabby box shown below): no blank gap */
.elementor-element-0b7c0e2:has(.elementor-shortcode:empty){display:none}
.woocommerce-cart .cart-collaterals .tabbyPromo:empty,.woocommerce-cart .tabbyPromo:empty{display:none!important}
