.shopping-motion {
  --motion-ground:#f4f5f6;
  --motion-control-height:48px;
  --tower-height:74%;
  position:relative;
  isolation:isolate;
  width:100%;
  min-width:0;
  margin:0;
  color:#1c2024;
}
.shopping-motion .sm-stage {
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  aspect-ratio:1.5;
  background:var(--motion-ground);
  border-radius:inherit;
}
.shopping-motion .sm-tower {
  position:absolute;
  left:50%;
  top:52%;
  height:var(--tower-height);
  aspect-ratio:948 / 980;
  transform:translate(-50%,-50%);
}
.shopping-motion .sm-poster {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  pointer-events:none;
}
.shopping-motion .sm-samples {opacity:0;pointer-events:none}
.shopping-motion .sm-samples {
  position:absolute;
  left:7%;
  top:50%;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  justify-items:center;
  align-items:center;
  width:86%;
  height:27%;
  transform:translateY(-50%);
}
.shopping-motion .sm-samples img {display:block;width:78%;height:100%;min-width:0;min-height:0;object-fit:contain}
.shopping-motion .sm-controls {
  min-height:var(--motion-control-height);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:3px 15px;
  padding:0 4px;
}
.shopping-motion .sm-controls button,.shopping-motion .sm-controls summary,.shopping-motion .sm-gif {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:42px;
  margin:0;
  padding:3px 2px;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;line-height:1.25;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  list-style:none;
}
.shopping-motion .sm-controls button:hover,.shopping-motion .sm-controls summary:hover,.shopping-motion .sm-gif:hover {text-decoration:underline;text-underline-offset:3px}
.shopping-motion .sm-controls :is(button,summary,a):active {opacity:.65}
.shopping-motion .sm-controls :is(button,summary,a):focus-visible {outline:2px solid #1674b5;outline-offset:3px}
.shopping-motion .sm-controls [hidden],.shopping-motion.sm-ready .sm-native,.shopping-motion .sm-close {display:none}
.shopping-motion .sm-native[open] .sm-close {display:inline}
.shopping-motion .sm-native[open] .sm-watch,.shopping-motion .sm-native summary::-webkit-details-marker {display:none}
.shopping-motion .sm-native-view {display:none}
.shopping-motion .sm-native[open] .sm-native-view {
  display:block;
  position:absolute;
  top:0;
  left:0;
  width:100%;
  aspect-ratio:1.5;
  background:var(--motion-ground) url("studio-media/tower-sort.gif") center / contain no-repeat;
  border-radius:inherit;
  pointer-events:none;
}
@media(max-width:700px) {
  .shopping-motion .sm-stage,.shopping-motion .sm-native[open] .sm-native-view {aspect-ratio:1.32}
  .shopping-motion .sm-samples {left:5%;width:90%;height:26%}
  .shopping-motion .sm-controls {gap:3px 12px}
}

.shopping-motion .sm-steps {display:none}
@media(prefers-reduced-motion:reduce) {
  .shopping-motion .sm-native .sm-watch {display:none}
  .shopping-motion .sm-native:not([open]) .sm-steps {display:inline}
  .shopping-motion .sm-native[open] .sm-native-view {
    background:var(--motion-ground) url("studio-media/sorting-three-steps.webp") center / contain no-repeat;
  }
}

/* A real still-image route, independent of GSAP, video codecs and GIF autoplay. */
.shopping-motion .sm-static[open] {flex-basis:100%;width:100%}
.shopping-motion .sm-step-view {padding:12px 0 18px}
.shopping-motion .sm-step-view img {display:block;width:100%;height:auto;object-fit:contain}
.shopping-motion .sm-step-view p {font-size:14px;line-height:1.5;margin:10px 0 0}
@media(prefers-reduced-motion:reduce) {
  .shopping-motion .sm-native {display:none}
}
