/* Fix Android */
body {
  -webkit-animation: bugfix infinite 1s;
}

@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
/*
<div class="checkbox-btn">
    <input id="checkbox1" type="checkbox">
    <label for="checkbox1">
        Default
    </label>
</div>
*/
.checkbox-btn,
.radio-btn {
  position: relative;
  padding-left: 20px;
}
.checkbox-btn input[type="checkbox"],
.checkbox-btn input[type="radio"],
.radio-btn input[type="checkbox"],
.radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  /* IE<9 graceful degradation */
  z-index: 1;
}
.checkbox-btn label,
.radio-btn label {
  display: inline-block;
  line-height: 24px;
  /* ::after height+borders */
  vertical-align: middle;
  position: relative;
  padding-left: 20px;
  cursor: pointer;
  user-select: none;
  /* iOS =< 6 bug fix*/
  color: #424242;
}
.checkbox-btn label::after,
.radio-btn label::after {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    left: 0;
    top: 5px;
    margin-left: 0px;
    background-color: white;
    border: 2px solid #D13030;
    -webkit-border-radius: 3px;
    border-radius: 2px;
    /* background-clip: padding-box; */
    cursor: pointer;
    /* stops bg color from leaking outside the border: */
}
.checkbox-btn label::before,
.radio-btn label::before {
    position: absolute;
    content: "";
    width: 8px;
    height: 5px;
    top: 8px;
    left: 6px;
    margin-left: -3px;
    border: 2px solid #D13030;
    border-top: none;
    border-right: none;
    background: transparent;
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    opacity: 0;
    -webkit-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    z-index: 1;
}
.checkbox-btn label:active::before,
.radio-btn label:active::before {
  opacity: 0.3;
}
.checkbox-btn input[type="checkbox"]:checked + label,
.checkbox-btn input[type="radio"]:checked + label,
.radio-btn input[type="checkbox"]:checked + label,
.radio-btn input[type="radio"]:checked + label {
  color: #000000;
}
.checkbox-btn input[type="checkbox"]:checked + label::after,
.checkbox-btn input[type="radio"]:checked + label::after,
.radio-btn input[type="checkbox"]:checked + label::after,
.radio-btn input[type="radio"]:checked + label::after {
  border: 2px solid #D13030;
}
.checkbox-btn input[type="checkbox"]:checked + label::before,
.checkbox-btn input[type="radio"]:checked + label::before,
.radio-btn input[type="checkbox"]:checked + label::before,
.radio-btn input[type="radio"]:checked + label::before {
  opacity: 1;
}
.checkbox-btn input[type="checkbox"]:disabled + label,
.checkbox-btn input[type="radio"]:disabled + label,
.radio-btn input[type="checkbox"]:disabled + label,
.radio-btn input[type="radio"]:disabled + label {
  color: #787878;
  cursor: default;
}
.checkbox-btn input[type="checkbox"]:disabled + label::after,
.checkbox-btn input[type="radio"]:disabled + label::after,
.radio-btn input[type="checkbox"]:disabled + label::after,
.radio-btn input[type="radio"]:disabled + label::after {
  border: 3px solid #787878;
  background-color: #ffffff;
}
.checkbox-btn input[type="checkbox"]:disabled + label::before,
.checkbox-btn input[type="radio"]:disabled + label::before,
.radio-btn input[type="checkbox"]:disabled + label::before,
.radio-btn input[type="radio"]:disabled + label::before {
  display: none;
}

.radio-btn label::after {
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background-clip: padding-box;
  /* stops bg color from leaking outside the border: */
}
.radio-btn label::before {
  width: 12px;
  height: 12px;
  border: none;
  top: 6px;
  left: 6px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background-clip: padding-box;
  /* stops bg color from leaking outside the border: */
  background-color: #000000;
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}