.checkbox-input {
  display: block;
  position: relative;
  margin: 0 auto;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox-input label {
  display: unset;
}

.checkbox-input__label-container {
  padding-left: 35px;
  margin-bottom: 20px;
}

.checkbox-input__label {
  margin-bottom: 0;
}

.checkbox-input__label,
.checkbox-input__label-link {
  font-size: 14px;
  color: var(--union-grey-darker);
  font-weight: 400;
  line-height: 28px;
}

.checkbox-input__label-link {
  text-decoration: underline;
}

.checkbox-input__label-link:hover,
.checkbox-input__label-link:focus {
  color: var(--union-red);
}

.checkbox-input__aria-label {
  position: absolute;
  opacity: 0;
  left: 0;
}

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

.checkbox-input input:focus ~ .checkbox-input__styled-input {
  border: solid 1px var(--union-grey-darkest);
}

.checkbox-input__styled-input {
  position: absolute;
  top: 2px;
  left: 0;
  height: 24px;
  width: 24px;
  border-radius: 5px;
  border: solid 1px var(--union-grey-light);
  background-color: var(--union-white);
}

.checkbox-input:hover input ~ .checkbox-input__styled-input {
  box-shadow: 0px 3px 6px var(--union-grey-dark);
}

.checkbox-input input:checked ~ .checkbox-input__styled-input {
  background-color: var(--union-black);
}

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

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

.checkbox-input .checkbox-input__styled-input:after {
  left: 7px;
  top: 0px;
  width: 8px;
  height: 20px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.checkbox-input__error-icon {
  left: -4px;
  bottom: -10px;
}

@media only screen and (min-width: 480px) {
  .checkbox-input__label-container {
    margin-bottom: 30px;
  }
}

@media only screen and (min-width: 720px) {
  .checkbox-input__label,
  .checkbox-input__label-link {
    font-size: 18px;
    line-height: 33px;
  }
  .checkbox-input__styled-input {
    height: 28px;
    width: 28px;
  }
  .checkbox-input .checkbox-input__styled-input::after {
    width: 11px;
    height: 21px;
  }
  .checkbox-input__styled-input--error {
    border: 1px solid var(--union-red);
  }
}
