/**
 * DiaSensors — Elementor compatibility
 * Neutralizes theme shell rules that fight Elementor layout / widgets.
 * Uses logical properties for Hebrew RTL parity.
 */

/* Full-bleed content area when Elementor owns the page */
.ds-site-main--elementor {
	padding-block: 0;
}

.ds-elementor-content .ds-site-main,
.ds-elementor-header-footer .ds-site-main,
.ds-elementor-canvas .ds-site-main {
	padding-block: 0;
}

/* Do not constrain stretched Elementor sections */
.ds-site:has(.elementor) {
	overflow-x: clip;
}

.elementor-section.elementor-section-stretched {
	max-width: 100vw;
}

/* Theme link defaults must not override Elementor widget styles */
.elementor-element a,
.elementor-widget a,
.elementor-widget-container a {
	color: inherit;
	text-decoration: inherit;
}

.elementor-element a:hover,
.elementor-element a:focus-visible,
.elementor-widget a:hover,
.elementor-widget a:focus-visible {
	color: inherit;
}

/* Theme global image display:block can break inline Elementor icons */
.elementor img {
	height: auto;
	max-width: 100%;
}

.elementor .elementor-widget-icon img,
.elementor .elementor-icon img,
.elementor .elementor-widget-icon-box img {
	display: inline-block;
}

/* Lists inside Elementor should follow widget spacing, not theme ul padding */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
	padding-inline-start: 1.25rem;
}

/* Hide theme page chrome leftovers if any wrap Elementor accidentally */
.ds-site-main--elementor > .ds-container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Editor preview: keep sticky header from covering Elementor UI chrome */
.elementor-editor-active .ds-site-header {
	z-index: 1;
}

/* RTL: ensure Elementor containers respect document direction */
html[dir="rtl"] .elementor,
body.rtl .elementor,
body.ds-rtl .elementor {
	direction: rtl;
}

html[dir="ltr"] .elementor,
body.ds-ltr .elementor {
	direction: ltr;
}
