/* Cart (cart.js): on a phone the stepper and the line total share one row; the toast after «В корзину». */
@media(max-width:600px){
  .cart-page-line{grid-template-columns:70px minmax(0,1fr)}
  .cart-page-quantity,.cart-page-total{grid-column:1/-1;grid-row:2}
  .cart-page-quantity{justify-self:start}
  .cart-page-total{justify-self:end;align-self:end}
  .cart-remove{min-height:40px;padding:0 10px 0 0}
}

.toast.bp-toast-cart{display:flex;align-items:center;gap:18px;width:max-content;max-width:calc(100vw - 32px);padding:12px 12px 12px 18px;pointer-events:auto}
.bp-toast-text{display:grid;gap:2px;min-width:0}
.bp-toast-text b{font-size:14px;font-weight:700}
.bp-toast-text small{overflow:hidden;font-size:12.5px;opacity:.8;text-overflow:ellipsis;white-space:nowrap}
.bp-toast-link{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.bp-toast-link:focus-visible{outline:2px solid var(--paper);outline-offset:2px}
/* On a product page the buy bar sits at the bottom of a phone screen: the toast goes above it. */
@media(max-width:860px){body:has(.pdp2-bar.is-visible) .toast{bottom:96px}}
