.ds-form-radio-button__box {
  background: var(--ds-color-london-100);
  border: 0.0625rem solid var(--ds-color-london-35);
  border-radius: 2rem;
  box-sizing: border-box;
  height: 1.375rem;
  min-width: 1.375rem;
  pointer-events: none;
  position: relative;
  width: 1.375rem;
  &::after {
    background: var(--ds-color-london-20);
    border-radius: 50%;
    bottom: 0;
    content: '';
    height: 0.75rem;
    left: 0;
    margin: auto;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 0.75rem;
  }
}

.ds-form-radio-button {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  .ds-form-check-label {
    margin-left: 0.5rem;
  }
  input {
    -webkit-appearance: none;
    appearance: none;
    border: 0.0625rem solid transparent;
    border-radius: 2rem;

    /* need to match the size of the box */
    box-sizing: border-box;
    cursor: pointer;
    height: 1.375rem;
    margin: 0;
    min-width: 1.375rem;
    opacity: 0;
    position: absolute;
    width: 1.375rem;
    &:checked + .ds-form-radio-button__box {
      background: var(--ds-color-london-100);
      border-color: var(--ds-color-london-35);
    }
    &:checked + .ds-form-radio-button__box::after {
      opacity: 1;
    }
    &:focus + .ds-form-radio-button__box {
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
    }
    &:disabled {
      &,
      & ~ .ds-form-check-label {
        cursor: not-allowed;
      }
      & + .ds-form-radio-button__box {
        background-color: var(--ds-color-london-100);
        border-color: var(--ds-color-london-70);
      }
      & + .ds-form-radio-button__box::after {
        background-color: var(--ds-color-london-70);
      }
    }
  }
}
