/* MozSecureVision Product Gallery v2.0.0 */
.msvpg-gallery{
  width:100%;
  margin:0 0 10px;
  padding:0;
  box-sizing:border-box;
}

.msvpg-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0;
  padding:0;
}

.msvpg-thumb{
  appearance:none;
  width:78px;
  height:78px;
  flex:0 0 78px;
  margin:0;
  padding:3px;
  overflow:hidden;
  background:#fff;
  border:2px solid rgba(31,111,235,.22);
  border-radius:11px;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.msvpg-thumb:hover,
.msvpg-thumb:focus-visible{
  transform:translateY(-2px);
  border-color:#1f6feb;
  box-shadow:0 6px 16px rgba(31,111,235,.2);
  outline:none;
}

.msvpg-thumb.is-active{
  border-color:#11a84a;
  box-shadow:0 0 0 2px rgba(17,168,74,.16),0 6px 16px rgba(0,0,0,.12);
}

.msvpg-thumb img{
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:cover;
  border-radius:7px;
}

/* Reduz o espaço vertical no topo do produto sem mexer no formulário. */
.single-product.msvpg-enabled div.product .summary{
  margin-top:0!important;
  padding-top:0!important;
}

.single-product.msvpg-enabled div.product .product_title{
  margin-top:0!important;
}

.msvpg-lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:1000000;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.msvpg-lightbox[aria-hidden="false"]{
  display:flex;
}

.msvpg-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,10,24,.92);
}

.msvpg-dialog{
  position:relative;
  z-index:1;
  width:min(1100px,96vw);
  height:min(860px,92vh);
  display:flex;
  align-items:center;
  justify-content:center;
}

.msvpg-stage{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  touch-action:pan-y pinch-zoom;
}

.msvpg-stage img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}

.msvpg-close,
.msvpg-nav{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  color:#fff;
  background:rgba(0,0,0,.56);
  cursor:pointer;
}

.msvpg-close{
  top:0;
  right:0;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:32px;
  line-height:1;
}

.msvpg-nav{
  top:50%;
  width:46px;
  height:58px;
  border-radius:12px;
  transform:translateY(-50%);
  font-size:40px;
}

.msvpg-prev{left:0;}
.msvpg-next{right:0;}

.msvpg-counter{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  padding:7px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.58);
  color:#fff;
  font-size:13px;
  font-weight:800;
}

html.msvpg-open,
html.msvpg-open body{
  overflow:hidden!important;
}

@media(max-width:768px){
  .msvpg-gallery{
    margin-bottom:8px;
  }

  .msvpg-strip{
    flex-wrap:nowrap;
    gap:6px;
    overflow-x:auto;
    padding:0 2px 4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .msvpg-strip::-webkit-scrollbar{
    display:none;
  }

  .msvpg-thumb{
    width:64px;
    height:64px;
    flex-basis:64px;
    padding:2px;
    border-radius:9px;
  }

  .msvpg-thumb img{
    border-radius:6px;
  }

  .msvpg-lightbox{
    padding:10px;
  }

  .msvpg-dialog{
    width:100%;
    height:94vh;
  }

  .msvpg-nav{
    width:40px;
    height:50px;
    font-size:34px;
  }

  .msvpg-close{
    width:40px;
    height:40px;
    font-size:28px;
  }
}
