/* CSS for checkboxes */
.checkbox-switch > div {
	height: 22px;
	display: flex;
	align-items: center;
}
.checkbox-switch input[type=checkbox]{
	height: 0;
	width: 0;
	visibility: hidden;
	display: none;
}
.checkbox-switch label {
	cursor: pointer;
	text-indent: -9999px;
	width: 40px;
	height: 20px;
	background: #808080;
	display: inline-block;
	border-radius: 20px;
	position: relative;
	margin-right: 15px;
}
.checkbox-switch label:after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 8px;
	transition: 0.3s;
}
.checkbox-switch input:checked + label {
	background: #049ce2;
}
.checkbox-switch input:checked + label:after {
	left: calc(100% - 2px);
	transform: translateX(-100%);
}
.checkbox-switch label:active:after {
	width: 25px;
}


/* CSS for range input */
input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	margin: 10px 0;
}
input[type=range]:focus {
	outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: #808080;
	border-radius: 1px;
	border: none;
	-webkit-transition: border-color .3s, background-color .3s;
	-o-transition: border-color .3s, background-color .3s;
	transition: border-color .3s, background-color .3s;
}
input[type=range]::-webkit-slider-thumb {
	border: 2px solid #049ce2;
	height: 20px;
	width: 20px;
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
	-webkit-appearance: none;
	margin-top: -10px;
}
input[type=range]:active::-webkit-slider-runnable-track {
	background: #049ce2;
}
input[type=range]::-moz-range-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: #808080;
	border-radius: 1px;
	border: none;
	-webkit-transition: border-color .3s, background-color .3s;
	-o-transition: border-color .3s, background-color .3s;
	transition: border-color .3s, background-color .3s;
}
input[type=range]::-moz-range-thumb {
	border: 2px solid #049ce2;
	height: 20px;
	width: 20px;
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
}
input[type=range]::-ms-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: transparent;
	border-color: transparent;
	color: transparent;
}
input[type=range]::-ms-fill-lower {
	background: #1d1d1d;
	border: none;
	border-radius: 2px;
}
input[type=range]::-ms-fill-upper {
	background: #808080;
	border: none;
	border-radius: 2px;
}
input[type=range]::-ms-thumb {
	border: 2px solid #049ce2;
	height: 20px;
	width: 20px;
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
	height: 2px;
}
input[type=range]:active::-ms-fill-lower {
	background: #049ce2;
}
input[type=range]:active::-ms-fill-upper {
	background: #049ce2;
}