/* ===== ONE-PRODUCT SCOPE ===== */
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-container {
  flex: 1 1 auto;
}

/* Right-side vertical thumbnails (desktop) */
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-list.ppw-vert {
  position: static !important;
  flex: 0 0 96px;
  width: 96px;
  margin: 0 !important;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(18,21,31,.06);
  overflow-y: auto;
  overflow-x: hidden;
}
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-list.ppw-vert .ms-thumbs-cont {
  position: static !important;
  left: auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
}

/* Thumbs */
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-frame {
  width: 100% !important;
  height: 84px !important;
  margin: 0 !important;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(18,21,31,.08);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .12s ease;
}
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-frame:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(106,45,226,.35), 0 1px 8px rgba(18,21,31,.06);
}
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-frame.ms-thumb-frame-selected {
  box-shadow: inset 0 0 0 2px #6a2de2;
}
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Hide MS nav arrows in our rail */
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumblist-fwd,
body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumblist-bwd {
  display: none !important;
}

/* ===== <=991px: thumbs horizontal BELOW the main image ===== */
@media (max-width: 991px) {
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex {
    flex-direction: column;
    gap: 12px;
  }
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-container { order: 1; }
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-list.ppw-vert {
    order: 2;
    position: static !important;
    bottom: auto !important; left: auto !important; right: auto !important;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
    overflow-x: auto; overflow-y: hidden;
  }
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-list.ppw-vert .ms-thumbs-cont {
    position: static !important; left: auto !important; width: max-content;
    display: flex !important; flex-direction: row !important; gap: 10px; white-space: nowrap;
  }
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumb-frame {
    width: 72px !important; height: 72px !important; flex: 0 0 72px; margin: 0 !important;
  }
  
    /* optional: hide any leftover MS nav buttons in mobile mode */
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumblist-fwd,
  body.ex-product-lenovothinkcentretinyinone22leddisplay546cm2151920x1080pixelsfullhdblack .productimage_container .ppw-ms-flex .ms-thumblist-bwd {
    display: none !important;
  }
}


