/* ===== SHENGMILO – side cart upsell + button effect (all pages) ===== */
.smc-up { margin: 10px 0 12px; }
.smc-up-btn { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--smc, #E53935); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; animation: smc-shake 3.2s ease-in-out infinite; transform-origin: center; }
.smc-up-btn:hover { animation-play-state: paused; filter: brightness(.93); }
.smc-up-btn.is-busy { opacity: .6; pointer-events: none; animation: none; }
@keyframes smc-shake { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-2.5deg); } 88% { transform: rotate(2.5deg); } 91% { transform: rotate(-2deg); } 94% { transform: rotate(1.5deg); } 97% { transform: rotate(-.5deg); } }
@media (prefers-reduced-motion: reduce) { .smc-up-btn { animation: none; } }

/* modern hover: darker colour slides in at an angle */
body.smc-fx .woocommerce-mini-cart__buttons .checkout,
body.smc-fx #place_order,
body.smc-fx .smc-up-btn { position: relative; overflow: hidden; isolation: isolate; }
body.smc-fx .woocommerce-mini-cart__buttons .checkout::before,
body.smc-fx #place_order::before,
body.smc-fx .smc-up-btn::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -20%; width: 0; background: rgba(0,0,0,.22); transform: skewX(-22deg); transition: width .45s cubic-bezier(.2,.7,.3,1); }
body.smc-fx .woocommerce-mini-cart__buttons .checkout:hover::before,
body.smc-fx #place_order:hover::before,
body.smc-fx .smc-up-btn:hover::before { width: 145%; }
body.smc-fx #place_order:hover, body.smc-fx .smc-up-btn:hover { filter: none; }

/* no cart page → side cart shows only the Checkout button */
body.smc-nocart .woocommerce-mini-cart__buttons a.button:not(.checkout),
body.smc-nocart .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) { display: none !important; }
body.smc-nocart .woocommerce-mini-cart__buttons a.checkout { width: 100% !important; margin: 0 !important; }
