[type="checkbox"]:checked, [type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
}

[type="checkbox"]:checked + label, [type="checkbox"]:not(:checked) + label {
  cursor: pointer;
  color: #666;
  padding-right: 55px;
  line-height: 20px;
  display: inline-block;
  position: relative;
}

[type="checkbox"]:checked + label:before, [type="checkbox"]:not(:checked) + label:before {
  content: "";
  background: #fff;
  border: 1px solid #666;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 0;
  right: 0;
}

[type="checkbox"]:checked + label:after, [type="checkbox"]:not(:checked) + label:after {
  content: "";
  background: #222;
  width: 8px;
  height: 8px;
  transition: all .2s;
  position: absolute;
  top: 6px;
  right: 6px;
}

[type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}

[type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}

