.pub_switch_box * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.pub_switch_box {
	font-size: 0;
	display: inline-block;
}

.pub_switch_box.f-r{
	float:right;
	margin-right:12px;
	position:relative;
	top:-2px;
}
.pub_switch {
	display: none;
}
.pub_switch + label {
	display: inline-block;
	position: relative;
	width: 56px;
	height: 26px;
	background-color: #fafbfa;
	border-radius: 50px;
	-webkit-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
}
.pub_switch + label:after {
	content: ' ';
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: box-shadow 0.1s ease-in;
	transition: box-shadow 0.1s ease-in;
	left: 0;
	border-radius: 100px;
	box-shadow: inset 0 0 0 0 #eee, 0 0 1px rgba(0,0,0,0.4);
}
.pub_switch + label:before {
	content: ' ';
	position: absolute;
	top: 0px;
	left: 1px;
	z-index: 999999;
	width: 26px;
	height: 26px;
	-webkit-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
	border-radius: 100px;
	box-shadow: 0 3px 1px rgba(0,0,0,0.05), 0 0px 1px rgba(0,0,0,0.3);
	background: white;
}
.pub_switch:active + label:after {
	box-shadow: inset 0 0 0 20px #eee, 0 0 1px #eee;
}
.pub_switch:active + label:before {
	width: 37px;
}
.pub_switch:checked:active + label:before {
	width: 37px;
	left: 20px;
}
.pub_switch + label:active {
	box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
.pub_switch:checked + label:before {
	content: ' ';
	position: absolute;
	left: 31px;
	border-radius: 100px;
}
.pub_switch:checked + label:after {
	content: ' ';
	font-size: 1.5em;
	position: absolute;
	background: #4cda60;
	box-shadow: 0 0 1px #4cda60;
}
