/* Keep WooCommerce/FlexSlider in charge of the main image and variations. */
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails {
  position: relative;
  clear: both;
  width: 100%;
  margin: 20px 0 0;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs li {
  flex: 0 0 calc((100% - 72px) / 5) !important;
  width: calc((100% - 72px) / 5) !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 1 !important;
  border: 2px solid transparent !important;
  padding: 0;
  cursor: pointer;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs img.flex-active {
  border-color: #111 !important;
}
.single-product .woocommerce-product-gallery .sf-gallery-thumbnails img:focus-visible {
  outline: 2px solid #0c2944;
  outline-offset: -4px;
}
.single-product .woocommerce-product-gallery .sf-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #111;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  cursor: pointer;
}
.single-product .woocommerce-product-gallery .sf-gallery-arrow[hidden] { display: none !important; }
.single-product .woocommerce-product-gallery .sf-gallery-arrow--previous { left: 0; }
.single-product .woocommerce-product-gallery .sf-gallery-arrow--next { right: 0; }
.single-product .woocommerce-product-gallery .sf-gallery-arrow svg { width: 22px; height: 22px; }
.single-product .woocommerce-product-gallery .sf-gallery-arrow:focus-visible { outline: 2px solid #0c2944; outline-offset: 2px; }
@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery .sf-gallery-thumbnails { margin-top: 14px; }
  .single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs { gap: 10px !important; }
  .single-product .woocommerce-product-gallery .sf-gallery-thumbnails .flex-control-thumbs li {
    flex-basis: calc((100% - 30px) / 4.25) !important;
    width: calc((100% - 30px) / 4.25) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .woocommerce-product-gallery .flex-control-thumbs { scroll-behavior: auto; }
}
