.fx-shipping {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --fx-ease: cubic-bezier(.2,.7,0,1);
  --fx-dur: 1100ms;
  --fx-truck-dur: 3s;
}
.fx-shipping > .fx-label {
  position: relative;
  z-index: 10;
}
.fx-shipping .fx-stars,
.fx-shipping .fx-tear,
.fx-shipping .fx-truck {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx-shipping .fx-stars { z-index: 5; }

.fx-shipping .fx-stars img.star {
  position: absolute;
  display: block;
  opacity: 0;
  transform: translate3d(0,0,0) scale(.8) rotate(0deg);
  transition:
    opacity 200ms ease-out,
    transform 800ms var(--fx-ease);
  filter: drop-shadow(0 0 2px rgba(255,255,255,.6));
}

.fx-shipping .star.left.big     { left: 10%; bottom: 18%; width: 18px; height: 18px; }
.fx-shipping .star.left.small   { left: 16%; bottom: 35%; width: 10px; height: 10px; }
.fx-shipping .star.top.small    { left: 42%; top:   10%; width: 10px; height: 10px; }
.fx-shipping .star.right.small  { right: 14%; top:  26%; width: 10px; height: 10px; }
.fx-shipping .star.right.big    { right: 10%; bottom: 16%; width: 18px; height: 18px; }

.fx-shipping:hover .star.left.big     { opacity: 1; transform: translate(-16px, -6px)  rotate(-18deg) scale(1); }
.fx-shipping:hover .star.left.small   { opacity: 1; transform: translate(-12px, -10px) rotate(-12deg) scale(1); }
.fx-shipping:hover .star.top.small    { opacity: 1; transform: translate(0, -14px)     rotate(10deg)  scale(1); }
.fx-shipping:hover .star.right.small  { opacity: 1; transform: translate(12px, -8px)   rotate(16deg)  scale(1); }
.fx-shipping:hover .star.right.big    { opacity: 1; transform: translate(18px, 6px)    rotate(20deg)  scale(1); }

.fx-shipping .fx-tear {
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.fx-shipping .tear-half {
  position: relative;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
  transform: translateX(0);
  transition: transform var(--fx-dur) var(--fx-ease);
}

.fx-shipping .tear-half img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: .95;
  mix-blend-mode: multiply;
}

.fx-shipping .tear-left  img { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.fx-shipping .tear-right img { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }

.fx-shipping:hover .fx-tear { opacity: 1; }
.fx-shipping:hover .tear-left  { transform: translateX(-120%); }
.fx-shipping:hover .tear-right { transform: translateX(120%); }

.fx-shipping .fx-truck { z-index: 20; overflow: visible; }
.fx-shipping .fx-truck img {
  position: absolute;
  bottom: 5px;
  left: -12%;
  width: 44%;
  max-width: 65px;
  transform: translateX(-35%) translateZ(0);
  will-change: transform;
  transition: transform var(--fx-truck-dur) var(--fx-ease);
}
.fx-shipping:hover .fx-truck img {
  transform: translateX(615%) translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .fx-shipping .fx-stars img.star,
  .fx-shipping .fx-truck img,
  .fx-shipping .tear-half {
    transition: none !important;
    animation: none !important;
  }
}
