/**
 * Bulltac - Fly to cart para Salient + WooCommerce.
 */

.bulltac-fly-to-cart {
	position: fixed !important;
	z-index: 99999999 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
	transform-origin: center center;
	animation: bulltacFlyToCart 800ms cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes bulltacFlyToCart {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
		opacity: 1;
	}

	55% {
		transform: translate3d(var(--bulltac-fly-mid-x), var(--bulltac-fly-mid-y), 0) scale(.55) rotate(4deg);
		opacity: .9;
	}

	100% {
		transform: translate3d(var(--bulltac-fly-x), var(--bulltac-fly-y), 0) scale(.06) rotate(8deg);
		opacity: 0;
	}
}

.bulltac-cart-hit {
	animation: bulltacCartHit .45s ease !important;
}

@keyframes bulltacCartHit {
	0% { transform: scale(1); }
	35% { transform: scale(1.35); }
	65% { transform: scale(.9); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.bulltac-fly-to-cart {
		animation-duration: .01ms !important;
	}

	.bulltac-cart-hit {
		animation: none !important;
	}
}
