@import "../../styles/colors";

.cm-radio-group{
  .cm-checkbox {
    .cm-checkbox-icon {
      background: url(../../styles/imgs//radio.png);
    }
    &.active{
      .cm-checkbox-icon{
        background: url(../../styles/imgs/radio-checked.png);
      }
    }
  }
  &.cm-radio-group-stick{
    display: inline-block;
    vertical-align: middle;

    &:after{
      content: ' ';
      display: table;
      clear: both;
    }
    .cm-checkbox{
      border: 1px solid #d9d9d9;
      padding: 0 10px;
      line-height: 26px;
      cursor: pointer;
      background: #fff;
      border-left: 1px solid transparent;
      float: left;
      -webkit-transition: all .3s;
      transition: all .3s;

      &.cm-checkbox-checked{
        border-color: @color-blue;
        border-left: 1px solid @color-blue!important;
        color: @color-blue;
      }
      &:first-child{
        border-left: 1px solid #d9d9d9;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
      }
      &:last-child{
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }
      .cm-checkbox-outter{
        display: none;
      }
      label{
        cursor: pointer;
      }
    }
  }
}

.cm-form-group-invalid .cm-radio-group{
  .cm-checkbox {
    color: @color-danger;
  }
}
