[data-scope='switch'][data-part='root'] {
	@apply inline-flex items-center gap-3 cursor-pointer w-fit mx-auto;
}

[data-scope='switch'][data-part='hidden-input'] {
	@apply sr-only;
}

[data-scope='switch'][data-part='control'] {
	@apply relative inline-flex h-6 w-11 items-center rounded-full border-2 border-transparent bg-muted transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;
}

[data-scope='switch'][data-part='control'][data-state='checked'] {
	@apply bg-primary;
}

[data-scope='switch'][data-part='control'][data-disabled] {
	@apply cursor-not-allowed opacity-50;
}

[data-scope='switch'][data-part='thumb'] {
	@apply pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform;
}

[data-scope='switch'][data-part='thumb'][data-state='checked'] {
	@apply translate-x-5;
}

[data-scope='switch'][data-part='thumb'][data-state='unchecked'] {
	@apply translate-x-0;
}

[data-scope='switch'][data-part='label'] {
	@apply text-sm font-medium text-foreground select-none;
}

[data-scope='switch'][data-part='label'][data-disabled] {
	@apply text-muted-foreground opacity-50;
}
