/* Scoped standalone Super Farmers mini-cart. No dependency on previous customizations. */
.cart-widget-side:has(.sfmc-root){width:min(460px,100vw)!important;max-width:100vw!important}
.cart-widget-side:has(.sfmc-root) .widget_shopping_cart,.cart-widget-side:has(.sfmc-root) .widget_shopping_cart_content{height:100%;min-height:0}
.cart-widget-side:has(.sfmc-root) .widget_shopping_cart_content{display:flex;flex-direction:column}
.cart-widget-side:has(.sfmc-root) .widget-heading{border:0!important;box-shadow:none!important}
.cart-widget-side:has(.sfmc-root) .widget-heading .widget-title{display:none!important}
.cart-widget-side:has(.sfmc-root) .widget-heading{position:absolute;z-index:5;top:14px;inset-inline-end:13px;background:transparent!important;padding:0!important;width:auto!important}
.cart-widget-side:has(.sfmc-root) .widget-heading .close-side-widget{font-size:0!important;min-width:40px;min-height:40px}
.cart-widget-side:has(.sfmc-root) .widget-heading .close-side-widget:before{font-size:23px!important}
.sfmc-root{--sfmc-green:#17672e;--sfmc-dark:#073f25;--sfmc-gray:#858996;--sfmc-line:#e6e8ea;font-family:inherit!important;color:#131a17;display:flex;flex-direction:column;min-height:100%;height:100%;background:white;direction:rtl;text-align:right;overflow:hidden}
.sfmc-root *{box-sizing:border-box}
.sfmc-heading{display:flex;flex-direction:row;align-items:center;gap:13px;padding:27px 23px 12px 60px;min-height:80px;flex-shrink:0}
.sfmc-heading-text{font-size:26px;font-weight:800;color:#0b482a;line-height:1.4}
.sfmc-heading-icon{width:42px;height:42px;display:inline-block;position:relative;color:#12652e;flex-shrink:0}
.sfmc-heading-icon svg{width:40px;height:40px}
.sfmc-count{position:absolute;top:-9px;right:-10px;display:flex;justify-content:center;align-items:center;background:#18682e;color:white;font-size:12px;font-weight:800;width:24px;height:24px;border-radius:100%}
.sfmc-intro{text-align:center!important;margin:0!important;padding:2px 14px 22px;color:#8a8e98;font-size:14px;font-weight:600;line-height:1.65}
.sfmc-items{overflow-y:auto!important;min-height:60px;flex:1 1 auto;margin:0!important;padding:0 9px 16px!important;display:flex!important;flex-direction:column;gap:11px;list-style:none!important;max-height:none!important}
.sfmc-item{position:relative!important;display:flex!important;align-items:flex-start!important;gap:14px;padding:16px 15px 14px 47px!important;min-height:159px!important;border:1px solid #e9ebef!important;border-radius:14px!important;background:#fff!important;box-shadow:0 1px 5px rgba(15,50,25,.025);float:none!important;width:100%!important;margin:0!important}
.sfmc-image{flex:0 0 110px!important;width:110px!important;height:124px!important;border-radius:10px;overflow:hidden;background:#f6f6f2}
.sfmc-image a{display:block;height:100%}
.sfmc-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;max-width:none!important;float:none!important;margin:0!important;border-radius:10px!important}
.sfmc-details{flex:1;min-width:0;text-align:right!important;display:flex;flex-direction:column;align-items:flex-start;padding-top:2px}
.sfmc-name,.sfmc-name a{font-size:16px!important;line-height:1.55!important;font-weight:750!important;color:#161a17!important;text-decoration:none!important}
.sfmc-meta{font-size:12px;color:var(--sfmc-gray);margin-top:3px;line-height:1.55;max-height:49px;overflow:hidden}
.sfmc-meta dl{margin:0!important;display:flex;gap:4px;flex-wrap:wrap}.sfmc-meta dt,.sfmc-meta dd,.sfmc-meta p{margin:0!important;font-size:12px!important}
.sfmc-price{color:var(--sfmc-green);font-weight:800;font-size:17px!important;margin:12px 0 10px;white-space:nowrap}
.sfmc-price .amount,.sfmc-price bdi{font-weight:800!important;color:inherit!important;font-size:inherit!important}
.sfmc-quantity{display:flex;gap:5px;align-items:center;direction:ltr!important}
.sfmc-quantity button,.sfmc-qty{display:flex!important;justify-content:center;align-items:center;min-width:37px!important;height:35px!important;padding:0!important;background:#fff!important;color:#303a49!important;border:1px solid #dfe3e9!important;border-radius:8px!important;font-size:21px!important;font-weight:600!important;line-height:1!important;box-shadow:none!important}
.sfmc-qty{min-width:39px!important;color:#121820!important;font-size:17px!important;font-weight:750!important}
.sfmc-quantity button:hover{background:#f1f6f1!important;color:var(--sfmc-green)!important}.sfmc-quantity button:disabled{opacity:.4;cursor:wait}
.sfmc-single-qty{font-size:12px;color:#737985}
.sfmc-item .sfmc-remove{position:absolute!important;top:18px!important;left:13px!important;right:auto!important;border-radius:100%!important;width:37px!important;height:37px!important;display:flex!important;justify-content:center;align-items:center;background:#f1f2f4!important;color:#1d242b!important;font-size:25px!important;font-weight:400!important;line-height:1!important;z-index:1;text-decoration:none!important}
.sfmc-item .sfmc-remove:hover{color:white!important;background:#c53a36!important}
.sfmc-bottom{flex:0 0 auto;max-height:54%;overflow-y:auto;border-top:1px solid #eceef0;background:#fff;padding:0 20px 12px}
.sfmc-subtotal{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:19px 0;border-bottom:1px solid #e8e9eb;font-size:17px}
.sfmc-subtotal strong{font-size:17px!important;font-weight:800!important;color:#101510}.sfmc-subtotal span{color:var(--sfmc-green);font-size:20px;font-weight:800;white-space:nowrap}
.sfmc-subtotal .amount,.sfmc-subtotal bdi{color:inherit!important;font-size:inherit!important;font-weight:inherit!important}
.sfmc-shipping{padding:16px 0 17px}.sfmc-shipping-head{display:flex;gap:8px;align-items:center;color:#16662d;font-size:14px;font-weight:800;margin-bottom:15px}.sfmc-shipping-head svg{height:25px;width:25px;flex-shrink:0}
.sfmc-progress{height:14px;border-radius:20px;background:#e1e9e1;overflow:hidden;direction:rtl}.sfmc-progress span{height:100%;display:block;background:repeating-linear-gradient(115deg,#14652b 0,#14652b 8px,#2b8040 8px,#2b8040 13px);border-radius:20px;transition:width .3s}
.sfmc-shipping-note{margin:10px 0 0!important;color:#8b909b!important;font-size:11px!important;line-height:1.6!important}
.sfmc-actions{display:flex;flex-direction:column;gap:9px;margin:0!important;padding:0!important}
.sfmc-actions a{min-height:55px!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:12px;border-radius:9px!important;font-size:16px!important;font-weight:800!important;line-height:1!important;text-align:center!important;width:100%!important;margin:0!important;float:none!important;box-shadow:none!important}
.sfmc-actions .sfmc-view{background:#f0f1f3!important;color:#16191c!important;border:0!important}.sfmc-actions .sfmc-view:hover{background:#e5e8e7!important}
.sfmc-actions .sfmc-checkout{background:var(--sfmc-green)!important;color:#fff!important;border:0!important}.sfmc-actions .sfmc-checkout:hover{background:var(--sfmc-dark)!important}
.sfmc-actions a svg{position:absolute;left:20px}.sfmc-actions a{position:relative}.sfmc-view span:last-child{position:absolute;left:20px;font-size:22px;font-weight:500}
.sfmc-promo{position:relative;background:linear-gradient(110deg,#f4f9f3,#edf6ee);border-radius:12px;min-height:110px;margin-top:17px;padding:18px 16px 13px;overflow:hidden;isolation:isolate}
.sfmc-promo-icon{float:right;color:#4d9e30;font-size:23px;margin-left:10px}.sfmc-promo strong{display:block;font-weight:800;font-size:13px;color:#13472a;margin-bottom:4px}.sfmc-promo small{display:block;color:#868b90;font-size:11px;margin-bottom:12px}
.sfmc-promo a{display:inline-flex;align-items:center;gap:9px;background:#17642e;color:white!important;font-size:12px;font-weight:750;text-decoration:none;padding:10px 13px;border-radius:7px;position:relative;z-index:2}.sfmc-vegetables{position:absolute;left:-4px;bottom:-10px;font-size:48px;letter-spacing:-19px;z-index:1;transform:rotate(-8deg);pointer-events:none}
.sfmc-empty{padding:55px 20px;display:flex;flex-direction:column;align-items:center;gap:18px;color:#59695f}.sfmc-empty>span{font-size:55px}.sfmc-empty p{font-size:18px;font-weight:700}.sfmc-empty a{background:#17672e;padding:13px 25px;color:#fff;border-radius:7px;text-decoration:none}
.sfmc-root[dir=ltr]{direction:ltr;text-align:left}.sfmc-root[dir=ltr] .sfmc-details{text-align:left!important}.sfmc-root[dir=ltr] .sfmc-heading{padding:27px 60px 12px 23px}.sfmc-root[dir=ltr] .sfmc-item{padding:16px 47px 14px 15px!important}.sfmc-root[dir=ltr] .sfmc-item .sfmc-remove{left:auto!important;right:13px!important}
@media(max-width:420px){.sfmc-image{flex-basis:88px!important;width:88px!important;height:108px!important}.sfmc-item{gap:11px;padding-right:10px!important;min-height:140px!important}.sfmc-name,.sfmc-name a{font-size:14px!important}.sfmc-heading-text{font-size:23px}.sfmc-bottom{padding:0 13px 10px}}


/* v1.1: Only one header and one remove icon. Keep WoodMart native close handler in DOM. */
body .cart-widget-side:has(.sfmc-root) .widget-heading,
body .cart-widget-side:has(.sfmc-root) > .wd-heading,
body .cart-widget-side:has(.sfmc-root) > .wd-header,
body .cart-widget-side:has(.sfmc-root) .widget_shopping_cart > .widget-heading {
  display:none!important;
}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-heading{position:relative;padding-left:66px!important;padding-right:23px!important;}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-close{
  position:absolute!important;left:24px!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;
  display:flex!important;align-items:center;justify-content:center;
  width:38px!important;height:38px!important;min-height:38px!important;
  padding:0!important;background:transparent!important;color:#5c6674!important;
  border:0!important;border-radius:8px!important;box-shadow:none!important;cursor:pointer;
}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-close:hover{background:#f3f4f5!important;color:#193b2b!important}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-close:before,
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-close:after{content:none!important;display:none!important}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-close svg{width:26px!important;height:26px!important;display:block!important}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-item a.sfmc-remove{
  font-size:0!important;line-height:0!important;text-indent:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-item a.sfmc-remove:before,
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-item a.sfmc-remove:after{content:none!important;display:none!important}
.cart-widget-side:has(.sfmc-root) .sfmc-root .sfmc-item a.sfmc-remove svg{
  width:19px!important;height:19px!important;display:block!important;flex:0 0 auto!important;
}
.sfmc-root[dir=ltr] .sfmc-heading{padding-left:23px!important;padding-right:66px!important}
.sfmc-root[dir=ltr] .sfmc-close{left:auto!important;right:24px!important}
