.page-product .dlm-product-zoom-enabled {
  position: relative;
}

.page-product .dlm-product-zoom-trigger {
  cursor: zoom-in;
  -webkit-tap-highlight-color: rgba(179, 63, 122, 0.16);
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.page-product .dlm-product-zoom-trigger:hover {
  filter: brightness(0.985);
}

.page-product .dlm-product-zoom-trigger:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(179, 63, 122, 0.28);
  outline: 3px solid #8f2f61;
  outline-offset: 3px;
}

.page-product .dlm-product-zoom-enabled::after {
  align-items: center;
  background: rgba(42, 21, 19, 0.88);
  border-radius: 999px;
  bottom: 16px;
  color: #fff;
  content: '\1f50d  ' attr(data-dlm-zoom-hint);
  display: flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  left: 16px;
  line-height: 1.2;
  max-width: calc(100% - 88px);
  padding: 9px 13px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.page-product #product-modal .modal-dialog {
  margin: 12px auto;
  max-width: min(1120px, calc(100vw - 24px));
}

.page-product #product-modal[data-dlm-native-modal="open"] {
  opacity: 1 !important;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0 !important;
  visibility: visible !important;
  z-index: 1050;
}

.dlm-product-modal-backdrop {
  z-index: 1040;
}

.page-product #product-modal .product-cover-modal {
  height: auto;
  max-height: calc(100dvh - 150px);
  max-width: 100%;
  object-fit: contain;
  touch-action: pinch-zoom;
}

.page-product #product-modal .tvmodel-close {
  align-items: center;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-width: 44px;
}

@media (max-width: 767px) {
  .page-product .dlm-product-zoom-enabled::after {
    bottom: 10px;
    content: '\1f50d  ' attr(data-dlm-zoom-touch-hint);
    font-size: 12px;
    left: 10px;
    max-width: calc(100% - 72px);
    padding: 8px 11px;
  }

  .page-product #product-modal .modal-dialog {
    margin: 6px auto;
    max-width: calc(100vw - 12px);
  }

  .page-product #product-modal .modal-body {
    padding: 10px;
  }

  .page-product #product-modal .product-cover-modal {
    max-height: calc(100dvh - 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-product .dlm-product-zoom-trigger {
    transition: none;
  }
}
