.switch {
  background: #ccc;
  border: 0;
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  overflow: visible;
  width: 45px;
  height: 30px;
  padding: 0px;
  margin: 0px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
  transition: 0.3s ease-out all;
  -webkit-transition: 0.3s ease-out all;
  top: -1px;
}
/*adding a wide width for larger switch text*/
.switch.wide {
  width:98px;
}
.switch.small {
    height: 18px;
    width: 33px;
}
.switch.medium {
    height: 26px;
    width: 83px;
}
.switch small {
   background: #fff;
   border-radius: 100%;
   box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
   position: absolute;
   top: 2px;
   left: 2px;
   transition: 0.3s ease-out all;
   -webkit-transition: 0.3s ease-out all;
}
.switch.small small {
   width: 15px;
   height: 14px;
}
.switch.medium small {
   width: 20px;
   height: 21px;
}
.switch.wide small {
   width: 26px;
   height: 26px;
}

.switch.xs-small small {
   width: 15px;
   height: 15px;
}
.switch.xs-small {
    width: 25px;
    height: 9px;
}
.switch.xs-small small{
	top: -4px !important;
	background: #fff;
   border-radius: 100%;
   box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
   position: absolute;
   left: 0px;
   transition: 0.3s ease-out all;
   -webkit-transition: 0.3s ease-out all;
}
.switch.checked {
  background: #5cb85c;
  border-color: #5cb85c;
}
.switch.yellow.checked {
  background: #FFD200!important;
  background-color: #FFD200!important;  
  border:0
}
.switch.blue.checked {
  background: #0d88cd!important;
  background-color: #0d88cd!important;
  border:0
}
.switch.small.checked small {
  left: 16px;
  top: 2px;
}
.switch.xs-small.checked small {
  left: 16px;
  top: 1px;
}
.switch.medium.checked small {
  left:61px;
  top: 2px;
}
/*wider switch text moves small further to the right*/
.switch.wide.checked small {
  left:70px;
}
/*styles for switch-text*/
.switch .switch-text {
  font-family:Arial, Helvetica, sans-serif;
  font-size:13px;
}

.switch .off {
  display:block;
  position: absolute;
  right: 8%;
  top: 16%;
  z-index: 0;
  /* color:#A9A9A9; */
  color:#fff;
}

.switch .on {
  display:none;
   z-index: 0;
  color:#fff;
  position: absolute;
  top:20%;
  left: 11%;
}

.switch.checked .off {
  display:none;
}

.switch.checked .on {
  display:block;

}

.switch.disabled {
  opacity: .50;
  cursor: not-allowed;
}
