.we-product-gallery-host {
  position: relative !important;
}

.we-product-gallery-host img {
  cursor: default !important;
}

.we-product-gallery__action,
.we-product-gallery__arrow {
  position: absolute;
  z-index: 24;
  display: inline-grid;
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(5, 9, 14, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.we-product-gallery__action:hover,
.we-product-gallery__action:focus-visible,
.we-product-gallery__arrow:hover,
.we-product-gallery__arrow:focus-visible {
  color: #fff;
  border-color: #ef373e;
  background: rgba(31, 37, 47, .96);
  outline: 3px solid rgba(239, 55, 62, .32);
  outline-offset: 2px;
}

.we-product-gallery__action svg,
.we-product-gallery__arrow svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.we-product-gallery__share {
  top: 14px;
  left: 14px;
}

.we-product-gallery__favorite {
  top: 14px;
  right: 14px;
}

.we-product-gallery__favorite.is-saved {
  color: #fff;
  border-color: #ef373e;
  background: #d8212a;
}

.we-product-gallery__favorite.is-saved svg {
  fill: currentColor;
}

.we-product-gallery__arrow {
  top: 50% !important;
  width: 50px;
  height: 58px;
  transform: translateY(-50%) !important;
  border-radius: 14px;
}

.we-product-gallery__arrow.is-previous,
.we-product-gallery__arrow[data-we-product-gallery-arrow="previous"] {
  right: auto !important;
  left: 12px !important;
}

.we-product-gallery__arrow.is-next,
.we-product-gallery__arrow[data-we-product-gallery-arrow="next"] {
  right: 12px !important;
  left: auto !important;
}

.we-product-gallery__arrow svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.3;
}

.we-product-gallery__toast {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: 24px;
  max-width: min(90vw, 430px);
  margin: 0;
  padding: 12px 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(8, 12, 18, .96);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .48);
  font: 800 13px/1.3 system-ui, sans-serif;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}

.we-product-gallery__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.we-product-gallery__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.we-tpms-gallery-main.we-product-gallery-host {
  display: block;
}

@media (max-width: 640px) {
  .we-product-gallery__action {
    top: 10px;
    width: 44px;
    height: 44px;
  }

  .we-product-gallery__share {
    left: 10px;
  }

  .we-product-gallery__favorite {
    right: 10px;
  }

  .we-product-gallery__arrow {
    width: 44px;
    height: 54px;
  }

  .we-product-gallery__arrow.is-previous,
  .we-product-gallery__arrow[data-we-product-gallery-arrow="previous"] {
    left: 8px !important;
  }

  .we-product-gallery__arrow.is-next,
  .we-product-gallery__arrow[data-we-product-gallery-arrow="next"] {
    right: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .we-product-gallery__toast {
    transition: none;
  }
}
