.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;
  }
}
/* WHEEL_ELITE_PRODUCT_GALLERY_CONTROLS_V4 */
.we-product-gallery-host img.we-product-gallery__zoom-source {
  cursor: zoom-in !important;
}

.we-product-gallery__zoom-open {
  top: auto !important;
  right: 14px !important;
  bottom: 14px !important;
  left: auto !important;
}

.we-product-gallery__inline-zoom {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: min(78vh, 720px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: inherit;
  background: rgba(6, 9, 13, .98);
  box-shadow: inset 0 0 0 1px rgba(239, 55, 62, .18), 0 18px 48px rgba(0, 0, 0, .46);
}

.we-product-gallery__inline-zoom[hidden] {
  display: none !important;
}

.we-product-gallery__zoom-toolbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: rgba(8, 12, 18, .96);
}

.we-product-gallery__zoom-control {
  display: inline-grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: #171c24;
  font: 900 22px/1 system-ui, sans-serif;
  cursor: pointer;
}

.we-product-gallery__zoom-control:hover,
.we-product-gallery__zoom-control:focus-visible {
  border-color: #ef373e;
  background: #272e3a;
  outline: 3px solid rgba(239, 55, 62, .3);
  outline-offset: 2px;
}

.we-product-gallery__zoom-control:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.we-product-gallery__zoom-reset {
  width: auto;
  min-width: 64px;
  padding-inline: 10px;
  font-size: 12px;
  letter-spacing: .02em;
}

.we-product-gallery__zoom-close {
  margin-left: 4px;
  border-color: rgba(239, 55, 62, .72);
  background: #b51f28;
}

.we-product-gallery__zoom-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: auto;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%),
    #090c11;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.we-product-gallery__zoom-viewport:focus-visible {
  outline: 3px solid rgba(239, 55, 62, .7);
  outline-offset: -3px;
}

.we-product-gallery__zoom-canvas {
  display: grid;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  place-items: center;
}

.we-product-gallery__zoom-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 640px) {
  .we-product-gallery__zoom-open {
    right: 10px !important;
    bottom: 10px !important;
  }

  .we-product-gallery__inline-zoom {
    max-height: min(68vh, 560px);
    border-radius: 12px;
  }

  .we-product-gallery__zoom-toolbar {
    gap: 6px;
    padding: 7px;
    overflow-x: auto;
  }

  .we-product-gallery__zoom-control {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .we-product-gallery__zoom-reset {
    width: auto;
    min-width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .we-product-gallery__inline-zoom,
  .we-product-gallery__zoom-image {
    scroll-behavior: auto;
  }
}
