.flipswitch {
	float:left;
  position: relative;
  background: #FFF;
  width: 55px;
  max-width: 55px;
  height: 27px;
  appearance: initial;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  border: 1px solid #ddd;
  vertical-align:middle;
  font-size:12px;
 
}

.flipswitch:after {
  position: absolute;
  top: 5%;
  display: block;
  line-height: 22px;
  width: 45%;
  height: 90%;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease-in 0s;
  color: black;
  border-radius: 3px;
}

.flipswitch:after {
  left: 2%;
  content: "OFF";
  background:#ccc;
}

.flipswitch:checked:after {
  left: 53%;
  content: "ON";
  background:#ee3e16;
  color:#FFF;
}