@use "./colors.scss" as *;

.checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 24px;
  height: 22px;
  width: 80%;
}

.container {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  a {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    &:hover {
      text-decoration: underline;
    }
  }
}

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

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  box-shadow: 1px 1px 3px rgba($white, 0.3);
  background-color: rgba($white, 0.1);
  transition: background-color 300ms ease-in-out;
}

.container:hover input ~ .checkmark {
  box-shadow: 1px 1px 3px rgba($white, 0.5);
  background-color: rgba($white, 0.3);
}

.container input:checked ~ .checkmark {
  background-color: $blue;
}

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

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

.container .checkmark:after {
  left: 7.5px;
  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);
}
