/* checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-top: 2px;
  margin-bottom: 1px;
  margin-left: 30px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: left;
  height: 20px;
  line-height: 20px;
}
.checkbox-container input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-container input[type=checkbox]:disabled ~ .checkmark {
  cursor: default;
}
.checkbox-container:hover input[type=checkbox]:disabled ~ .checkmark {
  background-color: #ccc;
}
.checkbox-container:hover input[type=checkbox]:disabled:checked ~ .checkmark {
  background-color: #777;
}
.checkbox-container .checkmark {
  position: absolute;
  top: 0;
  left: -24px;
  height: 20px;
  width: 20px;
  background: #ccc;
}
.checkbox-container:hover input[type=checkbox] ~ .checkmark {
  background-color: #aaa;
}
.checkbox-container input[type=checkbox]:disabled:checked ~ .checkmark {
  background-color: #777;
}
.checkbox-container input[type=checkbox]:checked ~ .checkmark {
  background: var(--clr_primary_bg);
}
.checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input[type=checkbox]:checked ~ .checkmark:after {
  display: block;
}
.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* radio */
.radio-container {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 100%;
  line-height: 25px;
}
.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.radio-container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ccc;
  border-radius: 50%;
}
.radio-container:hover input ~ .checkmark {
  background-color: #777;
}
.radio-container input:checked ~ .checkmark {
  background-color: #ff4b4b;
}
.radio-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.radio-container input:checked ~ .checkmark:after {
  display: block;
}
.radio-container .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
