.switch {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin-top: -4px;
  width: 63px;
  height: 28px;
  padding: 3px;
  /*background-color: white;*/
  border-radius: 999px;
  /* box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05); */
  cursor: pointer;
  /*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);*/
}

.switch-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.switch-label {
  position: relative;
  display: block;
  height: inherit;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  background: #DBDDE0;
  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;
}
.switch-label:before, .switch-label:after {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  line-height: 1;
  -webkit-transition: inherit;
  -moz-transition: inherit;
  -o-transition: inherit;
  transition: inherit;
}
.switch-label:before {
  content: attr(data-off);
  right: 11px;
  color: #9399A2;
  /*text-shadow: 0 1px rgba(255, 255, 255, 0.5);*/
}
.switch-label:after {
  content: attr(data-on);
  left: 11px;
  color: white;
  /*text-shadow: 0 1px rgba(0, 0, 0, 0.2);*/
  opacity: 0;
}
.switch-input:checked ~ .switch-label {
  background: #b43cc7;
  /*box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);*/
}
.switch-input:checked ~ .switch-label:before {
  opacity: 0;
}
.switch-input:checked ~ .switch-label:after {
  opacity: 1;
}

.switch-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 999px;
  /*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;
}
.switch-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);*/
}
.switch-input:checked ~ .switch-handle {
  /* left: 40px; */
  left: inherit;
  right: 5px;
  /*box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);*/
}

.switch-green > .switch-input:checked ~ .switch-label {
  background: #4fb845;
}

.switch-purple > .switch-input ~ .switch-label {
  background: #BC3D95;
}

.switch-blue > .switch-input:checked ~ .switch-label {
  background: #2B9BF4 !important;
}

.switch-grey > .switch-input:checked ~ .switch-label {
  background: #BBBBBB !important;
}

/*Switch Wide*/
.switch-wide {
  width: 77px;
  height: 20px;
  color:white !important;
}

.switch-wide >.switch-label{
  background: #F44D3D;
}

.switch-wide >.switch-label:before {
  color:white !important;
}

.switch-wide > .switch-input:checked ~ .switch-handle {
  left: 62px;
}

.switch-wide > .switch-handle {
  width: 16px;
  height: 16px;
}


/*Small Switch*/

.switch-small {
  width: 52px;
  height: 20px;
}

.switch-small > .switch-input:checked ~ .switch-handle {
  left: 37px;
}

.switch-small > .switch-label:before {
  right: 8px;
}

.switch-small > .switch-handle {
  width: 16px;
  height: 16px;
}

.switch-mobile {
  width: 36px;
  height: 20px;
}

.switch-mobile > .switch-input:checked ~ .switch-handle {
  left: 20px;
}

.switch-mobile > .switch-label:before {
  right: 8px;
}

.switch-mobile > .switch-handle {
  width: 16px;
  height: 16px;
}
