.checkbox1 {
  position: relative;
  cursor: pointer;
}
.checkbox1 > input {
  display: none;
}
.checkbox1 > input:checked + span.checkmark {
  background-color: #2268d8;
}
.checkbox1 > input:checked + span.checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 6px;
  width: 4px;
  height: 8px;
  transform: rotate(45deg);
  background-color: transparent;
  border-radius: 0 0 3px 0;
  border: solid white;
  border-width: 0 3px 3px 0;
}
.checkbox1 > span.checkmark {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: absolute;
  background-color: #dfdfdf;
  border-radius: 5px;
  top: -2px;
  right: 10px;
  width: 20px;
  height: 20px;
}
.checkbox1 > span.text {
  margin-right: 40px;
  text-indent: 40px;
}

.radio {
  display: inline;
  margin: 8px;
}
.radio > label {
  border-radius: 7px;
  color: #2a2a2a;
  background-color: #dddddd;
  padding: 7px;
  cursor: pointer;
}
.radio > input {
  display: none;
}
.radio > input:checked + label {
  color: white;
  background-color: #1f53c2;
}

.toggle {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 27px;
  border-radius: 20px;
  background-color: #eee;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.1s ease-in-out;
}
.toggle::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  height: 27px;
  width: 27px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.toggle.active::before {
  transform: translateX(33px);
}
.toggle.active:not([disabled]).blue {
  background-color: #99c9f7;
}
.toggle.active:not([disabled]).blue::before {
  background-color: #337ae9;
}
.toggle.active:not([disabled]).green {
  background-color: #79f390;
}
.toggle.active:not([disabled]).green::before {
  background-color: #22c341;
}
.toggle.active[disabled].blue {
  background-color: #bfcdda;
}
.toggle.active[disabled].blue::before {
  background-color: #99b2c9;
}
.toggle.active[disabled].green {
  background-color: #bed6b9;
}
.toggle.active[disabled].green::before {
  background-color: #78be6a;
}
.toggle:not(.active)::before {
  transform: translateX(0);
  background-color: #bbb;
}
.toggle[disabled] {
  background-color: #ddd;
}