/* Base for label styling 
  <label><input type="checkbox" id="test1" /><span></span></label>

*/
.custom-style-cb input[type="checkbox"]:not(:checked),
.custom-style-cb input[type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
.custom-style-cb input[type="checkbox"]:not(:checked) + span,
.custom-style-cb input[type="checkbox"]:checked + span {
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  padding: 5px;
}

/* checkbox aspect */
.custom-style-cb input[type="checkbox"]:not(:checked) + span:before,
.custom-style-cb input[type="checkbox"]:checked + span:before {
  content: '';
  position: absolute;
  left:0; top: 0;
  width: 30px; height: 30px;
  border: 2px solid #ebebeb;
  background: transparent;
  border-radius: 0;
}
/* checked mark aspect */
.custom-style-cb input[type="checkbox"]:not(:checked) + span:after,
.custom-style-cb input[type="checkbox"]:checked + span:after {
  content: '✔';
  position: absolute;
  top: 3px; left: 4px;
  font-size: 30px;
  line-height: 0.8;
  color: #fff200;
  transition: all .2s;
}
/* checked mark aspect changes */
.custom-style-cb input[type="checkbox"]:not(:checked) + span:after {
  opacity: 0;
  transform: scale(0);
}
.custom-style-cb input[type="checkbox"]:checked + span:after {
  opacity: 1;
  transform: scale(1);
}
/* disabled checkbox */
.custom-style-cb input[type="checkbox"]:disabled:not(:checked) + span:before,
.custom-style-cb input[type="checkbox"]:disabled:checked + span:before {
  box-shadow: none;
  border-color: #bbb;
  background-color: #ddd;
}
.custom-style-cb input[type="checkbox"]:disabled:checked + span:after {
  color: #999;
}
.custom-style-cb input[type="checkbox"]:disabled + span {
  color: #aaa;
}
