.mg-main-product-image {
  transition: opacity .16s ease, transform .16s ease;
}

.mg-main-product-image.is-changing {
  opacity: .45;
  transform: scale(.985);
}

.mg-thumbnail-button {
  display: block;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mg-thumbnail-button:hover {
  transform: translateY(-2px);
}

.mg-thumbnail-button.active {
  border-color: #2256f2;
  box-shadow: 0 0 0 2px rgba(34, 86, 242, .16);
}

.mg-thumbnail-button:focus-visible {
  outline: 3px solid #b9ef36;
  outline-offset: 3px;
}

.mg-thumbnail-button img,
.mg-thumbnails .mg-thumbnail-button img {
  display: block;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 7px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .mg-thumbnail-button img,
  .mg-thumbnails .mg-thumbnail-button img {
    width: 60px;
    height: 60px;
  }
}
