.ds-control-check__icon {
  background-image: url('eds://common/static/images/icons/controls-plus.svg');
  cursor: pointer;
  display: inline-block;
  height: 28px;
  width: 28px;
  &.ds-control-check__icon--complete {
    background-image: url('eds://common/static/images/icons/controls-check.svg');
    cursor: initial;
  }
}

.ds-control-check__label-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.ds-control-check {
  input {
    -webkit-appearance: none;
    appearance: none;

    /* need to match the size of the box */
    box-sizing: content-box;
    cursor: pointer;
    height: 1.25rem;
    margin: 0;
    min-width: 1.25rem;
    opacity: 0;
    position: absolute;
    width: 1.25rem;
    &:checked + .ds-control-check__icon {
      background-image: url('eds://common/static/images/icons/controls-cross.svg');
    }
    &:checked + .ds-control-check__icon::after {
      opacity: 1;
    }
    &:focus + .ds-control-check__icon {
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
    }
  }
}
