.product-miniature__image-container,
.thumbnail-container {
  position: relative;
}

.cmd-pm-card-active > a {
  position: relative;
  display: block;
  height: 100%;
}

.cmd-pm-card-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmd-pm-card-incoming {
  position: absolute;
  inset: 0;
  animation: cmd-pm-card-fade 220ms ease-in-out both;
}

@keyframes cmd-pm-card-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product__grid-images[hidden],
.product__no-image[hidden] {
  display: none !important;
}

.cmd-pm-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: #111;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.cmd-pm-arrow--previous {
  left: 0.5rem;
}

.cmd-pm-arrow--next {
  right: 0.5rem;
}

.cmd-pm-video-tile {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}

.cmd-pm-video-tile__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmd-pm-video-toggle {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  cursor: pointer;
}

.cmd-pm-video-toggle::before {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.9rem solid currentcolor;
  content: "";
}

.cmd-pm-video-playing .cmd-pm-video-toggle::before,
.cmd-pm-card-playing .cmd-pm-card-play::before {
  width: 0.85rem;
  height: 1rem;
  margin-left: 0;
  border: 0;
  border-right: 0.3rem solid currentcolor;
  border-left: 0.3rem solid currentcolor;
}

.cmd-pm-card-play {
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
}

.cmd-pm-video-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .js-product-miniature .cmd-pm-arrow {
    opacity: 0;
    transition: opacity 120ms ease-in-out;
  }

  .cmd-pm-touch-controls .cmd-pm-arrow,
  .cmd-pm-card-active:hover .cmd-pm-arrow,
  .cmd-pm-card-active:focus-within .cmd-pm-arrow {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmd-pm-card-incoming {
    animation: none;
  }

  .cmd-pm-arrow {
    transition: none;
  }
}
