.ui-switch {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  -moz-border-radius: 18px;
  -webkit-border-radius: 18px;
  border-radius: 18px;
}

.ui-switch:focus {

  -webkit-box-shadow: 0 0 5px #8aade1; /* Safari before v5 and Google Chrome */
  -moz-box-shadow: 0 0 5px #8aade1; /* Firefox */
  -o-box-shadow: 0 0 5px #8aade1; /* Opera */
  box-shadow: 0 0 5px #8aade1; /* CSS3 browsers */
  outline: none; /* disabling Safari's default behavior*/
}

.ui-switch.disabled {
  border-color: #999;
  cursor: default;
}

.ui-switch-middle {
  height: 35px; width: 60px;
  border: solid 7px white;
  position: relative;
  margin-top: -34px;
  z-index: 100;
  
  -moz-border-radius: 17px;
  -webkit-border-radius: 17px;
  border-radius: 17px;
}

.ui-switch-mask {
  height: 30px;
  margin: 2px 4px;
  overflow: hidden;
}

.ui-switch-master {
  height: 24px;
  position: relative;
  left: 10px;
}

.ui-switch-upper {
  height: 20px; width: auto;
  margin: 5px;
  position: absolute;
  z-index: 101;
}

.ui-switch-handle {
  display: block;
  height: 30px; width: 30px;
  position: absolute;
  top: -4px; left: -15px;
  background: url(../img/jquery.switch.png);
  background-size: 30px 30px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
}

.ui-switch-.disabled .ui-switch-handle:after {
  display: block;
  content: ' ';
  position: absolute;
  top: 0; left: 0;
  height: 30px; width: 30px;
  background: white;
  
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
  filter: alpha(opacity=50); /* IE 5-7 */
  -moz-opacity: 0.5; /* Mozilla */
  -khtml-opacity: 0.5; /* Safari 1.x */
  opacity: 0.5; /* Good browsers */
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
}

.ui-switch-lower {
  height: 20px; width: 1000px;
  margin: 5px;
  position: absolute;
  z-index: 99;
}

.ui-switch-labels {
  clear: both;
}

.ui-switch-on,
.ui-switch-off {
  display: block;
  float: left;
  line-height: 18px;
  font-size: 12px;
  color: white;
  background: green;
  padding: 0 10px;
  border: solid 1px #fff;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

.ui-switch-on {
  border-right: none;
  padding-right: 20px;
  -moz-border-radius-topright: 0;
  -moz-border-radius-bottomright: 0;
  -webkit-border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: #df4d60; /* Old browsers */ 
}

.ui-switch-off {
  border-left: none;
  padding-left: 20px;
  -moz-border-radius-topleft: 0;
  -moz-border-radius-bottomleft: 0;
  -webkit-border-top-left-radius: 0;
  -webkit-border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #8dc63f; /* Old browsers */

}

.ui-switch.disabled .ui-switch-on,
.ui-switch.disabled .ui-switch-off {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
  filter: alpha(opacity=50); /* IE 5-7 */
  -moz-opacity: 0.5; /* Mozilla */
  -khtml-opacity: 0.5; /* Safari 1.x */
  opacity: 0.5; /* Good browsers */
  background: #525252; /* Old browsers */

}

.ui-switch-on:hover,
.ui-switch-off:hover {
  color: white;
  text-decoration: none;
}

.ui-switch, .ui-switch * {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}