/* SG Loose Weight Pricing PRO v1.8.1 - premium orange UI */
:root{--sglw-orange:#f66a21;--sglw-orange-dark:#e6530c;--sglw-ink:#20252d;--sglw-border:#ebecef}
.sglwpp-open-options,.sglwpp-loose-wrap .c-product-grid__atc--text{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;text-align:center;background:linear-gradient(110deg,#ff8a31,#f5671c)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:999px!important;font-size:12px!important;font-weight:800!important;letter-spacing:.015em!important;text-decoration:none!important;padding:9px 15px!important;min-height:35px;white-space:nowrap;box-shadow:0 4px 12px rgba(236,104,28,.18)!important;cursor:pointer}
.sglwpp-open-options:hover,.sglwpp-open-options:focus{background:#ea5915!important;color:#fff!important}
.sglwpp-loose-wrap .c-product-grid__atc{cursor:pointer}
.sglwpp-weight-box{margin:15px 0;padding:14px;border:1px solid var(--sglw-border);border-radius:17px;background:#fff;box-shadow:0 5px 20px rgba(10,20,30,.035)}
.sglwpp-weight-title{display:block;margin:0 0 11px;color:var(--sglw-ink);font-size:15px;line-height:1.3;font-weight:800}
.sglwpp-weight-options{display:flex;flex-wrap:wrap;gap:9px}
.sglwpp-weight-pill{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-width:81px;min-height:59px;padding:10px 12px;border:1.5px solid #e4e5e9;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.sglwpp-weight-pill input,.sglwpp-popup__weight input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}
.sglwpp-weight-pill-main{font-size:13px;line-height:1.15;font-weight:800;color:var(--sglw-ink)}
.sglwpp-weight-pill-price{font-size:11px;line-height:1.15;font-weight:700;color:#68727e}
.sglwpp-weight-pill.is-active,.sglwpp-weight-pill:has(input:checked){background:#fff5ee;border-color:#f66a21;box-shadow:inset 0 0 0 .5px #f66a21}
.sglwpp-weight-pill.is-active .sglwpp-weight-pill-main,.sglwpp-weight-pill:has(input:checked) .sglwpp-weight-pill-main{color:#cf4f0d}
.sglwpp-price-line{margin:12px 0 0;font-size:13px;color:#6f747b}
.sglwpp-price-line strong{font-size:17px;font-weight:850;color:var(--sglw-ink)}
body.sglwpp-modal-open{overflow:hidden!important}
.sglwpp-modal[hidden]{display:none!important}
.sglwpp-modal{position:fixed;inset:0;z-index:2147483000;font-family:inherit}
.sglwpp-modal__overlay{position:absolute;inset:0;background:rgba(11,20,32,.61);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.sglwpp-modal__dialog{position:relative;z-index:1;margin:5vh auto;max-width:790px;width:calc(100% - 30px);max-height:90vh;max-height:90dvh;overflow:hidden;background:#fff;border-radius:24px;box-shadow:0 24px 85px rgba(0,0,0,.20)}
.sglwpp-modal__close{position:absolute;top:16px;right:16px;left:auto;z-index:15;display:grid;place-items:center;width:35px;height:35px;padding:0;border:1px solid #eee;border-radius:50%;background:#fff;color:#374151!important;font-size:23px;line-height:1;box-shadow:0 3px 10px rgba(0,0,0,.07);cursor:pointer}
.sglwpp-modal__body{padding:25px;max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
.sglwpp-modal__loading{padding:50px 15px;text-align:center;font-size:14px;font-weight:700;color:#555}
.sglwpp-popup--premium{display:grid;grid-template-columns:minmax(210px,290px) minmax(0,1fr);gap:22px;align-items:start}
.sglwpp-popup__media-wrap{border:1px solid #f0f0f2;border-radius:19px;background:#f9fafb;padding:15px}
.sglwpp-popup__media{display:flex;align-items:center;justify-content:center;min-height:238px}
.sglwpp-popup__media img{max-width:100%;max-height:255px;object-fit:contain;display:block;border-radius:14px;mix-blend-mode:multiply}
.sglwpp-popup__no-image{min-height:170px;color:#a6a9b0;font-size:13px;display:grid;place-items:center}
.sglwpp-popup__content{display:flex;flex-direction:column;min-width:0}
.sglwpp-popup__meta-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:4px 38px 10px 0}
.sglwpp-popup__meta-pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.3;font-weight:750;color:#267444;background:#edf9f0;border-radius:99px;padding:6px 9px}
.sglwpp-popup__meta-pill--neutral{color:#bc540f;background:#fff2e7}
.sglwpp-popup__meta-pill strong{color:inherit;font-weight:800}
.sglwpp-popup__title{margin:0;padding:0;color:#1d222a;font-size:23px;font-weight:800;line-height:1.25;letter-spacing:-.02em}
.sglwpp-popup__desc{margin:7px 0 0;color:#777d87;font-size:12px;line-height:1.45}
.sglwpp-popup__section-head{margin:19px 0 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.sglwpp-popup__section-title{font-size:13px;line-height:1.2;font-weight:800;color:#20242a}
.sglwpp-popup__section-subtitle{margin-top:3px;font-size:11px;color:#8a9098}
.sglwpp-popup__selected{display:inline-flex;align-items:center;color:#d55917;background:#fff3e9;padding:7px 10px;border-radius:10px;font-size:11px;font-weight:800}
.sglwpp-popup__weights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.sglwpp-popup__weight{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:69px;padding:9px 6px;border:1.5px solid #e6e8eb;border-radius:14px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.sglwpp-popup__weight-main{color:#20252d;font-weight:850;font-size:14px;line-height:1.15}
.sglwpp-popup__weight-price{color:#6c737c;font-weight:750;font-size:12px;line-height:1.1}
.sglwpp-popup__weight.is-active,.sglwpp-popup__weight:has(input:checked){background:#fff4e8;border-color:#f66a21;box-shadow:inset 0 0 0 .4px #f66a21}
.sglwpp-popup__weight.is-active .sglwpp-popup__weight-main,.sglwpp-popup__weight:has(input:checked) .sglwpp-popup__weight-main{color:#ce5013}
.sglwpp-popup__weight.is-disabled{opacity:.43;cursor:not-allowed;box-shadow:none}
.sglwpp-popup__weight.is-disabled input{cursor:not-allowed}
.sglwpp-popup__price-card{margin-top:15px;padding:12px 14px;border:1px solid #f1e8e1;border-radius:13px;background:#fffaf5}
.sglwpp-popup__price-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sglwpp-popup__price-caption{color:#727982;font-weight:750;font-size:11px}
.sglwpp-popup__save{display:none;color:#177849;font-size:10px;font-weight:750}
.sglwpp-popup__price-main-wrap{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-top:5px}
.sglwpp-popup__price-main{font-weight:850;font-size:27px;color:#1a212b;line-height:1.2}
.sglwpp-popup__price-mrp{display:none;color:#989fa6;text-decoration:line-through;font-size:13px;font-weight:700}
.sglwpp-popup__error{margin:6px 0 0;min-height:14px;color:#a82f1c;font-size:12px;font-weight:650}
.sglwpp-popup__error.is-open{padding:20px;text-align:center}
.sglwpp-popup__success{display:inline-flex;padding:7px 10px;color:#17663e;background:#eaf8ef;border-radius:9px;font-weight:800}
.sglwpp-popup__action-row{grid-column:2;display:flex;gap:10px;align-items:center;margin:0}
.sglwpp-popup__qty-card{flex:0 0 156px;min-width:0;height:49px;border:1px solid #e1e4e7;border-radius:13px;background:#fff}
.sglwpp-popup__qty-card-head,.sglwpp-popup__qty-label,.sglwpp-popup__qty-note{display:none}
.sglwpp-popup__qty{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:1px;width:100%;height:100%;margin:0!important;padding:4px!important}
.sglwpp-popup__qty-btn{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:0!important;padding:0!important;border:0!important;border-radius:9px;background:#f6f7f9!important;color:#2c3139!important;font-size:21px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
.sglwpp-popup__qty-input{display:block;width:100%!important;min-width:0!important;max-width:100%!important;height:35px!important;min-height:35px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:none!important;background:#fff!important;color:#121921!important;-webkit-text-fill-color:#121921!important;font-size:16px!important;font-weight:800!important;text-align:center!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important}
.sglwpp-popup__add{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:49px;height:49px;margin:0!important;padding:8px 16px!important;border:0!important;border-radius:13px!important;background:linear-gradient(120deg,#ff852d,#f3651c)!important;color:white!important;-webkit-text-fill-color:white!important;font-size:14px!important;line-height:1.15!important;font-weight:850!important;letter-spacing:.025em!important;text-transform:uppercase!important;box-shadow:0 6px 16px rgba(242,105,27,.22)!important;cursor:pointer}
.sglwpp-popup__add.loading{opacity:.68;pointer-events:none}
.sglwpp-popup__add:disabled{opacity:.5;cursor:not-allowed}
.sglwpp-popup__add.is-view-cart{background:#202932!important}
@media(max-width:767px){
 .sglwpp-modal__dialog{position:absolute;left:0;right:0;bottom:0;top:auto;margin:0!important;width:100%;max-width:none;max-height:88vh;max-height:88dvh;border-radius:22px 22px 0 0}
 .sglwpp-modal__dialog:before{content:"";position:absolute;left:50%;top:8px;transform:translateX(-50%);width:42px;height:4px;border-radius:8px;background:#dce0e4;z-index:5}
 .sglwpp-modal__close{top:18px;right:15px;left:auto;width:32px;height:32px;font-size:21px}
 .sglwpp-modal__body{padding:32px 13px calc(12px + env(safe-area-inset-bottom));max-height:88vh;max-height:88dvh;overflow:auto}
 .sglwpp-popup--premium{display:grid;grid-template-columns:93px minmax(0,1fr);gap:12px;align-items:start}
 .sglwpp-popup__media-wrap{padding:7px;border-radius:13px}
 .sglwpp-popup__media{min-height:86px}
 .sglwpp-popup__media img{width:100%;height:84px;object-fit:contain}
 .sglwpp-popup__no-image{min-height:70px;font-size:11px}
 .sglwpp-popup__meta-row{margin:0 33px 6px 0;gap:5px}
 .sglwpp-popup__meta-pill{font-size:9px;padding:4px 6px}
 .sglwpp-popup__title{font-size:17px;line-height:1.25;letter-spacing:0;padding-right:20px}
 .sglwpp-popup__desc{font-size:11px;margin-top:4px;line-height:1.35}
 .sglwpp-popup__section-head{margin-top:12px;gap:5px}
 .sglwpp-popup__section-title{font-size:12px}
 .sglwpp-popup__section-subtitle{font-size:10px}
 .sglwpp-popup__selected{font-size:10px;padding:5px 7px}
 .sglwpp-popup__weights{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
 .sglwpp-popup__weight{min-height:57px;gap:4px;padding:6px 4px;border-radius:11px}
 .sglwpp-popup__weight-main{font-size:12px}
 .sglwpp-popup__weight-price{font-size:10px}
 .sglwpp-popup__price-card{padding:8px 10px;margin-top:10px;border-radius:10px}
 .sglwpp-popup__price-main{font-size:19px}
 .sglwpp-popup__price-mrp{font-size:11px}
 .sglwpp-popup__error{font-size:11px;min-height:7px;margin:5px 0}
 .sglwpp-popup__action-row{position:sticky;bottom:0;z-index:12;grid-column:1/-1;display:grid;grid-template-columns:minmax(0,125px) minmax(0,1fr);gap:9px;align-items:center;padding:12px 0 calc(6px + env(safe-area-inset-bottom));margin:2px 0 0;background:linear-gradient(to bottom,rgba(255,255,255,.95),#fff 24%);box-shadow:0 -7px 14px rgba(255,255,255,.75)}
 .sglwpp-popup__qty-card{flex:none;width:100%;height:49px}
 .sglwpp-popup__qty{grid-template-columns:30px minmax(0,1fr) 30px;gap:1px;padding:3px!important}
 .sglwpp-popup__qty-btn{width:29px;height:35px;min-width:29px;min-height:35px;font-size:19px!important}
 .sglwpp-popup__add{height:49px;min-height:49px;font-size:14px!important}
 .sglwpp-weight-box{padding:11px;margin:10px 0}
 .sglwpp-weight-pill{min-width:70px;min-height:54px;padding:7px 8px}
 .sglwpp-weight-pill-main{font-size:12px}
}
@media(max-width:375px){.sglwpp-popup--premium{grid-template-columns:77px minmax(0,1fr);gap:9px}.sglwpp-popup__weights{gap:6px}.sglwpp-popup__weight{min-height:53px}.sglwpp-popup__action-row{grid-template-columns:108px minmax(0,1fr);gap:7px}}


/* 1.8.6 — one premium action per configured loose product, no theme quantity row. */
.sglwpp-open-options[data-sglwpp-label]{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-height:40px!important;margin:0!important;padding:9px 12px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;position:relative!important;overflow:hidden!important;
  border:1px solid #fc7027!important;border-radius:14px!important;
  background:linear-gradient(115deg,#ff8528,#ff6418)!important;
  box-shadow:0 4px 12px rgba(230,101,18,.17)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:12px!important;font-weight:800!important;line-height:1.2!important;
  letter-spacing:.045em!important;text-transform:uppercase!important;text-decoration:none!important;
  white-space:nowrap!important;cursor:pointer!important;
}
.sglwpp-open-options[data-sglwpp-label]::before,
.sglwpp-open-options[data-sglwpp-label]::after{display:none!important;content:none!important}
.sglwpp-open-options[data-sglwpp-label] > .sglwpp-options-label{
  display:block!important;position:static!important;width:100%!important;
  text-align:center!important;white-space:nowrap!important;
  color:inherit!important;-webkit-text-fill-color:inherit!important;
  font:inherit!important;line-height:1.2!important;visibility:visible!important;opacity:1!important;
}
.sglwpp-open-options[data-sglwpp-label] > :not(.sglwpp-options-label){display:none!important}
.sglwpp-open-options[data-sglwpp-mode="product"]{
  background:linear-gradient(115deg,#11854d,#06713f)!important;
  border-color:#0d7b45!important;box-shadow:0 4px 12px rgba(14,125,68,.12)!important;
}
/* Hide every legacy upper control and the SG theme's lower +/- for loose items.
   Scope to the marked individual product card; normal products stay untouched. */
.sglwpp-card-qty,
.sglwpp-native-qty-hidden,
.sglwpp-loose-card .js-product-grid-quantity,
.sglwpp-loose-card [id^="js-product-grid-quantity-"],
.sglwpp-loose-card .c-product-grid__quantity,
.sglwpp-loose-wrap .js-product-grid-quantity,
.sglwpp-loose-wrap .c-product-grid__quantity{
  display:none!important;visibility:hidden!important;
}
.sglwpp-cart-weight-note{
  display:block!important;color:#1e8151!important;font-size:12px!important;
  line-height:1.4!important;font-weight:750!important;margin:3px 0!important;
}
#sglwpp-modal a.added_to_cart.wc-forward{display:none!important}
.sglwpp-popup__title a{color:inherit!important;text-decoration:none!important}
.sglwpp-popup__product-link{display:block;width:100%}
.sglwpp-popup__product-link img{width:100%}
@media(max-width:767px){.sglwpp-open-options[data-sglwpp-label]{min-height:40px!important}}
