/* Shopping cart on phones (< 768px): card list instead of the 5-column table. */
.cart-m__list { list-style: none; margin: 0; padding: 0; }
.cart-m__item { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "img info remove" "img total total"; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cart-m__item:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
.cart-m__img { grid-area: img; width: 56px; height: 72px; object-fit: contain; align-self: center; }
.cart-m__info { grid-area: info; min-width: 0; }
.cart-m__name { margin: 0 0 2px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; }
.cart-m__meta { margin: 0; color: rgba(255, 255, 255, .6); font-size: 14px; }
.cart-m__meta s, .cart-m__total s { color: rgba(255, 255, 255, .4); margin-right: 4px; }
.cart-m__total { grid-area: total; text-align: right; font-size: 16px; color: #fff; white-space: nowrap; }
.cart-m__remove { grid-area: remove; align-self: start; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px 0 0; border-radius: 50%; color: rgba(255, 255, 255, .55) !important; font-size: 16px; text-decoration: none !important; }
.cart-m__remove:hover, .cart-m__remove:focus-visible { background: rgba(255, 255, 255, .08); color: #ff6b6b !important; }
.cart-m__summary { padding: 14px 0 4px; }
.cart-m__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.cart-m__row--promo span:last-child { color: #8fd18f; }
.cart-m__row--total { color: #fff; font-size: 18px; }
.cart-m__cta { position: sticky; bottom: 0; z-index: 5; margin: 8px -15px 0; padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); background: rgba(40, 40, 40, .96); box-shadow: 0 -6px 16px rgba(0, 0, 0, .35); }
.cart-m__cta .btn { min-height: 50px; display: flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 8px; }

@media (max-width: 767.98px) {
    /* shorter cover so the cart is visible without scrolling */
    .cart_page #shopCoverImg { height: 170px; }
    .cart_page > .shopPageHeader > #shopTitle { top: 62%; font-size: 30px; }
    .cart_page .container.pt-4 { padding-top: 16px !important; }
    .cart_page .cart-main { min-height: 0 !important; padding-bottom: 24px !important; }
}
