.dy-radio {
    position: relative;
    display: inline-block;
    margin-right: 30px;
    outline: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;

    .dy-radio_input {
        position: relative;
        display: inline-block;
        outline: none;
        line-height: 1;
        vertical-align: middle;
        white-space: normal;
        cursor: pointer;

        .dy-radio_inner {
            position: relative;
            display: inline-block;
            box-sizing: border-box;
            width: 14px;
            height: 14px;
            border: 1px solid #dcdfe6;
            border-radius: 100%;
            background-color: #fff;
            cursor: pointer;

            &::after {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 4px;
                height: 4px;
                border-radius: 100%;
                background-color: #fff;
                transform: translate(-50%, -50%) scale(0);
                transition: transform .15s ease-in;
                content: '';
            }

            &:hover {
                border-color: #409eff;
                transition: border-color .2s ease-in;
            }
        }

        .dy-radio_original {
            position: absolute;
            z-index: -1;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: 0;
            outline: none;
            opacity: 0;
        }
    }

    .dy-radio_label {
        padding-left: 10px;
        font-size: 14px;
    }
}
// 选中按钮样式
.dy-radio.is-checked {
    .dy-radio_input {
        .dy-radio_inner {
            border-color: #409eff;
            background: #409eff;

            &::after {
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }

    .dy-radio_label {
        color: #409eff;
    }
}
// 禁用按钮样式
.dy-radio.is-disabled {
    cursor: not-allowed;

    .dy-radio_inner {
        border-color: #e4e7ed;
        background-color: #f5f7fa;
        cursor: not-allowed;

        &::after {
            background-color: #f5f7fa;
            cursor: not-allowed;
        }

        &:hover {
            border-color: #e4e7ed;
        }

        .dy-radio_label {
            cursor: not-allowed;
        }
    }

    .dy-radio_input {
        cursor: not-allowed;
    }

    &.is-checked {
        .dy-radio_inner {
            border-color: #ebeef5;
            background-color: #f5f7fa;

            &::after {
                background-color: #c0c4cc;
            }
        }
    }

    .dy-radio_label {
        color: #c0c4cc;
        cursor: not-allowed;
    }
}
//带边框的单选按钮
.dy-radio.is-bordered {
    box-sizing: border-box;
    height: 40px;
    padding: 12px 20px 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;

    &.is-checked {
        border-color: #409eff;
    }

    &.is-disabled {
        border-color: #f5f7fa;
        cursor: not-allowed;
    }

    & + .dy-radio.is-bordered {
        margin-left: 10px;
    }
}
