/* Easytrack Theme Switcher — hardened against theme/Elementor overrides. */

.ets-dock,
.ets-dock * {
	box-sizing: border-box !important;
}

.ets-dock {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.ets-dock.ets-floating {
	position: fixed !important;
	right: 20px !important;
	bottom: 20px !important;
	z-index: 999998 !important;
}

.ets-inline {
	vertical-align: middle !important;
}

/* ---------- Theme toggle ---------- */

.ets-dock .ets-theme-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 9999px !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	background-image: none !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #EEF0F4 !important;
	cursor: pointer !important;
	overflow: hidden !important;
	text-indent: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32) !important;
	text-transform: none !important;
}

.ets-inline .ets-theme-btn {
	box-shadow: none !important;
}

html[data-theme="light"] .ets-dock .ets-theme-btn {
	background: rgba(255, 255, 255, 0.95) !important;
	border-color: rgba(20, 23, 26, 0.16) !important;
	color: #14171A !important;
	box-shadow: 0 2px 10px rgba(20, 23, 26, 0.12) !important;
}

.ets-dock .ets-theme-btn:hover {
	border-color: #8DCF69 !important;
	background: rgba(141, 207, 105, 0.18) !important;
	transform: scale(1.05);
}

html[data-theme="light"] .ets-dock .ets-theme-btn:hover {
	background: rgba(141, 207, 105, 0.22) !important;
}

.ets-dock .ets-theme-btn:focus-visible {
	outline: 2px solid #8DCF69 !important;
	outline-offset: 2px !important;
}

.ets-dock .ets-theme-btn svg {
	width: 18px !important;
	height: 18px !important;
	min-width: 0 !important;
	max-width: none !important;
	pointer-events: none !important;
	stroke: currentColor !important;
	fill: none !important;
	vertical-align: middle !important;
}

/* Dark shows the sun (click for light); light shows the moon. */
.ets-dock .ets-theme-btn .ets-icon-sun  { display: block !important; }
.ets-dock .ets-theme-btn .ets-icon-moon { display: none !important; }

html[data-theme="light"] .ets-dock .ets-theme-btn .ets-icon-sun  { display: none !important; }
html[data-theme="light"] .ets-dock .ets-theme-btn .ets-icon-moon { display: block !important; }

/* ---------- Polylang language links ---------- */

.ets-dock .ets-langs {
	display: inline-flex !important;
	align-items: center !important;
	gap: 2px !important;
	margin: 0 !important;
	padding: 3px !important;
	border-radius: 9999px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	line-height: 1 !important;
}

html[data-theme="light"] .ets-dock .ets-langs {
	background: rgba(255, 255, 255, 0.95) !important;
	border-color: rgba(20, 23, 26, 0.16) !important;
	box-shadow: 0 2px 10px rgba(20, 23, 26, 0.08) !important;
}

.ets-dock .ets-langs .ets-lang,
.ets-dock .ets-langs a.ets-lang,
.ets-dock .ets-langs a.ets-lang:link,
.ets-dock .ets-langs a.ets-lang:visited {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 40px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 7px 13px !important;
	border: none !important;
	background: transparent !important;
	background-image: none !important;
	color: #9AA1AC !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	border-radius: 9999px !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease;
}

html[data-theme="light"] .ets-dock .ets-langs a.ets-lang,
html[data-theme="light"] .ets-dock .ets-langs a.ets-lang:link,
html[data-theme="light"] .ets-dock .ets-langs a.ets-lang:visited {
	color: #4B5563 !important;
}

.ets-dock .ets-langs a.ets-lang:hover,
.ets-dock .ets-langs a.ets-lang:focus {
	color: #FFFFFF !important;
	background: rgba(141, 207, 105, 0.20) !important;
	text-decoration: none !important;
}

html[data-theme="light"] .ets-dock .ets-langs a.ets-lang:hover,
html[data-theme="light"] .ets-dock .ets-langs a.ets-lang:focus {
	color: #14171A !important;
}

/* Active language — white label on brand green, both themes. */
.ets-dock .ets-langs a.ets-lang.is-current,
.ets-dock .ets-langs a.ets-lang.is-current:link,
.ets-dock .ets-langs a.ets-lang.is-current:visited,
.ets-dock .ets-langs a.ets-lang.is-current:hover,
.ets-dock .ets-langs a.ets-lang.is-current:focus,
html[data-theme="light"] .ets-dock .ets-langs a.ets-lang.is-current,
html[data-theme="light"] .ets-dock .ets-langs a.ets-lang.is-current:hover {
	background: #8DCF69 !important;
	background-image: none !important;
	color: #FFFFFF !important;
	box-shadow: 0 2px 8px rgba(141, 207, 105, 0.35) !important;
}

.ets-dock .ets-langs a.ets-lang:focus-visible {
	outline: 2px solid #8DCF69 !important;
	outline-offset: 2px !important;
}

@media (max-width: 600px) {
	.ets-dock.ets-floating {
		right: 14px !important;
		bottom: 14px !important;
		gap: 6px !important;
	}

	.ets-dock .ets-theme-btn {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
	}
}

@media print {
	.ets-dock { display: none !important; }
}
