.we-product-image-viewer-host {
  position: relative;
}

.we-product-image-zoom-trigger {
  cursor: zoom-in;
  outline: none;
}

.we-product-image-zoom-trigger:focus-visible {
  outline: 3px solid #ef373e;
  outline-offset: 4px;
}

.we-product-image-viewer__launch {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(7, 10, 15, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  font: 800 13px/1 system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.we-product-image-viewer__launch:hover,
.we-product-image-viewer__launch:focus-visible {
  border-color: #ef373e;
  background: #151a22;
  outline: none;
}

.gambit-conversion-media > .we-product-image-viewer__launch {
  bottom: 100px;
}

.seo-product-carousel-stage.we-product-image-viewer-host > .we-product-image-viewer__launch {
  right: auto;
  left: 14px;
}

.we-product-image-viewer {
  width: min(96vw, 1500px);
  height: min(94dvh, 1050px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #f7f9fc;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: #070a0f;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}

.we-product-image-viewer::backdrop {
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(6px);
}

.we-product-image-viewer__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.we-product-image-viewer__header,
.we-product-image-viewer__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #0c1118;
}

.we-product-image-viewer__header {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.we-product-image-viewer__footer {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.we-product-image-viewer__header span {
  display: block;
  margin-bottom: 3px;
  color: #ef5a60;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.we-product-image-viewer__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 2.2vw, 23px);
}

.we-product-image-viewer__close,
.we-product-image-viewer__nav,
.we-product-image-viewer__tools button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  font: 800 20px/1 system-ui, sans-serif;
  cursor: pointer;
}

.we-product-image-viewer__close {
  font-size: 30px;
}

.we-product-image-viewer__close:hover,
.we-product-image-viewer__close:focus-visible,
.we-product-image-viewer__nav:hover,
.we-product-image-viewer__nav:focus-visible,
.we-product-image-viewer__tools button:hover,
.we-product-image-viewer__tools button:focus-visible {
  border-color: #ef373e;
  background: rgba(239, 55, 62, .2);
  outline: none;
}

.we-product-image-viewer__viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(35, 44, 57, .7), transparent 58%),
    #05070a;
  outline: none;
  touch-action: none;
  user-select: none;
}

.we-product-image-viewer__viewport > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform .16s ease;
  will-change: transform;
  pointer-events: none;
}

.we-product-image-viewer__viewport.is-zoomed {
  cursor: grab;
}

.we-product-image-viewer__viewport.is-zoomed:active {
  cursor: grabbing;
}

.we-product-image-viewer__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 52px;
  height: 64px;
  transform: translateY(-50%);
  background: rgba(7, 10, 15, .78);
  font-size: 42px;
}

.we-product-image-viewer__nav.is-previous {
  left: 14px;
}

.we-product-image-viewer__nav.is-next {
  right: 14px;
}

.we-product-image-viewer__footer > div:first-child {
  display: grid;
  gap: 4px;
}

.we-product-image-viewer__footer strong {
  color: #fff;
  font-size: 15px;
}

.we-product-image-viewer__footer span,
.we-product-image-viewer__footer small {
  color: #aeb9c7;
  font-size: 12px;
}

.we-product-image-viewer__footer small {
  color: #8491a2;
}

.we-product-image-viewer__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.we-product-image-viewer__tools .we-product-image-viewer__reset {
  min-width: 58px;
  font-size: 13px;
}

.we-product-image-viewer__level {
  min-width: 48px;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.we-product-image-viewer__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;
}

html.we-product-image-viewer-open .gambit-sticky-offers,
html.we-product-image-viewer-open .we-fitment-command,
html.we-product-image-viewer-open [data-we-fitment-command] {
  visibility: hidden !important;
}

@media (max-width: 640px) {
  .we-product-image-viewer__launch {
    right: 10px;
    bottom: 10px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .gambit-conversion-media > .we-product-image-viewer__launch {
    bottom: 88px;
  }

  .seo-product-carousel-stage.we-product-image-viewer-host > .we-product-image-viewer__launch {
    right: auto;
    left: 10px;
  }

  .we-product-image-viewer {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .we-product-image-viewer__header,
  .we-product-image-viewer__footer {
    padding: 10px 12px;
  }

  .we-product-image-viewer__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .we-product-image-viewer__tools {
    width: 100%;
    justify-content: center;
  }

  .we-product-image-viewer__nav {
    width: 46px;
    height: 58px;
  }

  .we-product-image-viewer__nav.is-previous {
    left: 7px;
  }

  .we-product-image-viewer__nav.is-next {
    right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .we-product-image-viewer__viewport > img {
    transition: none;
  }
}
