$switch_green: #8CC152;
$switch_blue: #458be3;
$switch_red : #DA4453;
$switch_gray_ios: #e8e9ea;
$switch_gray_android: #AAB2BD;

/*Custom Switches*/
.custom-control {
	* {
		cursor: pointer;
		user-select: none !important;
	}
}
.switch-is-unchecked {
	display: none;
}
.switch-is-checked {
	display: block;
}
.scale-switch {transform: scale(0.9, 0.9);}
.small-switch {transform: scale(0.8, 0.8);}

.menu .custom-control{
    margin-top:-42px!important;
}

/*iOS Switcher*/
.ios-switch {
    margin-right:-32px;
    margin-top:12px!important;
    position:relative;
	padding-left: 10px;
	label {
		&::before {
            content:'';
            display:block!important;
			background-color: $switch_gray_ios;
			pointer-events: all;
			margin-top: -5px;
			margin-left: -1px;
			width: 58px !important;
			height: 32px !important;
			border-radius: 50px !important;
            transition:all 250ms ease;
		}
		&::after {
            content:'';
            display:block!important;
			margin-top: -31px;
			z-index: 6;
			width: 30px !important;
			height: 30px !important;
			transition: all 250ms ease;
			border-radius: 50px !important;
			background-color: $color_white;
			border: solid 1px rgba(152, 152, 152, 0.4);
			transition: all 250ms ease;
		}
	}
    input{
        display:none;
    }
}
.ios-input {
	&:checked {
		&~.custom-control-label {
			&::after {
				-webkit-transform: translateX(26px) !important;
			}
			&::before {
				background-color: $switch_green !important;
			}
		}
	}
}
.ios-switch-icon {
	label {
		&::before {
			background-color: $switch_red !important;
		}
	}
	i {
		line-height: 32px;
		pointer-events: none;
		z-index: 5;
		position: absolute;
		left: 20px;
        margin-top:-5px!important;
		&:last-child {
			z-index: 5;
			position: absolute;
			margin-left: 26px;
		}
	}
	span {
		font-size: 9px;
		font-weight: 700;
		color: $color_white;
		line-height: 32px;
		pointer-events: none;
		z-index: 5;
		position: absolute;
        margin-top:-5px!important;
		left: 19px;
		&:last-child {
			z-index: 5;
			position: absolute;
			margin-left: 24px;
		}
	}
}
/*Android Switcher*/
.android-switch {
	padding-left: 10px;
    margin-right:-32px;
	label {
		&::before {
            display:block!important;
            content:'';
			pointer-events: all;
			margin-top: 5px;
			margin-left: -2px;
			width: 53px !important;
			height: 17px !important;
			border-radius: 50px !important;
			background-color: $switch_gray_android;
            transition:all 250ms ease;
		}
		&::after {
            display:block!important;
            content:'';
			border: solid 1px rgba(0,0,0,0.1) !important;
			margin-top: -22px;
			margin-left: -3px;
			width: 28px !important;
			height: 28px !important;
            background-color: $color_white !important;
			box-shadow: 0 4px 10px 0 rgba(0,0,0,0.20) !important;
			border-radius: 50px !important;
			transition: all 250ms ease;
		}
	}
    input{display:none!important;}
}
.android-input {
    transform:translateY(1px)!important;
	&:checked {
		&~.custom-control-label {
			&::after {
				background-color: $switch_blue !important;
				border: none !important;
				-webkit-transform: translateX(30px) !important;
			}
			&::before {
				background-color: $switch_blue !important;
			}
		}
	}
}
[data-activate] {
	cursor: pointer;
	display: block;
	width: 100%;
}
/*Classic Switcher*/
.classic-switch {
	input {
		display: none;
	}
	label {
		&::before {
			pointer-events: all;
			width: 40px !important;
			height: 40px !important;
			transform: translateX(11px);
			margin-top: -10px;
			border: none;
			background-color: $color_transparent !important;
		}
	}
	i {
		pointer-events: none;
		transition: all 250ms ease;
	}
}
.classic-input {
	&:checked {
		&~.custom-control-label {
			&::after {
				-webkit-transform: translateX(26px) !important;
			}
		}
		&~.fa-plus {
			color: $switch_red !important;
			transform: rotate(45deg);
			transition: all 250ms ease;
		}
		&~.fa-angle-down {
			color: $switch_red !important;
			transform: rotate(180deg);
			transition: all 250ms ease;
		}
		&~.fa-circle {
			color: $switch_red !important;
			transform: scale(1.3, 1.3);
			transition: all 250ms ease;
		}
	}
}
