/*
On/Off FlipSwitch
Pure HTML5/CSS3 On/Off flip switches with animated transitions.
Author: proto.io 
Source: http://proto.io/freebies/onoff/
*/

.onoffswitch {
  position: relative;
  width: 48px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.onoffswitch-checkbox {
  display: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 24px;
  padding: 0;
  line-height: 24px;
  border: 2px solid #CCCCCC;
  border-radius: 24px;
  background-color: #FFFFFF;
  transition: background-color 0.1s ease-in;
}

.onoffswitch-label:before {
  content: "";
  display: block;
  width: 24px;
  margin: 0px;
  background: #FFFFFF;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 24px;
  border: 2px solid #CCCCCC;
  border-radius: 24px;
  transition: all 0.1s ease-in 0s; 
}

.onoffswitch-checkbox:checked + .onoffswitch-label {
  background-color: #006600;
}

.onoffswitch-checkbox:checked + .onoffswitch-label, .onoffswitch-checkbox:checked + .onoffswitch-label:before {
  border-color: #006600;
}

.onoffswitch-checkbox:checked + .onoffswitch-label:before {
  right: 0px; 
}
