@import 'moda-themes/themes';

.mo-input__radio-button {
  input {
    display: none;

    & + label {
      cursor: pointer;

      .mo-input__radio-button-label__background {
        border: 1px solid color('cement');
        background-color: color('white');
        vertical-align: middle;
        display: inline-block;
        border-radius: 50%;
        height: 0.75rem;
        width: 0.75rem;
      }
    }

    &:checked + label {
      .mo-input__radio-button-label__background {
        background-color: color('black');
        border: 1px solid color('black');
      }

      .mo-input__radio-button-label__foreground {
        background-color: color('white');
        vertical-align: middle;
        margin-left: -0.435rem;
        display: inline-block;
        border-radius: 50%;
        cursor: pointer;
        height: 0.125rem;
        width: 0.125rem;
      }
    }
  }

  &__label {
    display: block;
  }
}
