/* Tedy V4: conservative mobile stability adjustments; preserves Emerald/Gold appearance. */
html.tedy-drawer-open, html.tedy-drawer-open body { overflow: hidden !important; overscroll-behavior: none; }
#drawer.open { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#drawer[aria-hidden="true"] { pointer-events: none; }
#drawerBackdrop[hidden] { display: none !important; pointer-events: none; }
.tedy-catalog-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 18px 12px 28px; }
.tedy-catalog-more button { min-height: 44px; max-width: 100%; }
/* Keep full furniture visible rather than cropping important legs or cabinet edges. */
.product-image-frame img, .detail-photo img { object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  #drawer, #drawerBackdrop { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* V5: pointer controls are isolated to the dashed box; the rest of the photo scrolls. */
#page-room #cameraStage { touch-action: pan-y !important; }
#page-room #cameraEmpty, #page-room #roomPhoto, #page-room #cameraVideo {
  pointer-events:none !important; touch-action:pan-y !important;
}
#page-room #redMarker { pointer-events:auto !important; touch-action:none !important; cursor:grab; }
#page-room #redMarker:active { cursor:grabbing; }
#page-room #redMarker .red-handle { pointer-events:none !important; }
#page-room #productOverlay { filter:drop-shadow(0 13px 6px rgba(0,0,0,.50)); }
#page-room .room-picked img { object-fit:contain; }
@media (prefers-reduced-motion:reduce) {#page-room #redMarker { transition:none !important; }}
