.switch {
  display: table-cell;
  vertical-align: middle;
}
.label-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}
.label-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input.label-toggle-round-flat + label {
  padding: 2px;
  width: 55px;
  height: 25px;
  background-color: #CCCCCC;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  border-radius: 15px;
  -webkit-transition: background 0.4s;
  -moz-transition: background 0.4s;
  -o-transition: background 0.4s;
  transition: background 0.4s;
}
input.label-toggle-round-flat + label:before, input.label-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}
input.label-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  border-radius: 15px;
  -webkit-transition: background 0.4s;
  -moz-transition: background 0.4s;
  -o-transition: background 0.4s;
  transition: background 0.4s;
}
input.label-toggle-round-flat + label:after {
  top: 4px;
  left: 4px;
  bottom: 4px;
  right: 4px;
  width: 25px;
  background-color: white;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  border-radius: 15px;
  -webkit-transition: margin 0.4s, background 0.4s;
  -moz-transition: margin 0.4s, background 0.4s;
  -o-transition: margin 0.4s, background 0.4s;
  transition: margin 0.4s, background 0.4s;
}
input.label-toggle-round-flat:checked + label {
  background-color: #38ae47;
}
input.label-toggle-round-flat:checked + label:after {
  margin-left: 26px;
  background-color: white;
}