.form__item--checkbox {
	@extend .form__item;
	position: relative;
	cursor: pointer;
	padding-top: 1.8rem; //height of .form__item__label
	//margin-bottom: 0.3rem; //for align at bottom with .form__item
	height: 5.8rem; //standart height of input type of text + 1rem standard padding
	display: inline-block;
	width: auto;
	padding-bottom: 1rem;

	table & {
		margin: -0.2rem;
		height: 1.9rem;
	}

	.just-checkboxes & {
		margin-top: 0;
		padding-top: 0;
		height: 3rem;
		margin-bottom: 1rem;
	} 
	.ears-vertical & {
		margin-top: 0;
		display: block;
	}
	.wrapped & {
		margin-top: 0;
		display: block;
	}
	.checkboxes--linear & {
		display: inline-block;
		margin: 1rem 3rem 0 0;
		&:first-child {
			//margin-left: 4rem;
		}
		&:last-child {
			margin-right: 0;
		}
	}

	.tree & {
		margin-top: -1.6rem;
		margin-bottom: 0.7rem;
		height: 2.2rem;
		padding: 0;
		float: left;
		margin-left: 1.4rem;
	}

	.form__item--checkbox-family & {
		margin-top: 0.4rem;
		height: 2.7rem;
		padding-bottom: 0.4rem;
		padding-top: 0;
	}

	&.small-caption {
	}
	&.no-top-margin {
		margin-top: 0.3rem;
	}
}

.form__item--checkbox span,
.form__item__caption--checkbox {
	@extend .form__item__caption;
	line-height: 1.6rem;
	position: relative;
	padding-left: 0;
	padding-top: 0;
	padding-bottom: 0;
	min-height: 2.2rem;
	display: flex;
	justify-content: start;
	align-items: center;
	height: 3rem;

	&:before {
		@extend .form__item__field;
		font-size: 2.2rem;
		line-height: 3rem;
		content: '';
		display: inline-block;
		float: left;
		width: 3rem !important;
		min-width: 3rem !important;
		height: 3rem;
		min-height: 3rem;
		margin-right: 1rem;
		padding: 0rem 0.2rem 1rem 0.3rem !important;
		line-height: 2.6rem;
		background-position: center center;
		background-size: 80%;
		background-repeat: no-repeat;
	}

	.tree & {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		height: 2.2rem;
	}

	table & {
		&:before {
			width: 2.8rem !important;
			height: 2.8rem !important;
			font-size: 1.3rem;
			padding: 0 0.4rem 1rem 0.4rem !important;
			font-size: 2rem !important;
		}
	}
	table & {
		line-height: 2rem;
		&:before {
			background-color: $color--white;
			width: 2rem !important;
			height: 2rem !important;
			font-size: 0.9rem;
			padding: 0 0.2rem 1rem 0.15rem !important;
			font-size: 1.6rem !important;
			line-height: 2rem !important;
		}		
	}
	.form__item--checkbox-family &,
	.checkboxes--small & {
		padding-left: 0;
		padding-right: 1rem;
		padding-top: 0.3rem;
		padding-bottom: 0.3rem;


		&:before {
			background-color: $color--white;
			min-width: 2.2rem !important;
			min-height: 2.2rem !important;
			width: 2.2rem !important;
			height: 2.2rem !important;
			font-size: 0.9rem;
			padding: 0 0.2rem 1rem 0.2rem !important;
			font-size: 1.6rem !important;
			line-height: 2.2rem !important;
		}
	}
	.form__item--checkbox-family & {
		font-weight: 400;
		margin-right: 2rem;
		display: flex;
		justify-content: start;
		align-items: center;
		line-height: 1.2rem;
	}
	&:hover:not(.form__item__caption--checkbox-tripple) {
		&:before {
			border-color: darken($color--grayforms-border, 10%);
		}
	}
}

.form__item--checkbox input,
.form__item__field--checkbox {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
}

.form__item__caption--checkbox-family {
	@extend .form__item__caption;
}

.form__item--checkbox-family {
	@extend .form__item;

	.form__item--checkbox-col-3{
		float: left;
		display: inline-block;
		width: 33.333%;
		padding-left: 0.5rem;
		clear: none;

		@media (max-width: $screen-md){
			width:49%;
		}
	}

	.form__item--checkbox-col-4{
		float: left;
		display: inline-block;
		width: 25%;
		padding-left: 0.5rem;
		clear: none;

		@media (max-width: $screen-md){
			width:49%;
		}
	}

	.form__item--checkbox-col-5{
		float: left;
		display: inline-block;
		width: 20%;
		padding-left: 0.5rem;
		clear: none;

		@media (max-width: $screen-md){
			width:49%;
		}
	}

	.form__item--checkbox-col-6{
		float: left;
		display: inline-block;
		width: 16.666%;
		padding-left: 0.5rem;
		clear: none;

		@media (max-width: $screen-md){
			width:49%;
		}
	}
}

.form__item__field--checkbox:checked + .form__item__caption--checkbox:before { background-image: url(./imgs/checkbox--checked.png); }

.form__item--checkbox input:checked + span:before { background-image: url(./imgs/checkbox--checked.png); }

//Form item checkbox TRIPPLE
.form__item--checkbox-tripple{
	@extend .form__item--checkbox;
}

.form__item__caption--checkbox-tripple{
	@extend .form__item__caption--checkbox;

	&[data-value="1"]:before{
		background-image: url(./imgs/checkbox--checked--green.png);
	}

	&[data-value="2"]:before{
		background-image: url(./imgs/checkbox--times--red.png);
	}

	&:hover{
		&:before{
			//color:inherit;
		}
	}
}