/* Cart add feedback: replaces heavy Added to cart tooltip. */

.liv-cart-fly-dot {
  position: fixed;
  z-index: 999999;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f7df3, #78d318);
  box-shadow: 0 10px 22px rgba(31,125,243,.28);
  transform: translate(-50%, -50%);
  animation: livCartFly .68s cubic-bezier(.22,.74,.18,1) forwards;
}

@keyframes livCartFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--liv-cart-x, 0px)), calc(-50% + var(--liv-cart-y, 0px))) scale(.32); }
}

.liv-cart-pulse {
  animation: livCartPulse .86s ease-out;
}

@keyframes livCartPulse {
  0% { transform: scale(1); }
  24% { transform: scale(1.08); }
  48% { transform: scale(.98); }
  72% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.liv-store-sidebar-mini-cart.liv-cart-pulse,
[data-liv-store-head-cart].liv-cart-pulse,
[data-consumer-open-sheet="cart"].liv-cart-pulse,
[data-liv-open-cart].liv-cart-pulse {
  box-shadow: 0 0 0 6px rgba(120,211,24,.16), 0 18px 42px rgba(15,47,114,.16) !important;
}

@media (prefers-reduced-motion: reduce) {
  .liv-cart-fly-dot { display: none; }
  .liv-cart-pulse { animation: none; }
}
