/* Sushi Tempo: корзина */
/* cart */
.cartbar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:950;display:none;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;border-radius:999px;background:#e30613;color:#fff;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.45);font-weight:700;text-transform:uppercase;transform:translateY(160%);opacity:0;transition:transform .25s ease,opacity .25s ease;pointer-events:none}
.cartbar.has-items{display:flex}
.cartbar.has-items.is-shown{transform:translateY(0);opacity:1;pointer-events:auto}
.cartbar__left{display:flex;align-items:center;gap:8px}
.cartbar__badge{box-sizing:border-box;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:#fff;color:#e30613;font-size:14px;line-height:24px;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.cartbar__sum{white-space:nowrap}
.cartbar__arrow{font-size:20px;line-height:0;margin-left:4px}
@media (min-width:768px){.cartbar{display:none!important}}
@media (max-width:767.98px){body.has-cartbar{padding-bottom:84px}}
.cart-fixed{display:none!important}
a.up{display:none!important}
.header__cart{background:#e30613!important;color:#fff!important;border-radius:999px;padding:8px 16px;position:relative;display:inline-flex;align-items:center;gap:8px}
.header__cart path{stroke:#fff}
.header__cart p,.header__cart span{color:#fff!important}
.header__cart>span{font-size:0!important;width:auto!important;display:inline-flex!important}
.header__cart .ms2_total_count{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:11px!important;background:transparent!important;color:#fff!important;font-size:13px!important;font-weight:700!important;line-height:1!important;text-align:center!important}
.header__cart.has-items .ms2_total_count{background:#fff!important;color:#e30613!important}
@keyframes cartPulse{0%{box-shadow:0 0 0 0 rgba(227,6,19,.55)}70%{box-shadow:0 0 0 14px rgba(227,6,19,0)}100%{box-shadow:0 0 0 0 rgba(227,6,19,0)}}
@keyframes cartBump{0%{transform:scale(1)}30%{transform:scale(1.12)}60%{transform:scale(.96)}100%{transform:scale(1)}}
.header__cart.has-items{animation:cartPulse 2.5s ease-out infinite}
.cartbar.has-items.is-shown{animation:cartPulse 2.5s ease-out infinite}
.header__cart.cart-bump,.cartbar.cart-bump{animation:cartBump .5s ease,cartPulse 2.5s ease-out infinite .5s}
@media (prefers-reduced-motion:reduce){.header__cart,.cartbar{animation:none!important}}

/* to top */
.totop{position:fixed;right:16px;bottom:24px;z-index:949;width:52px;height:52px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.4);opacity:0;transform:translateY(20px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.totop.is-shown{opacity:1;transform:none;pointer-events:auto}
.totop img{width:22px;height:22px}
@media (max-width:767.98px){body.has-cartbar .totop{bottom:96px}}
/* empty cart */
.header__cart:not(.has-items) .ms2_total_count,.header__cart:not(.has-items)>span{display:none!important}

/* clear cart */
.cart-clear-form{display:flex;justify-content:center;margin:12px 0 20px}
.cart-clear-btn{display:inline-flex;align-items:center;gap:8px;width:auto!important;max-width:none!important;height:auto!important;padding:10px 24px!important;border:2px solid #e30613!important;border-radius:999px!important;background:transparent!important;color:#e30613!important;font-size:14px!important;font-weight:700;line-height:1.2;text-transform:uppercase;white-space:nowrap;overflow:visible!important;cursor:pointer;transition:background .2s,color .2s}
.cart-clear-btn::before{content:'\2715';font-size:13px}
.cart-clear-btn:hover{background:#e30613!important;color:#fff!important}
