/*
 * Global color inversion toggle.
 * Migrated from Elementor Pro Custom Code ID 1275.
 */

#color-invert-toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #222;
	color: #e3e3e3;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	user-select: none;
	z-index: 9999;
}

#color-invert-toggle img {
	width: 24px;
	height: 24px;
	display: block;
	pointer-events: none;
}

html {
	transition: filter 0.5s ease;
}

html.inverted {
	filter: invert(1) hue-rotate(180deg);
}

html.inverted video,
html.inverted iframe {
	filter: invert(1) hue-rotate(180deg);
	will-change: filter;
	transition: filter 0.5s ease;
	backface-visibility: hidden;
	transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
	html,
	html.inverted video,
	html.inverted iframe {
		transition: none;
	}
}
