html body.single-product .mw-product-template .mwd-gallery-strip-ready {
  width: 100% !important;
}

html body.single-product .mw-product-template .mwd-gallery-strip-ready .flex-viewport {
  width: 100% !important;
  border-radius: 22px;
  overflow: hidden !important;
}

html body.single-product .mw-product-template .mwd-gallery-strip-ready .woocommerce-product-gallery__image {
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--mwd-surface, #f7f7f7) !important;
  overflow: hidden !important;
}

html body.single-product .mw-product-template .mwd-gallery-strip-ready .woocommerce-product-gallery__image > a > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 18px !important;
  border: 0 !important;
  object-fit: contain !important;
}

html body.single-product .mw-product-template .mwd-gallery-strip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  align-items: center;
}

html body.single-product .mw-product-template .mwd-gallery-strip-viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  touch-action: pan-y;
}

html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs {
  display: flex !important;
  gap: 12px !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1) !important;
  will-change: transform;
}

html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs li {
  flex: 0 0 var(--mwd-gallery-thumb) !important;
  width: var(--mwd-gallery-thumb) !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  float: none !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--mwd-surface, #f7f7f7);
  overflow: hidden;
}

html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 10px !important;
  border: 2px solid transparent !important;
  border-radius: 16px !important;
  object-fit: contain !important;
  opacity: .72 !important;
  cursor: pointer;
}

html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs img.flex-active {
  border-color: var(--mwd-red, #db2b33) !important;
  opacity: 1 !important;
}

html body.single-product .mw-product-template .mwd-gallery-arrow {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--mwd-border, #dedede) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--mwd-ink, #0d0d0d) !important;
  box-shadow: 0 6px 20px #0002 !important;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

html body.single-product .mw-product-template .mwd-gallery-arrow:hover {
  border-color: transparent !important;
  background: var(--mwd-gradient, #db2b33) !important;
  color: #fff !important;
}

html body.single-product .mw-product-template .mwd-gallery-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}

html body.single-product .mw-product-template .mwd-gallery-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  html body.single-product .mw-product-template .mwd-gallery-strip {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  html body.single-product .mw-product-template .mwd-gallery-arrow {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs li {
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.single-product .mw-product-template .mwd-gallery-strip .flex-control-thumbs {
    transition: none !important;
  }
}
