@import "ui-kit/variables";
@import "ui-kit/mixins";

.cherry-ui-container{
	margin: 10px 0 20px 0;
}
label.cherry-label{
	margin: 0 0 5px 0;
	display: block;
}
.hide{
	display: none !important;
}
.cherry-switcher-wrap{
	height: 49px;
	border-radius: 25px;
	display: inline-block;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	user-select: none;
	label{
		height: 49px;
		background-color: $red_color;
		display: block;
		float: left;
		transition: all 0.4s ease;
		span{
			font-size: 12px;
			line-height: 19px;
			font-weight: 800;
			text-transform: uppercase;
			color: #fff;
			padding: 15px;
			text-align: center;
			display: block;
			opacity: 1;
			transition: all 0.4s ease;
		}
	}
	.sw-enable{
		span{
			opacity: 0;
		}
	}
	.sw-disable{
		span{
			opacity: 1;
		}
	}
	.state-marker{
		background-color: #fff;
		display: block;
		position: absolute;
		width: 41px;
		height: 41px;
		margin: 4px;
		top: 0;
		left: 0;
		margin-left: 4px;
		border-radius: 25px;
		transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	}
	.cherry-input-switcher{
		display: none;
	}
	.cherry-input-switcher-true:checked{
		~ .sw-enable{
			background-color: $green_color;
				span{
					opacity: 1;
				}
		}
		~ .sw-disable{
			background-color: $green_color;
				span{
					opacity: 0;
				}
		}
		~ .state-marker{
			left: 100%;
			margin-left: -45px;
		}
	}

	&.size-small{
		height: 25px;
		label{
			height: 25px;
				span{
					font-size: 10px;
					line-height: 15px;
					padding: 5px;
				}
		}
		.state-marker{
			width: 17px;
			height: 17px;
			margin-left: 4px;
		}
		.cherry-input-switcher-true:checked{
			~ .state-marker{
				margin-left: -22px;
			}
		}
	}
}
