.toggleButton {
  position: relative;
  display: inline-block;
  vertical-align: top;
  min-width: 40px;
  height: 20px;
  padding: 0px;
  cursor: pointer;
  background-image: url("/UserControls/CustomControls/ToggleButton/Themes/Icons/toggle.png");
  background-repeat: no-repeat;
  /*background-color: white;
  border-radius: 18px;
  box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
  background-image: -webkit-linear-gradient(top, #eeeeee, white 25px);
  background-image: -moz-linear-gradient(top, #eeeeee, white 25px);
  background-image: -o-linear-gradient(top, #eeeeee, white 25px);
  background-image: linear-gradient(to bottom, #eeeeee, white 25px);*/
}

.toggleButton-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0;
}

/*.toggleButton-label {
  position: relative;
  display: block;
  height: inherit;
  font-size: 10px;
  text-transform: uppercase;
  background: #eceeef;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
  -webkit-transition: 0.15s ease-out;
  -moz-transition: 0.15s ease-out;
  -o-transition: 0.15s ease-out;
  transition: 0.15s ease-out;
  -webkit-transition-property: opacity background;
  -moz-transition-property: opacity background;
  -o-transition-property: opacity background;
  transition-property: opacity background;
}
.toggleButton-label:before, .toggleButton-label:after {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  line-height: 1;
  -webkit-transition: inherit;
  -moz-transition: inherit;
  -o-transition: inherit;
  transition: inherit;
}
.toggleButton-label:before {
  content: attr(data-off);
  right: 11px;
  color: #aaa;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.toggleButton-label:after {
  content: attr(data-on);
  left: 11px;
  color: white;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
}
.toggleButton-input:checked ~ .toggleButton-label {
  background: #47a8d8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.toggleButton-input:checked ~ .toggleButton-label:before {
  opacity: 0;
}
.toggleButton-input:checked ~ .toggleButton-label:after {
  opacity: 1;
}*/
.toggleButton-handle {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 20px;
  height: 20px;
  background-image: url("/UserControls/CustomControls/ToggleButton/Themes/Icons/toggle.png");
  background-position: 0 -75px;
  /*background: white;
  border-radius: 10px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
  background-image: -moz-linear-gradient(top, white 40%, #f0f0f0);
  background-image: -o-linear-gradient(top, white 40%, #f0f0f0);
  background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
  -webkit-transition: left 0.15s ease-out;
  -moz-transition: left 0.15s ease-out;
  -o-transition: left 0.15s ease-out;*/
  transition: left 0.15s ease-out;
}

.toggleButton.keepcolor .toggleButton-handle,
.toggleButton.keepcolor:hover .toggleButton-handle {
  background-position: 0 -50px !important;
}

.toggleButton:hover .toggleButton-handle {
  background-position: 0 -50px;
}

.toggleButton.disabled {
  cursor: default;
}

.toggleButton-input:disabled ~ .toggleButton-handle,
.toggleButton.disabled .toggleButton-handle,
.toggleButton[disabled] .toggleButton-handle {
  background-position: 0 -25px !important;
}

/*.toggleButton-handle:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -6px;
  width: 12px;
  height: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
  background-image: -webkit-linear-gradient(top, #eeeeee, white);
  background-image: -moz-linear-gradient(top, #eeeeee, white);
  background-image: -o-linear-gradient(top, #eeeeee, white);
  background-image: linear-gradient(to bottom, #eeeeee, white);
}*/
.toggleButton-input:checked ~ .toggleButton-handle {
  left: 20px;
  background-position: 0 -50px;
}

.toggleButton.selected .toggleButton-handle {
  left: 20px;
  background-position: 0 -50px;
  /*box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);*/
}

.toggleButton span.text {
  margin-left: 45px;
}