
@import "../../scss/theme/config";
//普通
.cd-radio-button {
  position: relative;
  display: inline-block;
  font-size: $fontSize;
  color: $colorBase;
  text-align: left;
  cursor: pointer;
  &, & * {
    box-sizing: initial !important;
  }
  @include clearFix();
  input {
    position: absolute;
    left: 0px;
    top: 10px;
    opacity: 0;
    z-index: -1;
  }
  &.cd-disabled {
    cursor: no-drop;
    color: $colorDisable;
    //pointer-events: none;
  }
  .cd-radio-icon {
    float: left;
    display: inline-block;
    margin-top: 9px;
    width: 14px;
    height: 14px;
    border: 1px solid #c5c3c4;
    border-radius: 50%;
  }
  .cd-radio-label {
    @include userSelectNone();
    float: left;
    display: inline-block;
    text-indent: 5px;
    line-height: 32px;
  }
  &:hover {
    .cd-radio-icon {
      background: #fff;
      border: 1px solid #2299ff;
      position: relative;
    }
  }
  &.cd-selected {
    .cd-radio-icon {
      background: #2299ff;
      border: 1px solid #2299ff;
      position: relative;
      &::after {
        content: ' ';
        border: 2px solid #fff;
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        border-radius: 50%;
      }
    }
  }
}