.dark .check-box::before { box-shadow: 0 0 0 3px #505658; }

/* --------------------------------------------------------------------------------------------- */
/* ###################################### CUSTOM CHECKBOX ###################################### */
/* --------------------------------------------------------------------------------------------- */
/* Checkmark style starts */
 @-moz-keyframes dothabottomcheck {
   0% { height: 0; }
   100% { height: 10px; }
}
 @-webkit-keyframes dothabottomcheck {
   0% { height: 0; }
   100% { height: 10px; }
}
 @keyframes dothabottomcheck {
   0% { height: 0; }
   100% { height: 10px; }
}
 @keyframes dothatopcheck {
   0% { height: 0; }
   50% { height: 0; }
   100% { height: 25px; }
}
 @-webkit-keyframes dothatopcheck {
   0% { height: 0; }
   50% { height: 0; }
   100% { height: 25px; }
}
 @-moz-keyframes dothatopcheck {
   0% { height: 0; }
   50% { height: 0; }
   100% { height: 25px; }
}

input[type=checkbox].custom_check { display: none; }

.check-box {
  cursor: pointer;
  display: inline-block;
  position: relative;
  height: 25px;
  width: 25px;
  background-color: transparent;
  border: 2px solid #838383;
  /*border-radius: 5px;*/
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-transition: border-color ease 0.2s;
  -o-transition: border-color ease 0.2s;
  -webkit-transition: border-color ease 0.2s;
  transition: border-color ease 0.2s;
}
input[type=checkbox].custom_check:not(:disabled) { cursor: pointer; }
input[type=checkbox].custom_check:not(:disabled) + .check-box:hover { border-color: #34b93d; }
.check-box::before, .check-box::after {
  opacity: 0;
  content: ' ';
  display: inline-block;
  position: absolute;
  height: 0;
  width: 4px;
  /*border-radius: 5px;*/
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #34b93d;
  -moz-transform-origin: left top;
  -ms-transform-origin: left top;
  -o-transform-origin: left top;
  -webkit-transform-origin: left top;
  transform-origin: left top;
  -webkit-transition: all ease-in-out 0.3s;
  -moz-transition: all ease-in-out 0.3s;
  transition: all ease-in-out 0.3s;
}
.check-box::before {
  top: 17px;
  left: 10px;
  box-shadow: 0 0 0 3px #fff;
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}
.check-box::after {
  top: 9px;
  left: 2px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
input[type=checkbox]:checked + .check-box, .check-box.checked { border-color: #34b93d; }
input[type=checkbox]:checked + .check-box::after, .check-box.checked::after {
  opacity: 1;
  height: 10px;
  -moz-animation: dothabottomcheck 0.2s ease 0s forwards;
  -o-animation: dothabottomcheck 0.2s ease 0s forwards;
  -webkit-animation: dothabottomcheck 0.2s ease 0s forwards;
  animation: dothabottomcheck 0.2s ease 0s forwards;
}
input[type=checkbox]:checked + .check-box::before, .check-box.checked::before {
  opacity: 1;
  height: 25px;
  -moz-animation: dothatopcheck 0.4s ease 0s forwards;
  -o-animation: dothatopcheck 0.4s ease 0s forwards;
  -webkit-animation: dothatopcheck 0.4s ease 0s forwards;
  animation: dothatopcheck 0.4s ease 0s forwards;
}