.medagro-cart-page{--mg-green:#123f31;--mg-green2:#0f5132;--mg-graphite:#2b2e31;--mg-accent:#d99018;--mg-line:#e5e9e6;max-width:1280px;margin:0 auto 48px;padding:18px 20px 40px;color:var(--mg-graphite)}
.medagro-cart-page *{box-sizing:border-box}.mg-cart-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:10px 0 24px}.mg-cart-kicker{font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--mg-green2)}.mg-cart-head h1{margin:4px 0 4px;font-size:clamp(30px,4vw,46px);line-height:1.05;color:var(--mg-green)}.mg-cart-head p{margin:0;color:#68726d}.mg-continue{color:var(--mg-green2);font-weight:700;text-decoration:none;white-space:nowrap}
.mg-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}.mg-cart-main{min-width:0}.mg-cart-groups{display:grid;gap:18px}.mg-cart-card{position:relative;background:#fff;border:1px solid var(--mg-line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(18,63,49,.06);min-width:0}.mg-package-top{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:22px;align-items:center}.mg-package-visual{width:140px;height:140px;border-radius:14px;background:#f7f8f7;display:grid;place-items:center;overflow:hidden}.mg-package-visual img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.mg-package-copy{min-width:0}.mg-package-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#fff4de;color:#965f06;font-size:12px;font-weight:800;text-transform:uppercase}.mg-package-copy h2,.mg-item-copy h2{margin:8px 0 3px;color:var(--mg-green);font-size:clamp(22px,3vw,34px);line-height:1.1;overflow-wrap:anywhere}.mg-package-copy p{margin:0 0 10px;color:#68726d}.mg-package-toggle,.mg-coupon-toggle{border:0;background:transparent;padding:0;color:var(--mg-green2);font-weight:700;cursor:pointer;display:flex;gap:12px;align-items:center}.mg-remove{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--mg-line);color:#6f7773;text-decoration:none;font-size:24px;line-height:1}.mg-remove:hover{color:#8c2f2f;border-color:#e8caca}
.mg-package-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0;padding:15px;border-radius:14px;background:#f8faf8}.mg-component{display:grid;grid-template-columns:66px minmax(0,1fr);gap:12px;align-items:center;min-width:0}.mg-component-image{width:66px;height:66px;display:grid;place-items:center}.mg-component-image img{max-width:100%;max-height:100%;object-fit:contain}.mg-component strong{display:block;overflow-wrap:anywhere}.mg-component small{display:block;color:#77817c;margin-top:2px}
.mg-package-controls{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 0}.mg-control-label{font-weight:800;color:var(--mg-green)}.mg-qty{display:inline-grid;grid-auto-flow:column;align-items:center;border:1px solid #d9dfdb;border-radius:14px;overflow:hidden;background:#fff}.mg-qty-btn{width:44px;height:42px;border:0;background:#fff;color:var(--mg-green);font-size:22px;cursor:pointer}.mg-qty .quantity{margin:0!important}.mg-qty input.qty{width:54px!important;height:42px!important;border:0!important;border-left:1px solid #eef1ef!important;border-right:1px solid #eef1ef!important;border-radius:0!important;text-align:center!important;box-shadow:none!important;background:#fff!important;color:#202724!important}.mg-qty-unit{padding:0 12px;font-size:13px;color:#59635e;white-space:nowrap}.mg-price-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #eee5d7;border-radius:14px;overflow:hidden;background:#fffcf6}.mg-price-strip>div{padding:15px 18px;display:grid;gap:5px;min-width:0}.mg-price-strip>div+div{border-left:1px solid #eee5d7}.mg-price-strip span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#67706c}.mg-price-strip del,.mg-price-strip strong{font-size:clamp(20px,2.5vw,28px);line-height:1.1}.mg-price-strip .is-saving strong{color:var(--mg-accent)}.mg-price-strip .is-total strong{color:var(--mg-green);font-size:clamp(24px,3vw,34px)}
.mg-cart-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto auto auto;gap:18px;align-items:center}.mg-item-image{width:100px;height:100px;display:grid;place-items:center}.mg-item-image img{max-width:100%;max-height:100%;object-fit:contain}.mg-item-copy{min-width:0}.mg-item-copy h2{font-size:20px}.mg-item-price{font-weight:800;color:var(--mg-green)}.mg-item-total{font-size:20px;font-weight:800;color:var(--mg-green);white-space:nowrap}.mg-native-update{display:none!important}
.mg-cart-sidebar{position:sticky;top:24px;display:grid;gap:16px}.mg-summary-card,.mg-coupon-card{background:#fff;border:1px solid var(--mg-line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(18,63,49,.06)}.mg-summary-card h2{margin:0 0 18px;color:var(--mg-green);font-size:24px}.mg-summary-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #edf0ee}.mg-summary-row span{color:#5d6762}.mg-summary-row strong{text-align:right}.mg-summary-row.is-saving span,.mg-summary-row.is-saving strong{color:var(--mg-green2)}.mg-summary-total{display:flex;justify-content:space-between;align-items:end;gap:18px;padding:20px 0 18px}.mg-summary-total span{font-size:18px;font-weight:800}.mg-summary-total strong{font-size:32px;color:var(--mg-green);line-height:1}.mg-checkout-button{display:block;width:100%;text-align:center;padding:15px 18px;border-radius:12px;background:var(--mg-green2);color:#fff!important;font-weight:800;text-decoration:none;transition:transform .15s ease}.mg-checkout-button:hover{transform:translateY(-1px)}.mg-summary-card small{display:block;text-align:center;color:#7a837e;margin-top:10px;line-height:1.45}.mg-coupon-toggle{width:100%;justify-content:space-between;font-size:16px;color:var(--mg-green)}.mg-coupon-form{margin-top:14px}.mg-coupon-form label{display:block;font-size:12px;font-weight:700;color:#67706c;margin-bottom:6px}.mg-coupon-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.mg-coupon-form input{min-width:0;height:44px;border:1px solid #d9dfdb;border-radius:10px;padding:0 12px}.mg-coupon-form button{height:44px;border:0;border-radius:10px;padding:0 15px;background:var(--mg-green2);color:#fff;font-weight:800}.mg-cart-trust{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mg-cart-trust>div{padding:14px;border:1px solid #e4e9e6;border-radius:12px;background:#f9fbf9}.mg-cart-trust strong,.mg-cart-trust span{display:block}.mg-cart-trust strong{color:var(--mg-green);font-size:14px}.mg-cart-trust span{margin-top:3px;color:#73807a;font-size:12px;line-height:1.4}
@media(max-width:980px){.mg-cart-layout{grid-template-columns:1fr}.mg-cart-sidebar{position:static;grid-row:2}.mg-cart-head{align-items:flex-start}.mg-cart-trust{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:700px){.medagro-cart-page{padding:10px 14px 28px}.mg-cart-head{display:block;margin-bottom:18px}.mg-continue{display:inline-block;margin-top:10px}.mg-cart-card{padding:16px;border-radius:15px}.mg-package-top{grid-template-columns:84px minmax(0,1fr) auto;gap:12px;align-items:start}.mg-package-visual{width:84px;height:84px}.mg-package-copy h2{font-size:20px}.mg-package-badge{font-size:10px;padding:5px 8px}.mg-package-components{grid-template-columns:1fr}.mg-package-controls{align-items:flex-start;flex-direction:column}.mg-qty{width:100%;grid-template-columns:44px 1fr auto 44px;grid-auto-flow:unset}.mg-qty .quantity{width:100%!important}.mg-qty input.qty{width:100%!important}.mg-price-strip{grid-template-columns:1fr}.mg-price-strip>div+div{border-left:0;border-top:1px solid #eee5d7}.mg-price-strip>div{display:flex;justify-content:space-between;align-items:center}.mg-cart-item{grid-template-columns:72px minmax(0,1fr) auto}.mg-item-image{width:72px;height:72px}.mg-cart-item>.mg-qty{grid-column:1/-1}.mg-item-total{grid-column:2}.mg-cart-item>.mg-remove{grid-column:3;grid-row:1}.mg-cart-trust{grid-template-columns:1fr}.mg-summary-card,.mg-coupon-card{padding:18px}.mg-summary-total strong{font-size:28px}}
@media(max-width:420px){.mg-package-top{grid-template-columns:70px minmax(0,1fr) auto}.mg-package-visual{width:70px;height:70px}.mg-price-strip del,.mg-price-strip strong{font-size:18px}.mg-price-strip .is-total strong{font-size:24px}}

/* v2.2.11 interaction safety only */
.medagro-cart-page .mg-cart-card,
.medagro-cart-page .mg-package-top,
.medagro-cart-page .mg-package-copy,
.medagro-cart-page .mg-package-controls,
.medagro-cart-page .mg-price-strip,
.medagro-cart-page .mg-cart-sidebar{position:relative}
.medagro-cart-page .mg-package-toggle,
.medagro-cart-page .mg-qty-btn,
.medagro-cart-page .mg-remove,
.medagro-cart-page .mg-coupon-toggle,
.medagro-cart-page .mg-checkout-button,
.medagro-cart-page .mg-coupon-form input,
.medagro-cart-page .mg-coupon-form button{position:relative;z-index:5;pointer-events:auto!important}
.medagro-cart-page .mg-package-components{position:relative;z-index:1}
.medagro-cart-page .mg-qty{position:relative;z-index:4}
.medagro-cart-page .mg-native-update{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}


/* v2.2.12 Premium Cart UI — presentation only, cart logic unchanged */
.medagro-cart-page{
  --mg-green:#123f31;
  --mg-green-deep:#0b3328;
  --mg-green-soft:#eef6f1;
  --mg-gold:#c88a2a;
  --mg-gold-soft:#fff7e8;
  --mg-text:#252b28;
  --mg-muted:#737d78;
  --mg-line:#e7ebe8;
  --mg-surface:#ffffff;
  max-width:1380px;
  padding:22px 24px 48px;
}
.medagro-cart-page .mg-cart-head{margin:4px 0 22px;align-items:center}
.medagro-cart-page .mg-cart-kicker{font-size:11px;letter-spacing:.15em;color:#87918c}
.medagro-cart-page .mg-cart-head h1{font-size:clamp(34px,3vw,44px);letter-spacing:-.035em;color:var(--mg-text);font-weight:750}
.medagro-cart-page .mg-cart-head p{font-size:14px;color:var(--mg-muted)}
.medagro-cart-page .mg-continue{font-size:13px;font-weight:700;color:#53615a;transition:color .18s ease}
.medagro-cart-page .mg-continue:hover{color:var(--mg-green)}

.medagro-cart-page .mg-cart-layout{grid-template-columns:minmax(0,1fr) 338px;gap:24px}
.medagro-cart-page .mg-cart-groups{gap:14px}
.medagro-cart-page .mg-cart-card{
  border:1px solid #e8ece9;
  border-radius:16px;
  padding:18px 20px;
  box-shadow:0 2px 7px rgba(15,49,38,.025),0 12px 30px rgba(15,49,38,.035);
}
.medagro-cart-page .mg-cart-package{background:linear-gradient(180deg,#fff 0%,#fff 74%,#fdfefd 100%)}
.medagro-cart-page .mg-package-top{grid-template-columns:112px minmax(0,1fr) 38px;gap:18px;align-items:center}
.medagro-cart-page .mg-package-visual{width:112px;height:96px;display:grid;place-items:center;background:#f8faf8;border-radius:12px;padding:8px}
.medagro-cart-page .mg-package-visual img{max-width:100%;max-height:100%;object-fit:contain}
.medagro-cart-page .mg-package-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.medagro-cart-page .mg-package-badge{
  display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;
  background:var(--mg-gold-soft);color:#9b661a;border:1px solid #f1dfbf;
  font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;
}
.medagro-cart-page .mg-package-saving-chip{
  display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;
  background:#eef7f1;color:var(--mg-green2);font-size:11px;font-weight:800;
}
.medagro-cart-page .mg-package-copy h2{margin:0 0 3px;font-size:clamp(24px,2.1vw,32px);line-height:1.05;letter-spacing:-.03em;color:var(--mg-text);font-weight:760}
.medagro-cart-page .mg-package-copy p{margin:0 0 7px;font-size:13px;color:#828b86}
.medagro-cart-page .mg-package-toggle{font-size:13px;color:var(--mg-green);gap:7px;font-weight:750}
.medagro-cart-page .mg-package-toggle:hover{color:#0a6942}
.medagro-cart-page .mg-remove{width:32px;height:32px;border-color:transparent;background:#f6f8f6;font-size:19px;color:#8b948f;transition:.16s ease}
.medagro-cart-page .mg-remove:hover{background:#fff0f0;color:#a33f3f;border-color:#f3d3d3}

.medagro-cart-page .mg-package-components{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0;padding:8px;
  border:1px solid #edf0ee;border-radius:12px;background:#fbfcfb;
}
.medagro-cart-page .mg-component{
  grid-template-columns:52px minmax(0,1fr);gap:10px;min-height:64px;padding:7px 10px;
  background:#fff;border:1px solid transparent;border-radius:10px;
}
.medagro-cart-page .mg-component+.mg-component{position:relative}
.medagro-cart-page .mg-component+.mg-component:before{
  content:'+';position:absolute;left:-10px;top:50%;transform:translate(-50%,-50%);
  width:24px;height:24px;border-radius:50%;background:#fff;border:1px solid #e4e9e6;color:var(--mg-green);
  display:grid;place-items:center;font-weight:850;font-size:16px;z-index:2;
}
.medagro-cart-page .mg-component-image{width:52px;height:52px}
.medagro-cart-page .mg-component strong{font-size:13px;line-height:1.3;color:#2d3430}
.medagro-cart-page .mg-component small{font-size:11px;color:#929a96}

.medagro-cart-page .mg-package-controls{margin:14px 0 12px;padding:0 2px;min-height:46px}
.medagro-cart-page .mg-control-label{font-size:13px;font-weight:760;color:#46524c}
.medagro-cart-page .mg-qty{
  border:1px solid #dfe5e1;border-radius:999px;overflow:hidden;background:#fff;
  box-shadow:0 1px 3px rgba(18,63,49,.035);min-height:42px;
}
.medagro-cart-page .mg-qty-btn{
  width:42px;height:42px;background:#fff;color:#263e33;font-size:19px;font-weight:500;
  transition:background .15s ease,color .15s ease;
}
.medagro-cart-page .mg-qty-btn:hover{background:#eef6f1;color:#0b6b43}
.medagro-cart-page .mg-qty .quantity{height:42px!important;display:flex!important;align-items:center!important}
.medagro-cart-page .mg-qty input.qty{
  width:58px!important;height:42px!important;border:0!important;border-left:1px solid #eff2f0!important;border-right:1px solid #eff2f0!important;
  font-size:15px!important;font-weight:800!important;color:#1e2924!important;background:#fff!important;opacity:1!important;
  -moz-appearance:textfield!important;
}
.medagro-cart-page .mg-qty input.qty::-webkit-outer-spin-button,
.medagro-cart-page .mg-qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.medagro-cart-page .mg-qty-unit{padding:0 13px;font-size:12px;color:#77817c;border-right:1px solid #eff2f0;height:42px;display:flex;align-items:center}

.medagro-cart-page .mg-price-strip{
  border:1px solid #ecefeb;border-radius:12px;background:#fbfcfb;overflow:hidden;
  grid-template-columns:.95fr .95fr 1.1fr;
}
.medagro-cart-page .mg-price-strip>div{padding:12px 16px;gap:3px;align-content:center;min-height:76px}
.medagro-cart-page .mg-price-strip>div+div{border-left:1px solid #e9edea}
.medagro-cart-page .mg-price-strip span{font-size:10px;font-weight:760;letter-spacing:.06em;color:#89918d}
.medagro-cart-page .mg-price-strip del,
.medagro-cart-page .mg-price-strip strong{font-size:18px;line-height:1.15;font-weight:760;color:#4a524e}
.medagro-cart-page .mg-price-strip .is-saving{background:#fffcf6}
.medagro-cart-page .mg-price-strip .is-saving strong{color:#b8751e}
.medagro-cart-page .mg-price-strip .is-total{background:#f4f9f6}
.medagro-cart-page .mg-price-strip .is-total span{color:#557065}
.medagro-cart-page .mg-price-strip .is-total strong{font-size:25px;color:var(--mg-green-deep);font-weight:820}

.medagro-cart-page .mg-cart-sidebar{top:18px;gap:12px}
.medagro-cart-page .mg-summary-card,
.medagro-cart-page .mg-coupon-card{
  border:1px solid #e6ebe7;border-radius:15px;padding:20px;
  box-shadow:0 3px 10px rgba(18,63,49,.03),0 14px 34px rgba(18,63,49,.045);
}
.medagro-cart-page .mg-summary-card h2{font-size:21px;color:#25342d;letter-spacing:-.02em;margin-bottom:14px}
.medagro-cart-page .mg-summary-row{padding:10px 0;font-size:13px;border-bottom:1px solid #eef1ef}
.medagro-cart-page .mg-summary-row span{color:#737d78}
.medagro-cart-page .mg-summary-row strong{font-size:13px;color:#343c38}
.medagro-cart-page .mg-summary-row.is-saving span,
.medagro-cart-page .mg-summary-row.is-saving strong{color:#a96819}
.medagro-cart-page .mg-summary-total{padding:17px 0 16px}
.medagro-cart-page .mg-summary-total span{font-size:16px}
.medagro-cart-page .mg-summary-total strong{font-size:29px;color:var(--mg-green-deep);letter-spacing:-.03em}
.medagro-cart-page .mg-checkout-button{
  padding:13px 16px;border-radius:10px;background:linear-gradient(180deg,#124c38,#0d3f30);
  box-shadow:0 7px 18px rgba(15,81,50,.14);font-size:14px;letter-spacing:.01em;
}
.medagro-cart-page .mg-checkout-button:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(15,81,50,.18)}
.medagro-cart-page .mg-summary-card small{font-size:10px;color:#979f9b;margin-top:8px}
.medagro-cart-page .mg-coupon-card{padding:15px 18px;box-shadow:none;background:#fcfdfc}
.medagro-cart-page .mg-coupon-toggle{font-size:13px;font-weight:760;color:#48544e}
.medagro-cart-page .mg-coupon-form input{height:40px;border-radius:9px;background:#fff}
.medagro-cart-page .mg-coupon-form button{height:40px;border-radius:9px;font-size:12px;background:#174a37}

.medagro-cart-page .mg-cart-trust{
  margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  border-top:1px solid #e8ece9;border-bottom:1px solid #e8ece9;
}
.medagro-cart-page .mg-cart-trust>div{padding:13px 16px;border:0;border-radius:0;background:transparent}
.medagro-cart-page .mg-cart-trust>div+div{border-left:1px solid #ecefed}
.medagro-cart-page .mg-cart-trust strong{font-size:12px;color:#46554e}
.medagro-cart-page .mg-cart-trust span{font-size:10px;color:#8a938e;margin-top:2px}

.medagro-cart-page .mg-cart-item{padding:14px 18px;border-radius:14px;grid-template-columns:78px minmax(0,1fr) auto auto 32px}
.medagro-cart-page .mg-item-image{width:78px;height:78px}
.medagro-cart-page .mg-item-copy h2{margin:0 0 4px;font-size:16px;color:#2a332f}
.medagro-cart-page .mg-item-total{font-size:17px}

@media(max-width:1080px){
  .medagro-cart-page .mg-cart-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}
}
@media(max-width:980px){
  .medagro-cart-page .mg-cart-layout{grid-template-columns:1fr}
  .medagro-cart-page .mg-cart-sidebar{position:static}
}
@media(max-width:700px){
  .medagro-cart-page{padding:12px 14px 100px}
  .medagro-cart-page .mg-cart-head h1{font-size:32px}
  .medagro-cart-page .mg-package-top{grid-template-columns:78px minmax(0,1fr) 30px;gap:11px}
  .medagro-cart-page .mg-package-visual{width:78px;height:72px;padding:6px}
  .medagro-cart-page .mg-package-copy h2{font-size:20px}
  .medagro-cart-page .mg-package-saving-chip{display:none}
  .medagro-cart-page .mg-package-components{grid-template-columns:1fr;padding:7px}
  .medagro-cart-page .mg-component+.mg-component:before{display:none}
  .medagro-cart-page .mg-package-controls{flex-direction:row;align-items:center;justify-content:space-between}
  .medagro-cart-page .mg-qty{width:auto;grid-template-columns:42px 58px auto 42px;grid-auto-flow:unset}
  .medagro-cart-page .mg-qty .quantity{width:58px!important}
  .medagro-cart-page .mg-qty input.qty{width:58px!important}
  .medagro-cart-page .mg-price-strip{grid-template-columns:1fr}
  .medagro-cart-page .mg-price-strip>div{min-height:52px;padding:10px 13px;display:flex;justify-content:space-between;align-items:center}
  .medagro-cart-page .mg-price-strip>div+div{border-left:0;border-top:1px solid #e9edea}
  .medagro-cart-page .mg-price-strip .is-total strong{font-size:22px}
  .medagro-cart-page .mg-cart-trust{grid-template-columns:1fr;border-bottom:0}
  .medagro-cart-page .mg-cart-trust>div{padding:10px 4px}
  .medagro-cart-page .mg-cart-trust>div+div{border-left:0;border-top:1px solid #edf0ee}
}
@media(max-width:430px){
  .medagro-cart-page .mg-package-controls{display:grid;grid-template-columns:1fr;gap:8px}
  .medagro-cart-page .mg-qty{justify-self:start}
}

/* v2.2.13 — horizontal premium cart refinement */
.medagro-cart-page{max-width:1480px;padding-left:28px;padding-right:28px}
.medagro-cart-page .mg-cart-layout{grid-template-columns:minmax(0,1fr) 310px;gap:22px}
.medagro-cart-page .mg-cart-head{margin-bottom:16px}
.medagro-cart-page .mg-cart-head>div{max-width:760px}

.medagro-cart-page .mg-cart-package{padding:16px 18px;border-radius:14px}
.medagro-cart-page .mg-package-top{grid-template-columns:96px minmax(0,1fr) 32px;gap:16px;align-items:center}
.medagro-cart-page .mg-package-visual{width:96px;height:78px;padding:5px;background:transparent;border-radius:10px}
.medagro-cart-page .mg-package-copy h2{font-size:clamp(23px,2vw,30px);margin-bottom:2px}
.medagro-cart-page .mg-package-copy p{margin-bottom:5px;font-size:12px}
.medagro-cart-page .mg-package-meta{margin-bottom:4px}
.medagro-cart-page .mg-package-badge,
.medagro-cart-page .mg-package-saving-chip{min-height:21px;padding:3px 8px;font-size:9.5px}
.medagro-cart-page .mg-package-toggle{font-size:12.5px;min-height:28px}
.medagro-cart-page .mg-remove{width:28px;height:28px;font-size:17px;background:transparent}

/* Hidden really means hidden even when theme styles try to override it. */
.medagro-cart-page .mg-package-components[hidden],
.medagro-cart-page .mg-coupon-form[hidden]{display:none!important}
.medagro-cart-page .mg-package-components{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin:10px 0 2px;padding:9px 12px;
  border:1px solid #edf0ee;border-radius:10px;background:#fafbfa;
}
.medagro-cart-page .mg-component{grid-template-columns:44px minmax(0,1fr);min-height:52px;padding:4px 8px;gap:9px}
.medagro-cart-page .mg-component-image{width:44px;height:44px}
.medagro-cart-page .mg-component strong{font-size:12.5px;line-height:1.25}
.medagro-cart-page .mg-component small{font-size:10px}
.medagro-cart-page .mg-component+.mg-component:before{width:20px;height:20px;font-size:13px;left:-10px}

.medagro-cart-page .mg-package-bottom{
  display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:stretch;
  margin-top:11px;padding-top:11px;border-top:1px solid #edf0ee;
}
.medagro-cart-page .mg-package-controls{
  margin:0;padding:0;min-height:58px;display:grid;
  grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:10px;
}
.medagro-cart-page .mg-control-label{font-size:11px;font-weight:760;color:#68736d;white-space:nowrap}
.medagro-cart-page .mg-qty{
  display:grid;grid-template-columns:38px 52px 38px;grid-auto-flow:unset;
  min-height:38px;height:38px;border-radius:10px;border:1px solid #dfe5e1;overflow:hidden;
  box-shadow:none;background:#fff;
}
.medagro-cart-page .mg-qty-btn{width:38px;height:38px;font-size:17px;font-weight:600;background:#fff}
.medagro-cart-page .mg-qty .quantity{width:52px!important;height:38px!important;display:flex!important;align-items:center!important;margin:0!important}
.medagro-cart-page .mg-qty input.qty{
  width:52px!important;height:38px!important;min-height:38px!important;padding:0!important;
  border:0!important;border-left:1px solid #eef1ef!important;border-right:1px solid #eef1ef!important;
  font-size:14px!important;font-weight:800!important;color:#202724!important;text-align:center!important;
}
/* Blocksy/WooCommerce may inject its own +/- buttons inside .quantity. Hide only those duplicates. */
.medagro-cart-page .mg-qty .quantity button,
.medagro-cart-page .mg-qty .quantity .plus,
.medagro-cart-page .mg-qty .quantity .minus,
.medagro-cart-page .mg-qty .quantity .ct-increase,
.medagro-cart-page .mg-qty .quantity .ct-decrease{display:none!important}
.medagro-cart-page .mg-qty-unit{
  height:auto;padding:0;border:0;font-size:11px;color:#7b8580;background:transparent;display:block;
}

.medagro-cart-page .mg-price-strip{
  grid-template-columns:.9fr .9fr 1.15fr;border:0;border-radius:10px;background:#fafbfa;
  min-height:58px;
}
.medagro-cart-page .mg-price-strip>div{min-height:58px;padding:9px 14px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.medagro-cart-page .mg-price-strip>div+div{border-left:1px solid #e9edea}
.medagro-cart-page .mg-price-strip span{font-size:9px;letter-spacing:.055em}
.medagro-cart-page .mg-price-strip del,
.medagro-cart-page .mg-price-strip strong{font-size:15px}
.medagro-cart-page .mg-price-strip .is-saving{background:transparent}
.medagro-cart-page .mg-price-strip .is-total{background:#f3f8f5}
.medagro-cart-page .mg-price-strip .is-total strong{font-size:20px}

.medagro-cart-page .mg-cart-item{padding:11px 14px;grid-template-columns:62px minmax(0,1fr) auto auto 28px;gap:12px;border-radius:12px;box-shadow:0 2px 8px rgba(15,49,38,.025)}
.medagro-cart-page .mg-item-image{width:62px;height:62px}
.medagro-cart-page .mg-item-copy h2{font-size:15px;line-height:1.25}
.medagro-cart-page .mg-item-total{font-size:16px}

.medagro-cart-page .mg-summary-card,
.medagro-cart-page .mg-coupon-card{border-radius:13px;padding:17px 18px;box-shadow:0 5px 20px rgba(18,63,49,.035)}
.medagro-cart-page .mg-summary-card h2{font-size:19px;margin-bottom:10px}
.medagro-cart-page .mg-summary-row{padding:9px 0;font-size:12.5px}
.medagro-cart-page .mg-summary-total{padding:14px 0 13px}
.medagro-cart-page .mg-summary-total span{font-size:14px}
.medagro-cart-page .mg-summary-total strong{font-size:26px}
.medagro-cart-page .mg-checkout-button{padding:12px 14px;border-radius:9px;font-size:13px}
.medagro-cart-page .mg-summary-continue{
  display:block;width:100%;margin-top:8px;padding:10px 14px;text-align:center;
  border:1px solid #dfe5e1;border-radius:9px;background:#fff;color:#31423a!important;
  font-size:12.5px;font-weight:750;text-decoration:none;transition:.15s ease;
}
.medagro-cart-page .mg-summary-continue:hover{border-color:#b9c8c0;background:#f7faf8;color:#123f31!important}
.medagro-cart-page .mg-summary-card small{margin-top:7px;font-size:9.5px}
.medagro-cart-page .mg-coupon-card{padding:13px 16px}
.medagro-cart-page .mg-coupon-toggle{font-size:12.5px}

.medagro-cart-page .mg-cart-trust{margin-top:12px}
.medagro-cart-page .mg-cart-trust>div{padding:10px 12px}
.medagro-cart-page .mg-cart-trust strong{font-size:11px}
.medagro-cart-page .mg-cart-trust span{font-size:9.5px}

@media(max-width:1120px){
  /* Keep the desktop cart geometry stable; only tighten the outer gap. */
  .medagro-cart-page .mg-cart-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}
  .medagro-cart-page .mg-package-bottom{grid-template-columns:300px minmax(0,1fr)}
  .medagro-cart-page .mg-package-controls{grid-template-columns:auto auto auto;gap:10px;align-content:initial}
}
@media(max-width:980px){
  .medagro-cart-page .mg-cart-layout{grid-template-columns:1fr}
  .medagro-cart-page .mg-cart-sidebar{position:static}
  .medagro-cart-page .mg-package-bottom{grid-template-columns:280px minmax(0,1fr)}
}
@media(max-width:700px){
  .medagro-cart-page{padding:10px 12px 96px}
  .medagro-cart-page .mg-package-top{grid-template-columns:70px minmax(0,1fr) 28px;gap:10px}
  .medagro-cart-page .mg-package-visual{width:70px;height:64px}
  .medagro-cart-page .mg-package-copy h2{font-size:19px}
  .medagro-cart-page .mg-package-components{grid-template-columns:1fr;margin-top:8px}
  .medagro-cart-page .mg-component+.mg-component:before{display:none}
  .medagro-cart-page .mg-package-bottom{grid-template-columns:1fr;gap:9px;margin-top:9px;padding-top:9px}
  .medagro-cart-page .mg-package-controls{grid-template-columns:auto auto auto;justify-content:start;gap:8px}
  .medagro-cart-page .mg-price-strip{grid-template-columns:1fr 1fr 1.15fr}
  .medagro-cart-page .mg-price-strip>div{min-height:52px;padding:8px 9px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
  .medagro-cart-page .mg-price-strip>div+div{border-top:0;border-left:1px solid #e9edea}
  .medagro-cart-page .mg-price-strip del,
  .medagro-cart-page .mg-price-strip strong{font-size:13px}
  .medagro-cart-page .mg-price-strip .is-total strong{font-size:17px}
}
@media(max-width:460px){
  .medagro-cart-page .mg-package-controls{grid-template-columns:1fr;justify-items:start}
  .medagro-cart-page .mg-price-strip{grid-template-columns:1fr}
  .medagro-cart-page .mg-price-strip>div{min-height:42px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}
  .medagro-cart-page .mg-price-strip>div+div{border-left:0;border-top:1px solid #e9edea}
}

/* v2.2.15 — cart update race guard (no visual redesign) */
.medagro-cart-page .medagro-cart-form[aria-busy="true"] .mg-qty-btn{pointer-events:none}

/* v2.2.16 — cart column top alignment only */
.medagro-cart-page .mg-cart-main,
.medagro-cart-page .medagro-cart-form,
.medagro-cart-page .mg-cart-groups,
.medagro-cart-page .mg-cart-sidebar,
.medagro-cart-page .mg-summary-card{
  margin-top:0!important;
}
.medagro-cart-page .mg-cart-main,
.medagro-cart-page .mg-cart-sidebar{
  align-self:start;
}
.medagro-cart-page .mg-summary-card{
  position:relative;
  top:0;
}
