/**
 * Elementor compatibility styles for rahino theme.
 *
 * Isolates Elementor from theme CSS and ensures full-width layouts work.
 */

/* ------------------------------------------------------------------
   Isolate Elementor from theme shell styles
   ------------------------------------------------------------------ */

.elementor,
.elementor-section,
.elementor-column,
.elementor-widget,
.elementor-widget-container,
.elementor-element {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	direction: inherit;
}

.elementor a {
	color: inherit;
}

.elementor img {
	height: auto;
}

.elementor-widget-wrap {
	width: 100%;
}

/* Reset theme form/button styles inside Elementor */
.elementor button,
.elementor input,
.elementor select,
.elementor textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
	color: inherit;
}

/* ------------------------------------------------------------------
   Full-width layouts
   ------------------------------------------------------------------ */

.site-main--elementor-full-width,
.site-main--elementor-full-width .page-content,
.site-main.rahino-elementor-content,
.site-main.rahino-elementor-content .page-content {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

body.rahino-elementor-page .site-main .page-content,
body.elementor-page .site-main .page-content,
body.elementor-default .site-main .page-content {
	max-width: none;
	width: 100%;
}

.elementor-location-single,
.elementor-location-archive,
.elementor-location-header,
.elementor-location-footer {
	width: 100%;
}

/* Canvas template */
body.page-template-elementor-canvas {
	margin: 0;
}

body.page-template-elementor-canvas .site-main,
body.page-template-elementor-canvas #content {
	margin: 0;
	padding: 0;
	max-width: none;
}

/* ------------------------------------------------------------------
   Page title
   ------------------------------------------------------------------ */

body.elementor-page-title-hidden .page-header {
	display: none;
}

/* ------------------------------------------------------------------
   RTL
   ------------------------------------------------------------------ */

body.rtl .elementor-section-wrap {
	direction: rtl;
}

/* ------------------------------------------------------------------
   Editor / preview — prevent theme z-index conflicts
   ------------------------------------------------------------------ */

body.elementor-editor-active .main-navigation ul ul,
body.elementor-preview .main-navigation ul ul {
	z-index: 1;
}

/* Hide theme sidebar widgets from appearing inside Elementor canvas */
body.elementor-editor-active .widget-area,
body.elementor-preview .widget-area {
	display: none;
}

/* WordPress legacy widget block inside Elementor editor */
.elementor-editor-active .wp-block-legacy-widget,
.elementor-editor-active .block-editor-block-list__block[data-type="core/legacy-widget"] {
	display: none !important;
}

/* ------------------------------------------------------------------
   WordPress alignments inside Elementor
   ------------------------------------------------------------------ */

.elementor-widget-text-editor .alignwide,
.elementor-widget-theme-post-content .alignwide {
	width: 100%;
}

.elementor-widget-text-editor .alignfull,
.elementor-widget-theme-post-content .alignfull {
	width: 100%;
	max-width: none;
}

/* Stretched sections must not be clipped by theme */
#page.site {
	overflow: visible;
}

.site-main.rahino-elementor-content {
	overflow: visible;
}
