@import '../variable.less';

.bixi-radio-group-block {
  width: 100%;

  .bixi-radio-block {
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    margin: 8px 0;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid @bixi-radio-block-border-color;
    border-radius: 3px;
    cursor: pointer;

    &:hover {
      .ant-radio-inner {
        border-color: #324558;
      }
    }

    &:first-child {
      margin-top: 0;
    }

    &:last-child {
      margin: 0;
    }

    &-checked {
      color: @bixi-primary-color;
      background-color: #eef3ff;
      border: 1px solid @bixi-primary-color;

      &:hover {
        .ant-radio-inner {
          border-color: @bixi-primary-color;
        }
      }
    }

    &-label {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 24px;
    }

    &-content {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;

      &-inner {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    &-disabled {
      color: @bixi-radio-block-disabled-color;
      background: @bixi-radio-block-background-background;
      border-color: @bixi-radio-block-disabled-border-color;
      cursor: not-allowed;
    }
  }
}
