@import 'global.less';
.k-radio-group {
    display: inline-block;
    font-size: 0;
    vertical-align: middle;
    .k-button {
        position: relative; // margin-left: -1px !important;
        z-index: 0;
        border-radius: 0;
        &:first-child {
            border-top-left-radius: @radius;
            border-bottom-left-radius: @radius;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-left: 1px solid #ccc;
        }
        &:last-child {
            border-top-right-radius: @radius;
            border-bottom-right-radius: @radius;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }
    .k-button-radioBorder {
      &:first-child {
        border-left: 1px solid @main;
      }
    }
    .k-button-primary {
        z-index: 1
    }
}

.k-radio-wp {
    user-select: none;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
    margin-right: 8px;
    .k-radio {
        display: inline-block;
        vertical-align: middle;
        white-space: nowrap;
        cursor: pointer;
        outline: 0;
        line-height: 1;
        position: relative;
        margin-right: 5px;
        .k-radio-inner {
            display: inline-block;
            width: 16px;
            height: 16px;
            position: relative;
            top: 0;
            left: 0;
            border: 1px solid #dddee1;
            border-radius: 2px;
            background-color: #fff;
            transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
            border-radius: 50%;
            &:after {
                width: 6px;
                height: 6px;
                position: absolute;
                left: 5px;
                top: 5px;
                border-radius: 6px;
                display: block;
                content: " ";
                opacity: 0;
                background-color: #fff;
                transition: all .2s ease-in-out;
            }
        }
        .k-radio-input {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            cursor: pointer;
            opacity: 0;
        }
    }
    .k-radio-checked {
        .k-radio-inner {
            background: @primary;
            border-color: @primary;
            position: relative;
            &:after {
                opacity: 1;
                width: 6px;
                height: 6px;
                left: 5px;
                top: 5px;
            }
        }
    }
    .k-radio-disabled {
        cursor: not-allowed;
        .k-radio-inner {
            background: #f3f3f3;
            &:after {
                background-color: #f3f3f3;
            }
        }
    }
}

.k-radio-disabled {
    cursor: not-allowed;
    opacity: .5;
    .k-radio {
        .k-radio-input {
            cursor: not-allowed;
        }
        .k-radio-inner {
            background: #eee;
            border-color: #ccc;
            &:after {
                background-color: #999;
            }
        }
    }
}
