.BS4Checkbox {
  display: block;
  position: relative;
  height: 25px;
  width: 25px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.BS4Checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  left: 4px;
}

.checkmark_CB {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: rgba(212, 212, 212, 0.2);
  border: 1px solid #2196F3;
  border-radius: 5px;
}

.BS4Checkbox:hover input ~ .checkmark_CB {
  background-color: rgba(245, 245, 245, 0.1);
}

.BS4Checkbox input:checked ~ .checkmark_CB {
  background-color: #2196F3;
}
.BS4Checkbox:hover input:checked ~ .checkmark_CB {
  background-color: #81C3F8;
}

.checkmark_CB:after {
  content: "";
  position: absolute;
  display: none;
}

.BS4Checkbox input:checked ~ .checkmark_CB:after {
  display: block;
}

.BS4Checkbox .checkmark_CB:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* The BS4Radio */

.BS4Radio {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */

.BS4Radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border: 1px solid #2196F3;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */

.BS4Radio:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */

.BS4Radio input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */

.BS4Radio input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */

.BS4Radio .checkmark:after {
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

