:root{
	--mark: #d5c;
	--box: #86d;
}
.checkbox {
	display: inline-block;
	width: 18em;
}
.checkbox input[type="checkbox"] {
	width: auto;
	opacity: 0;
	position: absolute;
	left: 0;
	margin-left: -20px;
}
.checkbox label:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	margin: 4px;
	width: 22px;
	height: 22px;
	transition: transform 0.28s ease;
	border-radius: 3px;
	border: 3px solid var(--box);
}
.checkbox label:after {
	content: '';
	display: block;
	width: 10px;
	height: 5px;
	border-bottom: 3px solid var(--mark);
	border-left: 3px solid var(--mark);
	transform: rotate(-45deg) scale(0);
	transition: transform ease 0.25s;
	will-change: transform;
	position: absolute;
	top: 13px;
	left: 11px;
}
.checkbox input[type="checkbox"]:checked ~ label::before {
	color: var(--mark);
}
.checkbox input[type="checkbox"]:checked ~ label::after {
	transform: rotate(-45deg) scale(1);
}
.checkbox label {
	position: relative;
	min-height: 34px;
	padding-left: 40px;
	cursor: pointer;
	line-height: 2;
	-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.checkbox label span {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.checkbox input[type="checkbox"]:focus + label::before {
	outline: 0;
}