/* Product image dimensions remain owned by style.css. */
.safety-product-link { display: block; }
.safety-product-link.nm-safety-zoom-enabled { cursor: zoom-in; }
.safety-product-link:focus-visible { outline: 2px solid #336699; outline-offset: 4px; border-radius: 6px; }
.nm-safety-zoom-pane, .nm-safety-zoom-lens { box-sizing: border-box; position: fixed; pointer-events: none; }
.nm-safety-zoom-pane { z-index: 9000; overflow: hidden; border: 1px solid #b4c4b8; border-radius: 8px; background: #fff; box-shadow: 0 6px 22px #0003; }
.nm-safety-zoom-pane .nm-safety-zoom-image { position: absolute; left: 0; top: 0; max-width: none; max-height: none; object-fit: contain; }
.nm-safety-zoom-lens { z-index: 9001; background: #79b79538; border: 1px solid #4e8966; }
.nm-safety-zoom-pane[hidden], .nm-safety-zoom-lens[hidden] { display: none; }
.nm-safety-zoom-dialog { padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; box-shadow: none; }
.nm-safety-zoom-dialog::backdrop { background: rgba(255,255,255,.72); }
.nm-safety-zoom-content { position: relative; }
.nm-safety-zoom-full { display: block; width: auto; height: auto; max-width: calc(100vw - 76px); max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 5px 25px #0002; touch-action: auto; }
.nm-safety-zoom-close { position: absolute; right: -13px; top: -13px; z-index: 2; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #e1e5e2; border-radius: 50%; background: #fff; color: #45534a; box-shadow: 0 2px 8px #0002; cursor: pointer; }
.nm-safety-zoom-close:hover { background: #f1f4f2; }
.nm-safety-zoom-close:focus-visible { outline: 2px solid #336699; outline-offset: 3px; }
.nm-safety-zoom-close-mark { position: relative; display: block; width: 12px; height: 12px; pointer-events: none; }
.nm-safety-zoom-close-mark::before, .nm-safety-zoom-close-mark::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.nm-safety-zoom-close-mark::after { transform: rotate(-45deg); }
.nm-safety-zoom-hint {
  --nm-safety-hint-ready: 1;
  position: absolute; right: var(--nm-safety-hint-inset); bottom: var(--nm-safety-hint-inset);
  box-sizing: border-box; overflow: hidden; border: 1px solid #e2e6e3; border-radius: 10px;
  background: #fff; box-shadow: 0 2px 9px #0002; pointer-events: none; z-index: 2;
  opacity: .5; transition: opacity var(--nm-safety-hint-in) ease;
}
.nm-safety-zoom-hint > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; transform: scale(1.65); }
.nm-safety-zoom-hint.is-entering { opacity: 0; }
.nm-safety-zoom-hint.is-fading { opacity: 0; transition-duration: var(--nm-safety-hint-out); }
.nm-safety-zoom-hint[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .nm-safety-zoom-hint { display: none; transition: none; }
}
@media (pointer: coarse) {
  .nm-safety-zoom-close { width: 44px; height: 44px; right: -16px; top: -16px; }
}
