/* Overlay the parent container so mix-blend-mode can cut through sibling headings. */
.elementor-widget-treethemes-shape-hover {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	pointer-events: none !important;
	mix-blend-mode: difference;
}

.elementor-widget-treethemes-shape-hover,
.elementor-widget-treethemes-shape-hover * {
	pointer-events: none !important;
	touch-action: pan-y;
}

.e-con:has(> .elementor-element.elementor-widget-treethemes-shape-hover),
.elementor-widget-wrap:has(> .elementor-widget-treethemes-shape-hover) {
	position: relative;
	overflow: visible !important;
}

.elementor-widget-treethemes-shape-hover .elementor-widget-container {
	height: 100%;
	overflow: visible;
}

.tt-shape-hover {
	position: absolute;
	inset: 0;
	pointer-events: none !important;
	overflow: visible;
}

/* Sized like Resonance .hs-line — percent width/height resolve against the parent container. */
.tt-shape-hover__mover {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3%;
	height: 160%;
	will-change: transform;
	transition-property: transform;
	transition-duration: 270ms;
	transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

/* Sized like Resonance .hs-line:before — rotation lives here so mouse translate can sit on the mover. */
.tt-shape-hover__shape {
	--tt-shape-rotate: 30deg;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	transform: translate(-50%, -50%) rotate(var(--tt-shape-rotate));
	transform-origin: center center;
}

.tt-shape-hover--circle .tt-shape-hover__mover {
	height: auto;
	aspect-ratio: 1 / 1;
}

.tt-shape-hover--circle .tt-shape-hover__shape {
	border-radius: 50%;
}

.tt-shape-hover--pill .tt-shape-hover__shape {
	border-radius: 999px;
}

/*
 * Keep the shape visible on touch, frozen, and not a scrollport.
 * Never overflow-x:clip the parent section — that computes overflow-y:auto
 * and traps iOS inside a 100vh container.
 */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
	.elementor-widget-treethemes-shape-hover,
	.elementor-widget-treethemes-shape-hover *,
	.tt-shape-hover,
	.tt-shape-hover__mover,
	.tt-shape-hover__shape {
		pointer-events: none !important;
		touch-action: pan-y;
	}

	.elementor-widget-treethemes-shape-hover,
	.elementor-widget-treethemes-shape-hover .elementor-widget-container,
	.tt-shape-hover {
		overflow: visible !important;
	}

	.tt-shape-hover__mover {
		transition: none;
		will-change: auto;
		transform: none !important;
	}

	.e-con:has(> .elementor-element.elementor-widget-treethemes-shape-hover),
	.elementor-widget-wrap:has(> .elementor-widget-treethemes-shape-hover) {
		overflow: visible !important;
	}
}

.elementor-editor-active .elementor-widget-treethemes-shape-hover,
.elementor-editor-active .elementor-widget-treethemes-shape-hover * {
	pointer-events: auto !important;
}

.elementor-editor-active .elementor-widget-treethemes-shape-hover {
	display: block !important;
	outline: 1px dashed rgba(109, 76, 255, 0.45);
	outline-offset: -1px;
	min-height: 24px;
}
