.checkbox {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
}

.checkbox.small {
  padding-left: 20px;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox input:focus + .checkbox-checkmark {
  border-color: var(--theme-refresh-product-blue-2);
}

.checkbox .checkbox-text {
  font-weight: normal;
  font-size: var(--font-size--1-4);
  line-height: 1.3;
  margin-top: 8px;
}

.checkbox .checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 3px;
  background-color: #fff;
  transition: background-color 0.1s;
  border: 1px solid var(--theme-refresh-border-grey-medium);
}

.checkbox.small .checkbox-checkmark {
  height: 14px;
  width: 14px;
  margin-top: 4px;
  border: 1px solid #666666;
}

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

.checkbox input:checked ~ .checkbox-checkmark {
  background-color: var(--theme-refresh-product-blue-2);
  border-color: var(--theme-refresh-product-blue-2);
}

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

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

.checkbox.small .checkbox-checkmark:after {
  left: 4px;
  top: 1px;
  -webkit-transform: rotate(45deg) scale(0.7);
  -ms-transform: rotate(45deg) scale(0.7);
  transform: rotate(45deg) scale(0.7);
}
