.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
}

/* No native box */
.checkbox__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Visual box */
.checkbox__box {
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid var(--medium-grey);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Checked state */
.checkbox__input:checked + .checkbox__box {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox__input:checked + .checkbox__box svg {
  display: block;
}

/* SVG Styling */
.checkbox__box svg {
  display: none;
  width: 14px;
  height: 14px;
}
