/* MotoEkip - Миниатюры мобильной галереи v1.0.1 */
/* Keep the desktop product gallery unchanged. */
.me-mobile-gallery-thumbs-wrap { display: none; }
.me-mobile-gallery-thumbs { display: none; }
@media (max-width: 991px) {
  .thumbnails.me-mobile-thumbs-ready .me-mobile-gallery-thumbs-wrap {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
    margin: 9px 0 14px;
  }
  .thumbnails.me-mobile-thumbs-ready .me-mobile-gallery-thumbs {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin: 0;
    padding: 3px 2px 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }
  .thumbnails .me-mobile-gallery-thumbs::-webkit-scrollbar { display: none; }
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin: 0;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 7px;
    box-shadow: none;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb.is-active {
    border-color: #f56e00;
  }
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb:focus-visible {
    outline: 2px solid #f56e00;
    outline-offset: 2px;
  }
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb-video {
    font-size: 12px;
    font-weight: 600;
  }
  /* Soft fades indicate that more thumbnails are outside the viewport. */
  .thumbnails .me-mobile-gallery-thumbs-wrap::before,
  .thumbnails .me-mobile-gallery-thumbs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 5px;
    width: 35px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease;
  }
  .thumbnails .me-mobile-gallery-thumbs-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,.96), rgba(255,255,255,0));
  }
  .thumbnails .me-mobile-gallery-thumbs-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,.96), rgba(255,255,255,0));
  }
  .thumbnails .me-mobile-gallery-thumbs-wrap.can-scroll-prev::before,
  .thumbnails .me-mobile-gallery-thumbs-wrap.can-scroll-next::after { opacity: 1; }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: calc(50% - 2px);
    z-index: 3;
    transform: translateY(-50%);
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #f56e00;
    box-shadow: 0 1px 5px rgba(0,0,0,.13);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow:not([hidden]) { display: flex !important; }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow[hidden] { display: none !important; }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow.is-prev { left: 2px; }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow.is-next { right: 2px; }
  .thumbnails .me-mobile-gallery-thumbs-wrap .me-mobile-gallery-arrow:focus-visible {
    outline: 2px solid #f56e00;
    outline-offset: 2px;
  }
  .thumbnails.me-mobile-thumbs-ready .rev-mgallery__dots { display: none !important; }
}
@media (max-width: 380px) {
  .thumbnails .me-mobile-gallery-thumbs .me-mobile-gallery-thumb {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
}
