.a11y-toggle-form {
	margin: 0;
	padding: 0;
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 1000000;
}

.a11y-toggle {
	position: fixed;
	right: 5px;
	bottom: 4.85rem;
	z-index: 1000000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	height: 2.5rem;
	padding: 0 0.85rem 0 0.7rem;
	background: var(--primary, #1E293B);
	color: #ffffff;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.1;
	transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease, gap 0.3s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	border: none;
}

.a11y-toggle:focus-visible {
	outline: 3px solid var(--secondary, #CA9500);
	outline-offset: 3px;
}

.a11y-toggle--on {
	background: var(--secondary, #CA9500);
	color: #ffffff;
}

.a11y-toggle__state-short {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}

.a11y-toggle__state-short-text--on {
	display: none;
}

.a11y-toggle--on .a11y-toggle__state-short-text--off {
	display: none;
}

.a11y-toggle--on .a11y-toggle__state-short-text--on {
	display: inline;
}

.a11y-toggle__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
}

.a11y-toggle__icon {
	width: 100%;
	height: 100%;
	display: block;
}

.a11y-toggle__label {
	display: none;
}

@media (min-width: 992px) {
	.a11y-toggle {
		right: 20px;
		bottom: 6.5rem;
		height: 3.25rem;
		padding: 0.35rem 0.9rem 0.35rem 0.95rem;
		gap: 0.5rem;
		font-size: 0.95rem;
	}

	.a11y-toggle:hover {
		transform: scale(1.03);
	}

	.a11y-toggle__icon-wrap {
		width: 1.75rem;
		height: 1.75rem;
	}

	.a11y-toggle__label {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		line-height: 1.15;
		max-width: 0;
		opacity: 0;
		overflow: hidden;
		margin-left: -0.5rem;
		margin-right: -0.5rem;
		transition: max-width 0.3s ease, opacity 0.2s ease 0.05s, margin 0.3s ease;
	}

	.a11y-toggle:hover .a11y-toggle__label,
	.a11y-toggle:focus-visible .a11y-toggle__label {
		max-width: 9rem;
		opacity: 1;
		margin-left: 0;
		margin-right: 0;
	}

	.a11y-toggle__label-main {
		display: block;
		font-weight: 600;
	}

	.a11y-toggle__label-state {
		display: none;
	}

	.a11y-toggle__state-short {
		display: inline-flex;
		margin-left: 0.35rem;
		padding: 0.18rem 0.55rem;
		border: 1px solid currentColor;
		border-radius: 999px;
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.08em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.a11y-toggle,
	.a11y-toggle__label {
		transition: none;
	}
}
