@import '../../styles/index.less';

.@{prefixCls}-radio {
  display: flex;
  justify-content: space-between;

  &-field {
    flex: 1;
    overflow: auto;
  }

  &-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  &-wrapper {
    display: flex;
    flex-direction: row;
    // align-items: center;
    justify-content: center;
    padding-right: 16 * @hd;
    padding-left: 6 * @hd;
  }
  &-wrapper-last {
    padding-right: 0 * @hd;
  }

  &-button {
    width: 15 * @hd;
    height: 15 * @hd;
    border: 1 * @hd solid #d9d9d9;
    border-radius: 50%;
    padding: 3 * @hd;
    flex-shrink: 0;
    margin-top: 3 * @hd;
  }

  &-inner-button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: @alita-dform-radio-color;
  }

  &-checked {
    border: 1 * @hd solid @alita-dform-radio-color;
    box-shadow: 0 0 1 * @hd;
  }

  &-label {
    font-size: @alita-dform-value-font-size;
    color: @alita-dform-value-color;
    padding-left: 4 * @hd;
    padding-right: 4 * @hd;
    // padding-top: 1 * @hd;
    display: flex;
    align-items: center;
    word-break: break-all;
    // white-space: nowrap;
  }

  &-wrapper-item-vertical {
    padding-bottom: 8 * @hd;
    padding-top: 8 * @hd;
  }

  &-wrapper-item-vertical:first-child {
    padding-bottom: 8 * @hd;
    padding-top: 0;
  }

  &-position {
    justify-content: flex-end;
  }

  &-item-vertical {
    flex-direction: column;
    align-items: flex-start;
  }
}

.alitajs-dform-vertical-radio {
  .alitajs-dform-radio();
  flex-direction: column;
  align-items: flex-start;
}
