input[type=checkbox].switch {
	height: 0;
	width: 0;
	visibility: hidden;
}

label.switch {
	cursor: pointer;
	text-indent: -9999px;
	width: 50px;
	height: 25px;
	background: grey;
	display: block;
	border-radius: 13px;
	position: relative;
}

label.switch:after {
	content: '';
	position: absolute;
	top: 1px;
	left: 1px;
	width: 23px;
	height: 23px;
	background: #fff;
	border-radius: 12px;
	transition: 0.3s;
}

input.switch:checked + label.switch {
	background: #9ab212;
}

input.switch:checked + label.switch:after {
	left: calc(100% - 1px);
	transform: translateX(-100%);
}

label.switch:active:after {
	width: 35px;
}