/* Realleaf fixes 2026-10-21 (staging). Loaded last. Kill switch: ?rl_fx=0 */

/* ---------- 1. Font: Noto Sans Hebrew, self-hosted ---------- */
@font-face{font-family:"Noto Sans Hebrew";font-style:normal;font-weight:400 800;font-display:swap;src:url("../fonts/noto-sans-hebrew-hebrew-var.woff2") format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Noto Sans Hebrew";font-style:normal;font-weight:400 800;font-display:swap;src:url("../fonts/noto-sans-hebrew-latin-var.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
html:root,html[data-rl-palette]{--rl-font-body:"Noto Sans Hebrew","Arial Hebrew","Segoe UI",sans-serif;--rl-font-display:"Noto Sans Hebrew","Arial Hebrew","Segoe UI",sans-serif}
html body:not(#rlfx),html body:not(#rlfx) :where(h1,h2,h3,h4,h5,h6,p,a,li,td,th,label,button,input,select,textarea,summary,blockquote,.elementor-heading-title,.elementor-button,.elementor-button-text,.elementor-post__title,.elementor-post__excerpt){font-family:var(--rl-font-body)!important}

/* ---------- 1. No horizontal overflow on narrow screens (cart, checkout, account) ---------- */
html,body{max-width:100%;overflow-x:clip}
.woocommerce-cart :where(table,form,.cart-collaterals,.cart_totals),.woocommerce-checkout :where(table,form,.col2-set,#order_review,#payment),.woocommerce-account :where(table,form,.woocommerce-MyAccount-content){max-width:100%;box-sizing:border-box}
.woocommerce-checkout :where(input,select,textarea,.select2-container),.woocommerce-cart :where(input,select){max-width:100%!important;box-sizing:border-box}
@media (max-width:40rem){
 .woocommerce-cart table.shop_table,.woocommerce-checkout table.shop_table{table-layout:fixed;width:100%!important}
 .woocommerce-cart table.shop_table td,.woocommerce-checkout table.shop_table td,.woocommerce-checkout table.shop_table th{word-break:break-word;overflow-wrap:anywhere}
 .woocommerce-checkout #payment .payment_box,.woocommerce-checkout iframe{max-width:100%!important}
}

/* ---------- 2. Search: muted gray icon inside the bar ---------- */
html body:not(#rlfx) .rl-site-header .rl-search__submit{background:none!important;box-shadow:none!important;border:0!important;color:#8A928D!important}
html body:not(#rlfx) .rl-site-header .rl-search__submit svg,html body:not(#rlfx) .rl-site-header .rl-search__submit svg *{stroke:#8A928D!important;color:#8A928D!important}
html body:not(#rlfx) .rl-site-header .rl-search__submit svg .f{fill:none!important}

/* ---------- 2/4. Header cart total: one decimal, readable ---------- */
html body:not(#rlfx) .rl-site-header .rl11-total{font-weight:800!important;font-variant-numeric:tabular-nums;letter-spacing:0}
html body:not(#rlfx) .rl-site-header [data-rl-cart-count]{font-variant-numeric:tabular-nums;font-weight:800}

/* ---------- 3. Supermarket-cart icon in the side cart title ---------- */
.rl-side-cart__heading h2{display:inline-flex;align-items:center;gap:8px}
.rlfx-sc-ic{width:24px;height:24px;flex:none}

/* ---------- 4. Calm palette ---------- */
html:root,html[data-rl-palette]{--v5-grad:linear-gradient(135deg,#0E6A3B 0%,#14804A 100%);--rl-color-lime:#B9D88F;--rl-color-sale:#1F3B2D;--rl-color-sale-soft:#EEF3EE}
html body:not(#rlfx) .rl6-btn--lime{background:#fff!important;color:#0A3D24!important;box-shadow:0 6px 16px rgb(0 0 0/.12)!important}
html body:not(#rlfx) .rl6-htile__go{background:#fff!important;color:#0A3D24!important}
html body:not(#rlfx) .rl6-hero h1 span,html body:not(#rlfx) .rl6-slide h2 span{color:#CFE6B8!important}
html body:not(#rlfx) .rl12-bchips a.is-on small{background:#fff!important;color:#0B6B3A!important}
html body:not(#rlfx) .rl8-up__add.is-done{background:#0E6A3B!important;color:#fff!important}

/* ---------- 4. Home: 'מה אתה מעשן?' (restored from live) ---------- */
.rlfx-quiz{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px auto;max-width:var(--rl-container,1280px);padding:20px 24px;border-radius:22px;background:#F1F6F2;border:1px solid #DCE8E0;box-sizing:border-box}
.rlfx-quiz__kicker{margin:0 0 2px;font-size:.9rem;font-weight:600;color:#4A635A}
.rlfx-quiz h2{margin:0;font-size:1.6rem;font-weight:800;color:#0A3D24}
.rlfx-quiz__opts{display:flex;gap:10px}
.rlfx-quiz__btn{display:inline-flex;align-items:center;justify-content:center;min-width:120px;height:48px;padding:0 22px;border-radius:999px;background:#0E6A3B;color:#fff!important;font-weight:800;font-size:1rem;text-decoration:none!important}
.rlfx-quiz__btn+.rlfx-quiz__btn{background:#fff;color:#0A3D24!important;border:1.5px solid #0E6A3B}
@media (max-width:40rem){.rlfx-quiz{margin:14px 12px;padding:18px}.rlfx-quiz__opts{width:100%}.rlfx-quiz__btn{flex:1;min-width:0}}

/* ---------- 4/5. True-circle + buttons and round steppers everywhere ---------- */
html body:not(#rlfx) :where(.rl-qty--card .rl-qty__add,.rl8-up__add,.rl10-step__b,.rl11-ust__m){aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;flex:none!important;line-height:1!important}
html body:not(#rlfx) .rl-qty .rl-qty__btn{aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;display:inline-grid!important;place-items:center!important;flex:none!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;background:#fff!important;color:#0E6A3B!important;box-shadow:0 1px 4px rgb(6 48 31/.18)!important;border:0!important}
html body:not(#rlfx) .rl-qty .rl-qty__btn svg{width:18px;height:18px}
html body:not(#rlfx) .rl-qty .rl-qty__pill{gap:6px;padding:4px!important;align-items:center}
html body:not(#rlfx) .rl-qty .rl-qty__value{font-variant-numeric:tabular-nums;font-weight:800;min-width:28px;text-align:center}
html body:not(#rlfx) .rl-qty--lg .rl-qty__btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
/* product-page mobile buy bar stepper */
html body:not(#rlfx) .rl8-buybar .rl10-step__b{width:40px!important;height:40px!important;background:#fff!important;color:#0E6A3B!important;border:1px solid #CFE0D5!important;font-size:1.3rem!important;font-weight:700}
html body:not(#rlfx) .rl8-buybar .rl10-step__plus{background:#0E6A3B!important;color:#fff!important;border-color:#0E6A3B!important}
html body:not(#rlfx) .rl8-buybar .rl10-step__v{min-width:26px;text-align:center;font-variant-numeric:tabular-nums}

/* ---------- 6. Product page tabs + highlights ---------- */
.rlfx-tabbar{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #DCE8E0;margin:0 0 14px;padding:0 2px}
.rlfx-tabbar::-webkit-scrollbar{display:none}
.rlfx-tab{flex:none;appearance:none;background:none;border:0;border-bottom:3px solid transparent;padding:12px 14px;font:inherit;font-weight:700;font-size:.98rem;color:#4A635A;cursor:pointer;margin-bottom:-1px}
.rlfx-tab[aria-selected=true]{color:#0A3D24;border-bottom-color:#0E6A3B}
.rlfx-tab:focus-visible{outline:2px solid #0E6A3B;outline-offset:2px;border-radius:6px}
.rlfx-tabs>details>summary{display:none!important}
.rlfx-tabs>details[hidden]{display:none!important}
.rlfx-tabs>details{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important}
.rlfx-hl{list-style:none;margin:14px 0;padding:14px 16px;display:grid;gap:8px;border-radius:16px;background:#F5F9F6;border:1px solid #E0EBE4}
.rlfx-hl li{display:flex;gap:8px;align-items:flex-start;font-size:.95rem;color:#18241A}
.rlfx-hl li svg{flex:none;color:#0E6A3B;margin-top:2px}

/* ---------- 8. Premium, quiet promo tags ---------- */
html body:not(#rlfx) .rl8-tags{gap:4px}
html body:not(#rlfx) .rl8-tag{background:#fff!important;color:#1F3B2D!important;border:1px solid #D5E3DC!important;border-radius:999px!important;font-weight:700!important;font-size:.72rem!important;letter-spacing:0;padding:3px 9px!important;box-shadow:none!important;text-transform:none}
html body:not(#rlfx) .rl8-tag--sale{background:#1F3B2D!important;color:#fff!important;border-color:#1F3B2D!important}
html body:not(#rlfx) .rl8-tag svg{display:none}
html body:not(#rlfx) .rl13-tier,html body:not(#rlfx) .rl13-applied{background:#F5F9F6!important;color:#1F3B2D!important;border:1px solid #E0EBE4!important}
html body:not(#rlfx) .rl13-tier__bar i{background:#0E6A3B!important}
html body:not(#rlfx) .rl-mega__deal{background:#F1F6F2!important;color:#0A3D24!important}
html body:not(#rlfx) :where(.price ins,.rl-price ins){color:#0A3D24!important;text-decoration:none}

/* ---------- 9. Co-purchase row heading ---------- */
html body:not(#rlfx) .rl8-up__t{font-weight:800;color:#0A3D24}
html body:not(#rlfx) .rl8-up__t svg{display:none}

/* ---------- 5. Cart page + side cart steppers: round − / + discs on a light track ---------- */
html body:not(#rlfx) .rl-cart-qty,html body:not(#rlfx) .rl-side-cart__quantity{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:4px!important;border-radius:999px!important;background:#F1F6F2!important;border:1px solid #DCE8E0!important;box-shadow:none!important;height:auto!important;width:auto!important}
html body:not(#rlfx) .rl-cart-qty__btn,html body:not(#rlfx) .rl-side-cart__quantity button{aspect-ratio:1/1!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;border:0!important;background:#fff!important;color:#0E6A3B!important;box-shadow:0 1px 4px rgb(6 48 31/.18)!important;font-size:1.25rem!important;font-weight:700!important;line-height:1!important;flex:none!important}
html body:not(#rlfx) .rl-cart-qty__btn.is-plus,html body:not(#rlfx) .rl-side-cart__quantity [data-rl-cart-plus]{background:#0E6A3B!important;color:#fff!important}
html body:not(#rlfx) .rl-cart-qty__btn svg{width:18px;height:18px}
html body:not(#rlfx) .rl-cart-qty input.qty{width:34px!important;min-width:0!important;background:transparent!important;border:0!important;color:#0A3D24!important;font-weight:800!important;text-align:center;font-variant-numeric:tabular-nums;padding:0!important;box-shadow:none!important;-moz-appearance:textfield}
html body:not(#rlfx) .rl-cart-qty input.qty::-webkit-inner-spin-button,html body:not(#rlfx) .rl-cart-qty input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body:not(#rlfx) .rl-side-cart__quantity [data-rl-cart-value]{min-width:24px;text-align:center;color:#0A3D24!important;font-weight:800;font-variant-numeric:tabular-nums}

/* ---------- 2. Header cart: total with one decimal on every width ---------- */
@media (min-width:64rem){
 html body:not(#rlfx) .rl-site-header .rl-cart .rl-cart__subtotal{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
 html body:not(#rlfx) .rl-site-header .rl-header-actions .rl-cart .rl11-total{position:static!important;display:inline-block;height:auto!important;line-height:1.2!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font-size:.95rem!important}
 html body:not(#rlfx) .rl-site-header .rl-header-actions .rl-cart .rl11-total[hidden]{display:none!important}
}
html body:not(#rlfx) .rl-side-cart .rl-side-cart__quantity button[data-rl-cart-minus]{background:#fff!important;color:#0E6A3B!important;box-shadow:0 1px 4px rgb(6 48 31/.18)!important}
html body:not(#rlfx) .rl-side-cart .rl-side-cart__quantity button[data-rl-cart-plus]{background:#0E6A3B!important;color:#fff!important;box-shadow:0 1px 4px rgb(6 48 31/.18)!important}
html body:not(#rlfx) .rl-side-cart .rl-side-cart__quantity{display:inline-flex!important;grid-template-columns:none!important;height:auto!important;min-width:0!important;background:#F1F6F2!important}

/* ---------- 1. Cart page desktop: table and totals side by side, no overlap ---------- */
@media (min-width:64rem){
 html body:not(#rlfx) .rl-woo-page--cart .rl-woo-page__body{grid-template-columns:minmax(0,1fr)!important}
 html body:not(#rlfx) .rl-woo-page--cart .rl-woo-page__body>.woocommerce{grid-template-columns:minmax(0,1fr) 360px!important;gap:24px!important;align-items:start;width:100%!important}
 html body:not(#rlfx) .rl-woo-page--cart .woocommerce-notices-wrapper{grid-column:1/-1}
 html body:not(#rlfx) .rl-woo-page--cart .woocommerce-cart-form{min-width:0;width:auto!important}
 html body:not(#rlfx) .rl-woo-page--cart .woocommerce-cart-form table{width:100%!important}
 html body:not(#rlfx) .rl-woo-page--cart .cart-collaterals{width:auto!important;position:sticky;top:calc(var(--rl11-top,140px) + 12px)}
 html body:not(#rlfx) .rl-woo-page--cart .cart-collaterals .cart_totals{width:100%!important;float:none!important}
}
html body:not(#rlfx) .rl-cart-qty input.qty{color:#0A3D24!important;-webkit-text-fill-color:#0A3D24}
@media (min-width:64rem){html body:not(#rlfx) .rl-site-header .rl-header-actions a.rl-cart b.rl11-total:not([hidden]){display:inline-block!important}}
html body:not(#rlfx) .rl8-tag--sale::after{content:none!important;animation:none!important}
html body:not(#rlfx) .rl8-tag--sale{background:#1F3B2D!important;color:#fff!important}

/* ---------- 9. Co-purchase row on the cart page ---------- */
.rlfx-cart-co{margin:18px 0 6px;padding:14px;border-radius:18px;background:#fff;border:1px solid #E0EBE4}
.rlfx-cart-co .rl8-up__rail{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.rlfx-cart-co .rl8-up__c{flex:0 0 150px}
