/**
 * Elementor preview / editor canvas fixes.
 */

/* Theme body flex layout breaks Elementor canvas height */
body.elementor-editor-preview,
body.elementor-page {
  display: block !important;
  min-height: auto !important;
}

/*
 * Scroll-reveal elements start hidden (opacity: 0) until IntersectionObserver runs.
 * Elementor injects widgets after app.js — reveals never fire in the editor.
 */
body.elementor-editor-preview .ob-reveal,
body.elementor-page .ob-reveal,
.elementor-editor-preview .ob-reveal,
.elementor-edit-area .ob-reveal {
  opacity: 1 !important;
  transform: none !important;
}

body.elementor-editor-preview .ob-analysis-bar,
body.elementor-editor-preview .ob-chart-placeholder,
body.elementor-editor-preview [data-sparkline] {
  opacity: 1 !important;
}

/* Header chrome should not intercept Elementor canvas clicks */
.elementor-editor-preview .ob-chrome,
.elementor-editor-preview .ob-annbar,
.elementor-editor-preview .ob-deals-strip {
  pointer-events: none;
}

.elementor-editor-preview .ob-nav__item--mega .ob-mega,
.elementor-editor-preview .ob-nav__item--dropdown .ob-nav__dropdown {
  display: none !important;
}

/* Widget sections need visible width inside Elementor containers */
.elementor-widget .ob-home-hero,
.elementor-widget .ob-section,
.elementor-widget .ob-marquee-band,
.elementor-widget .ob-el-section {
  width: 100%;
}
