.toggle-button {
  display: inline-block;
  cursor: pointer;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #ddd;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: left;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.toggle-button > div {
  display: inline-block;
  width: 150px;
  position: absolute;
  top: 0;
}

.toggle-button > div.disabled {
  left: -50%;
}

.toggle-button input[type=checkbox] {
  display: none;
}

.toggle-button span, .toggle-button label {
  cursor: pointer;
  position: relative;
  float: left;
  display: inline-block;
}

.toggle-button label {
  background: #f5f5f5;
  margin-left: -4px;
  margin-right: -4px;
  border: 1px solid #E6E6E6;
  margin-top: -1px;
  z-index: 100;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fefefe), color-stop(100%, #e6e6e6));
  background-image: -webkit-linear-gradient(top, #fefefe, #e6e6e6);
  background-image: -moz-linear-gradient(top, #fefefe, #e6e6e6);
  background-image: -o-linear-gradient(top, #fefefe, #e6e6e6);
  background-image: linear-gradient(top, #fefefe, #e6e6e6);
  background-image: -ms-linear-gradient(top left,#fefefe 0%, #e6e6e6 100%);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
}

.toggle-button span {
  color: #fefefe;
  text-align: center;
  font-weight: bold;
  z-index: 1;
}

.toggle-button span.labelLeft {
  -moz-border-radius-topleft: 4px;
  -webkit-border-top-left-radius: 4px;
  border-top-left-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 3px;
}

.toggle-button span.labelRight {
  background: #f5f5f5;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
  color: black;
  background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #fefefe), color-stop(100%, #e6e6e6));
  background-image: -webkit-linear-gradient(bottom, #fefefe, #e6e6e6);
  background-image: -moz-linear-gradient(bottom, #fefefe, #e6e6e6);
  background-image: -o-linear-gradient(bottom, #fefefe, #e6e6e6);
  background-image: linear-gradient(bottom, #fefefe, #e6e6e6);
  background-image: -ms-linear-gradient(top left,#fefefe 0%, #e6e6e6 100%);
  padding-right: 3px;
}

.toggle-button span.labelLeft {
  color: #fefefe;
  background: #0088cc;
  background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
  background-image: -webkit-linear-gradient(bottom, #0088cc, #0055cc);
  background-image: -moz-linear-gradient(bottom, #0088cc, #0055cc);
  background-image: -o-linear-gradient(bottom, #0088cc, #0055cc);
  background-image: linear-gradient(bottom, #0088cc, #0055cc);
}
