/* TODO : copy code to a CSS module in Checkbox folder */
.cb_label {
	vertical-align: middle;
	margin-top: 4px;
	margin-bottom: 4px;
	font-weight: inherit;
	user-select: none;
}
.cb_label.no_margin {
	margin-top: 0;
	margin-bottom: 0;
}
.cb_label.l{
	margin-top: 6px;
	margin-bottom: 6px;
}
.cb_label.xl{
	margin-top: 8px;
	margin-bottom: 8px;
}
.cb_label.pad_l{
	padding-top: 6px;
	padding-bottom: 6px;
}
.cb_label.pad_xl{
	padding-top: 8px;
	padding-bottom: 8px;
}

.cb_label+.cb_label {
	margin-left: 20px;
}
.cb_label+.cb_label.vertical {
	margin-left: 0;
	margin-top: 16px;
}

.cb_label input {
	position: absolute !important;
	visibility: hidden !important;
}

.cb_label .cb_label_icon {
	width: 20px;
	height: 20px;
	background: url(../Assets/checkbox.svg);
}
.cb_label.checkbox_size_s .cb_label_icon {
	width: 16px;
	height: 16px;
	background-size: 48px 32px;
}

.cb_label .cb_label_text {
	line-height: 20px;
	margin-left: 8px;
}
.cb_label.checkbox_size_s .cb_label_text {
	line-height: 16px;
}

.cb_label .cb_label_text .cb_label_tooltip_target {
	color: #acafc0;
	font-size: 13px;
	margin-left: 2px;
}

.cb_label .cb_label_description {
	color: var(--grey-2);
	font-size: 13px;
}

/* Checkbox */
.cb_label input[type=checkbox]+.cb_label_icon {			background-position: 0 0;}
.cb_label:hover input[type=checkbox]+.cb_label_icon {	background-position: -20px 0;}
.cb_label input[type=checkbox]:checked+.cb_label_icon {	background-position: -40px 0;}

.cb_label.checkbox_size_s input[type=checkbox]+.cb_label_icon {			background-position: 0 0;}
.cb_label.checkbox_size_s:hover input[type=checkbox]+.cb_label_icon {	background-position: -16px 0;}
.cb_label.checkbox_size_s input[type=checkbox]:checked+.cb_label_icon {	background-position: -32px 0;}

/* Radio */
.cb_label input[type=radio]+.cb_label_icon {			background-position: 0 -20px;}
.cb_label:hover input[type=radio]+.cb_label_icon {		background-position: -20px -20px;}
.cb_label input[type=radio]:checked+.cb_label_icon {	background-position: -40px -20px;}

.cb_label.checkbox_size_s input[type=radio]+.cb_label_icon {			background-position: 0 -16px;}
.cb_label.checkbox_size_s:hover input[type=radio]+.cb_label_icon {		background-position: -16px -16px;}
.cb_label.checkbox_size_s input[type=radio]:checked+.cb_label_icon {	background-position: -32px -16px;}


.checkbox_indent_size_m { padding-left: 28px;}
.checkbox_indent_size_s { padding-left: 24px;}

/* Switch */
.cb_label .cb_label_switch {
	position: relative;
	width: 40px;
	height: 20px;
	border-radius: 20px;
	background: #CBCDD5;
	transition: all .2s ease-in-out;
}
.cb_label .cb_label_text_for_switch{
	margin-left: 0;
	margin-right: 10px;
}
.cb_label .cb_label_switch + .cb_label_text_for_switch{
	margin-left: 10px;
	margin-right: 0;
}
.cb_label .cb_label_switch::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	top: 2px;
	left: 2px;
	transition: all .2s ease-in-out;
}
.cb_label:hover input[type=checkbox]+.cb_label_switch {
	background: #B3B5BF;
}
.cb_label input[type=checkbox]:checked+.cb_label_switch {
	background: var(--turquoise);
}
.cb_label input[type=checkbox]:checked+.cb_label_switch::before {
	left: 22px;
}
.cb_label.disabled{
	cursor: default;
	pointer-events: none;
	opacity: .55;
}
.cb_label.disabled input[type=checkbox]+.cb_label_switch {
	cursor: default;
}

.cb_label_desc{
	margin-left: 48px;
	font-size: 13px;
	color: #777;
}

/* Size */
.cb_label .cb_label_switch.s {
	width: 32px;
	height: 18px;
}
.cb_label .cb_label_switch.s::before {
	width: 14px;
	height: 14px;
}
.cb_label input[type=checkbox]:checked+.cb_label_switch.s::before {
	left: 16px;
}

.cb_label .cb_label_switch.xs {
	width: 28px;
	height: 16px;
}
.cb_label .cb_label_switch.xs::before {
	width: 12px;
	height: 12px;
}
.cb_label input[type=checkbox]:checked+.cb_label_switch.xs::before {
	left: 14px;
}