.tasks-card-checkbox {
	margin-top: 6px;
	margin-left: 1px;
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.tasks-card-checkbox.--disabled {
	cursor: default;
}

.tasks-card-checkbox.--important {
	margin-right: 6px;
}

.tasks-card-checkbox input {
	position: absolute;
	opacity: 0;
	height: 0;
	width: 0;
}

.tasks-card-checkbox input + span {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	background: var(--ui-color-design-outline-bg);
	border: var(--ui-border-width-medium) solid var(--ui-color-divider-default);
	border-radius: var(--ui-border-radius-2xs, 4px);
	cursor: pointer;
	box-sizing: content-box;
}

.tasks-card-checkbox.--disabled input + span {
	background: var(--ui-color-design-disabled-bg);
	cursor: default;
}

.tasks-card-checkbox.--highlight input + span {
	border: var(--ui-border-width-medium) solid var(--ui-color-design-outline-a2-content-divider);
}

.tasks-card-checkbox:not(.--disabled) input:checked + span {
	background: var(--ui-color-accent-main-primary);
}

.tasks-card-checkbox input:checked + span::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 8px;
	border: solid var(--ui-color-base-white-fixed);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.8);
}

.tasks-card-checkbox.--disabled input:checked + span::after {
	border: solid var(--ui-color-base-4);
	border-width: 0 1px 1px 0;
}
