@keyframes hover-color {
	from {
		border-color: #1e3130;
	}

	to {
		border-color: #1e3130;
	}
}

.magic-radio, .magic-checkbox {
	position: absolute;
	display: none;
}

.magic-radio[disabled], .magic-checkbox[disabled] {
	cursor: not-allowed;
}

.magic-radio + label, .magic-checkbox + label, .magic-checkbox + .wpcf7-list-item-label, .magic-radio + .wpcf7-list-item-label {
	line-height: 1.2;
	position: relative;
	display: block;
	padding-left: 30px;
	cursor: pointer;
	vertical-align: middle;
}

.magic-radio + label:hover:before, .magic-checkbox + label:hover:before, .magic-checkbox + .wpcf7-list-item-label:hover:before, .magic-radio + .wpcf7-list-item-label:hover:before {
	animation-name: hover-color;
	animation-duration: .4s;

	animation-fill-mode: both;
}

.magic-radio + label:before, .magic-checkbox + label:before, .magic-radio + .wpcf7-list-item-label:before, .magic-checkbox + .wpcf7-list-item-label:before {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-block;
	width: 20px;
	height: 20px;
	content: '';
	border: 1px solid #d2d2d2;
	background-color: #fff;
}

.magic-radio + label:after, .magic-checkbox + label:after, .magic-checkbox + .wpcf7-list-item-label:after, .magic-radio + .wpcf7-list-item-label:after {
	position: absolute;
	display: none;
	content: '';
}

.magic-radio[disabled] + label, .magic-checkbox[disabled] + label, .magic-checkbox[disabled] + .wpcf7-list-item-label, .magic-radio[disabled] + .wpcf7-list-item-label {
	cursor: not-allowed;
	color: #e4e4e4;
}

.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after, .magic-checkbox[disabled] + label:hover, .magic-checkbox[disabled] + label:before, .magic-checkbox[disabled] + label:after, .magic-checkbox[disabled] + .wpcf7-list-item-label:hover, .magic-checkbox[disabled] + .wpcf7-list-item-label:before, .magic-checkbox[disabled] + .wpcf7-list-item-label:after, .magic-radio[disabled] + .wpcf7-list-item-label:hover, .magic-radio[disabled] + .wpcf7-list-item-label:before, .magic-radio[disabled] + .wpcf7-list-item-label:after {
	cursor: not-allowed;
}

.magic-radio[disabled] + label:hover:before, .magic-checkbox[disabled] + label:hover:before, .magic-checkbox[disabled] + .wpcf7-list-item-label:hover:before, .magic-radio[disabled] + .wpcf7-list-item-label:hover:before {
	animation-name: none;
	border: 1px solid #e4e4e4;
}

.magic-radio[disabled] + label:before, .magic-checkbox[disabled] + label:before, .magic-checkbox[disabled] + .wpcf7-list-item-label:before, .magic-radio[disabled] + .wpcf7-list-item-label:before {
	border-color: #e4e4e4;
}

.magic-radio:checked + label:before, .magic-checkbox:checked + label:before, .magic-checkbox:checked + .wpcf7-list-item-label:before, .magic-radio:checked + .wpcf7-list-item-label:before {
	animation-name: none;
}

.magic-radio:checked + label:after, .magic-checkbox:checked + label:after, .magic-checkbox:checked + .wpcf7-list-item-label:after, .magic-radio:checked + .wpcf7-list-item-label:after {
	display: block;
}

.magic-radio + label:before, .magic-radio + .wpcf7-list-item-label:before {
	border-radius: 50%;
}

.magic-radio + label:after, .magic-radio + .wpcf7-list-item-label:after {
	top: 4px;
	left: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #007e6a;
}

.magic-radio:checked + label:before, .magic-radio:checked + .wpcf7-list-item-label:before {
	border: 1px solid #d2d2d2;
}

.magic-radio:checked[disabled] + label:before, .magic-radio:checked[disabled] + .wpcf7-list-item-label:before {
	border: 1px solid #c9e2f9;
}

.magic-radio:checked[disabled] + label:after, .magic-radio:checked[disabled] + .wpcf7-list-item-label:after {
	background: #c9e2f9;
}

.magic-checkbox + label:before, .magic-checkbox + .wpcf7-list-item-label:before {
	border-radius: 3px;
}

.magic-checkbox + label:after, .magic-checkbox + .wpcf7-list-item-label:after {
	top: 2px;
	left: 7px;
	box-sizing: border-box;
	width: 6px;
	height: 12px;
	transform: rotate(45deg);
	border-width: 2px;
	border-style: solid;
	border-color: #fff;
	border-top: 0;
	border-left: 0;
}

.magic-checkbox:checked + label:before, .magic-checkbox:checked + .wpcf7-list-item-label:before {
	border: #007e6a;
	background: #007e6a;
}

.magic-checkbox:checked[disabled] + label:before, .magic-checkbox:checked[disabled] + .wpcf7-list-item-label:before {
	border: #c9e2f9;
	background: #c9e2f9;
}
