.customize-control-checkbox {
	margin-bottom: 16px;
}

/* Toggle button */
.customize-control-checkbox input {
	appearance: none;
	position: relative;
	border: 0;
	outline: 0;
	cursor: pointer;
	margin: -12px 50px 0 -24px;
	background-color: initial;
	box-shadow: none;
}

/* Slider surface of toggle button */
.customize-control-checkbox input::after {
	content: "";
	width: 58px;
	height: 26px;
	display: inline-block;
	background: rgba(196, 195, 195, 0.55);
	border-radius: 18px;
	clear: both;
}

/* Create toggle handle */
.customize-control-checkbox input::before {
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
	display: block;
	position: absolute;
	left: 0;
	top: -3px;
	border-radius: 50%;
	background: #fff;
}

/* Overwrite default WP css for checked boxes */
.customize-control-checkbox input::before,
.customize-control-checkbox input[type="checkbox"]:checked::before {
	content: "";
	width: 30px;
	height: 30px;
	margin: 0;
}

/* Transition for smoothness */
.customize-control-checkbox input,
.customize-control-checkbox input::before,
.customize-control-checkbox input::after,
.customize-control-checkbox input:checked::before,
.customize-control-checkbox input:checked::after {
	transition: ease 0.3s;
}

/* Shift the handle to the right when checked */
.customize-control-checkbox input:checked::before {
	left: 32px;
	box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Active color */
.customize-control-checkbox input:checked::after,
input[type="radio"]:checked::before {
	background: #e16244;
}
