/* ---- Stage ------------------------------------------------------------- */

.esmira-vx-exs-stage {
	width: 100%;
	min-width: 0;
	position: relative;
	background-color: var(--esmira-vx-exs-stage-bg, transparent);
	transition-property: background, border, border-radius, box-shadow;
	transition-duration: var(--esmira-vx-exs-bg-transition, 0.3s), var(--esmira-vx-exs-border-transition, 0.3s), var(--esmira-vx-exs-border-transition, 0.3s), var(--esmira-vx-exs-border-transition, 0.3s);
}

/* Container-like overlay: sits above the Stage background, under inner widgets. */
.esmira-vx-exs-stage::before {
	content: var(--esmira-vx-exs-overlay, none);
	display: block;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	border-radius: inherit;
	opacity: var(--esmira-vx-exs-overlay-opacity, 0.5);
	mix-blend-mode: var(--esmira-vx-exs-overlay-blend, normal);
	transition: opacity var(--esmira-vx-exs-overlay-transition, 0.3s), background var(--esmira-vx-exs-overlay-transition, 0.3s), filter var(--esmira-vx-exs-overlay-transition, 0.3s);
}

.esmira-vx-exs-stage > * {
	position: relative;
	z-index: 1;
}

.esmira-vx-exs-stage > .e-con {
	width: 100%;
}

/* Inner Elementor container must not paint over the Stage Style background. */
.elementor-widget-esmira-vx-expand-stage .esmira-vx-exs-stage > .e-con,
.elementor-widget-esmira-vx-expand-stage .esmira-vx-exs-stage > .e-con > .e-con-inner {
	background-color: transparent !important;
	background-image: none !important;
}

/* Holds the page layout while the Stage is pinned fixed in place. */
.esmira-vx-exs-spacer {
	flex-shrink: 0;
	pointer-events: none;
}

/* ---- Expanded shell (pinned in place over the viewport) ---------------- */

.esmira-vx-exs-target {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box;
	overflow: auto;
	transform-origin: center center;
	transition-property: transform, opacity;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	transition-duration: 0ms;
	will-change: transform, opacity;
}

.esmira-vx-exs-target.is-expanded .esmira-vx-exs-stage {
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

/* Dual layout: Stage pane vs Expanded layout pane (sibling .e-con). */
body:not(.elementor-editor-active) .esmira-vx-exs-has-layout:not(.is-expanded) .esmira-vx-exs-stage > .e-con ~ .e-con {
	display: none !important;
}

body:not(.elementor-editor-active) .esmira-vx-exs-has-layout.is-expanded .esmira-vx-exs-stage > .e-con:first-child:has(~ .e-con) {
	display: none !important;
}

.elementor-widget-esmira-vx-expand-stage:not(.esmira-vx-exs-has-layout) .esmira-vx-exs-stage > .e-con ~ .e-con {
	display: none !important;
}

body.elementor-editor-active .esmira-vx-exs-has-layout .esmira-vx-exs-stage:not(.esmira-vx-exs-preview-layout) > .e-con ~ .e-con {
	display: none !important;
}

body.elementor-editor-active .esmira-vx-exs-has-layout .esmira-vx-exs-stage.esmira-vx-exs-preview-layout > .e-con:first-child:has(~ .e-con) {
	display: none !important;
}

.esmira-vx-exs-pinned {
	box-sizing: border-box;
}

/* ---- Overlay ----------------------------------------------------------- */

.esmira-vx-exs-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 18, 24, 0.45);
	opacity: 0;
	pointer-events: none;
	z-index: 99999;
	transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.esmira-vx-exs-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

body.esmira-vx-exs-lock {
	overflow: hidden;
}

/* ---- Button ------------------------------------------------------------ */

.esmira-vx-exs-button-wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.esmira-vx-exs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-sizing: border-box;
}

/* Voxel .ts-btn uses a fixed height and padding: 0 <horizontal>. That swallows
   padding-top/bottom (border-box). Height auto lets the Padding control work.
   .ts-btn-1 also paints a kit fill (often white); empty Style → Background
   must stay transparent until Collapsed/Expanded set a color. */
.esmira-vx-exs-button.ts-btn {
	height: auto;
	min-height: 0;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
}

.esmira-vx-exs-button.ts-btn:hover,
.esmira-vx-exs-button.ts-btn:focus {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
}

.esmira-vx-exs-button__state {
	display: inline-flex;
	align-items: center;
	gap: inherit;
}

/* Voxel ships `.ts-btn > span { display:flex }` (specificity 0,1,1) which would
   otherwise beat these; `!important` keeps exactly one state visible. */
.esmira-vx-exs-button__state--reduce,
.esmira-vx-exs-button.is-expanded .esmira-vx-exs-button__state--expand {
	display: none !important;
}

.esmira-vx-exs-button.is-expanded .esmira-vx-exs-button__state--reduce {
	display: inline-flex !important;
}

.esmira-vx-exs-button__icon,
.esmira-vx-exs-button__icon i,
.esmira-vx-exs-button__icon svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ---- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.esmira-vx-exs-target,
	.esmira-vx-exs-overlay {
		transition: none !important;
	}
}
