/* The container */
.custom-checkbox {
	display: block;
	position: relative;
	padding-left: 24px;
	margin-bottom: 12px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
/* Hide the browser's default checkbox */
.custom-checkbox input[type=checkbox] {
	position: absolute;
	opacity: 0;
	height: 0;
	width: 0;
}
.custom-checkbox input[type=radio] {
	position: absolute;
	opacity: 0;
}
/* Create a custom checkbox */
.custom-checkbox .checkmark {
	position: absolute;
	top: 6px;
	left: 0;
	height: 18px;
	width: 18px;
	background-color: var(--color-checkbox-background);
	border: 1px solid var(--color-checkbox-border);
}
.custom-checkbox .radiomark {
	position: absolute;
	top: 8px;
	left: 0;
	height: 16px;
	width: 16px;
	background-color: var(--color-checkbox-background);
	border: 1px solid var(--color-checkbox-border);
	border-radius: 50%;
}
/* On mouse-over, add a background color */
.custom-checkbox:hover input ~ .checkmark,
.custom-checkbox:hover input ~ .radiomark {
	background-color: var(--color-checkbox-mouseover);
}
/* When the checkbox is checked, add background */
.custom-checkbox input:checked ~ .checkmark {
	background-color: var(--color-checkbox-checked);
	border-color: var(--color-checkbox-checked-border);
}
.custom-checkbox input:checked ~ .radiomark {
	background-color: var(--color-checkbox-checked);
	border-color: var(--color-checkbox-checked-border);
}
/* Create the checkmark/indicator (hidden when not checked) */
.custom-checkbox .checkmark:after {
	content: "";
	display: none;
	width: 6px;
	height: 12px;
	position: absolute;
	left: 5px;
	top: 0;
	border: solid white;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.custom-checkbox .radiomark:after {
	content: "";
	display: none;
	margin-left: 4px;
	margin-top: 4px;
 	top: 9px;
	left: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: white;
}
/* Show the checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after,
.custom-checkbox input:checked ~ .radiomark:after {
	display: block;
}
.custom-checkbox .container {
	margin: 0;
	padding: 0;
	height: fit-content;
}