/* Cart: one deliberate entrance/exit, no animation on rows or totals. */
.cart-overlay .cart-shade{opacity:0;transition:opacity 260ms var(--ease-va)}
.cart-overlay .cart-panel{transform:translateX(100%);opacity:.92;transition:transform 260ms var(--ease-va),opacity 260ms var(--ease-va)}
.cart-overlay.is-open .cart-shade{opacity:1}
.cart-overlay.is-open .cart-panel{transform:translateX(0);opacity:1}
.cart-overlay.is-closing .cart-shade,.cart-overlay.is-closing .cart-panel{transition-duration:200ms}
.cart-panel{max-height:100vh;max-height:100dvh}
.cart-panel-head{flex:none}
.cart-panel-head h2{line-height:1.2}
.cart-add-feedback{flex:none;margin:0;padding:11px 20px;border-bottom:1px solid #cfe6d4;background:#eaf6ed;color:#205a3d;font-size:13px;font-weight:800;line-height:1.5}
.cart-contents{min-height:0;overscroll-behavior:contain}
.cart-item{min-width:0}
.cart-item>div{min-width:0}
.cart-item h3{overflow-wrap:anywhere}
.cart-item-price{white-space:normal;text-align:right;overflow-wrap:anywhere}
.qty-row button,.qty-row input{width:44px;min-width:44px;height:44px;min-height:44px}
.qty-row input{padding:4px 2px}
.cart-panel-footer{flex:none;max-height:48vh;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}
.cart-summary{align-items:baseline;gap:14px;border-top:1px solid #e1e9e3;padding-top:13px}
.cart-summary strong{white-space:nowrap}
.cart-notes-label{display:block;margin:15px 0 6px;color:#294d36;font-size:12px;font-weight:800}
.cart-textarea{margin:0 0 12px}
.cart-submit{min-height:48px}
.cart-submit[disabled]{cursor:wait}
.cart-price-warning{margin-top:10px}
.cart-message:not(:empty){margin-top:12px}
.cart-success{padding:30px 8px;text-align:center}
.cart-success h3{margin:0 0 10px;color:#205a3d;font-size:22px;line-height:1.25}
.cart-success p{margin:0 0 20px;color:#617365;font-size:13px;line-height:1.6}
.cart-success h3:focus{outline:none}
.cart-panel button:focus-visible,.cart-panel input:focus-visible,.cart-panel textarea:focus-visible,.cart-panel a:focus-visible{outline:3px solid #31925b;outline-offset:2px}
.cart-panel .close-cart,.cart-panel .clear-cart,.cart-panel .qty-row button,.cart-panel .cart-submit{transition:transform 120ms var(--ease-va),background-color 120ms var(--ease-va)}
.cart-panel .close-cart:active,.cart-panel .clear-cart:active,.cart-panel .qty-row button:active,.cart-panel .cart-submit:active{transform:scale(.97)}
@media(max-width:430px){
  .cart-panel-head{padding:16px}
  .cart-panel-head h2{font-size:24px}
  .cart-panel .close-cart{width:44px;height:44px}
  .cart-contents{padding:12px 16px}
  .cart-item{grid-template-columns:56px minmax(0,1fr);gap:8px 12px}
  .cart-item img{width:56px;height:68px}
  .cart-item-price{grid-column:2;text-align:left}
  .cart-panel-footer{padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
  .cart-summary strong{font-size:18px}
}
@media(max-width:340px){
  .cart-head-actions{gap:5px}
  .clear-cart{font-size:11px}
  .qty-row{gap:5px}
}
@media(prefers-reduced-motion:reduce){
  .cart-overlay .cart-panel,.cart-overlay.is-open .cart-panel{transform:none;transition:opacity 120ms ease}
  .cart-overlay .cart-shade{transition:opacity 120ms ease}
  .cart-panel .close-cart,.cart-panel .clear-cart,.cart-panel .qty-row button,.cart-panel .cart-submit{transition:none}
  .cart-panel .close-cart:active,.cart-panel .clear-cart:active,.cart-panel .qty-row button:active,.cart-panel .cart-submit:active{transform:none}
}
