 /* The switch - the box around the slider */
.toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

/* Hide default HTML checkbox */
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 5px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .toggle-slider {
  background-color: #286fb4;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #286fb4;
}

input:checked + .toggle-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.toggle-slider.round {
  border-radius: 34px;
}

.toggle-slider.round:before {
  border-radius: 50%;
} 
.toggle-lg.toggle {
  width: 60px !important;
  height: 34px !important;
}
.toggle-lg .toggle-slider:before {
  height: 26px !important;
  width: 26px !important;
}
.toggle-sm.toggle {
  width: 40px !important;
  height: 24px !important;
}
.toggle-sm input:checked + .toggle-slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}
.toggle-sm .toggle-slider:before {
  height: 16px !important;
  width: 16px !important;
  left:3px;
  bottom: 4px;
}
input:checked + .toggle-slider + .bg-success {
  background-color: #198754;
}

input:focus + .toggle-slider + .bg-success {
  box-shadow: 0 0 1px #198754;
}

