/* radio */
.radio-warp{
    color: #606266;
    font-weight: 500;
    line-height: 1;
    position: relative;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    outline: none;
    font-size: 14px;
    -moz-user-select: none;
    -webkit-user-select: none;
    margin-right: 15px;
}
.radio-box{
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    display: inline-block;
    line-height: 1;
    position: relative;
    vertical-align: middle;
}
.radio-inner{
    border: 1px solid #dcdfe6;
    border-radius: 100%;
    width: 14px;
    height: 14px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
}
.radio-inner::after{
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #fff;
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) scale(0);
    transition: transform .15s ease-in;
}
.radio-original{
    opacity: 0;
    outline: none;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
}
.radio-label{
    font-size: 14px;
    /*min-width: 10px;*/
    display: inline-block;
    vertical-align: middle;
}

.radio-checked .radio-inner{
    border-color: #458aff;
    background: #458aff;
}
.radio-checked .radio-inner::after{
    transform: translate(-50%,-50%) scale(1);
}
.radio-checked .radio-label{
    color: #458aff;
}
.radio-border .radio-warp{
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.radio-disabled .radio-inner{
    background-color: #f5f7fa;
    border-color: #e4e7ed;
    cursor: not-allowed;
}
.radio-disabled .radio-label {
    color: #c0c4cc;
    cursor: not-allowed;
}
.radio-disabled .radio-inner{
    background-color: #f5f7fa;
    border-color: #e4e7ed;
}
.radio-disabled .radio-inner::after{
    background-color: #c0c4cc;
}
/*处理点击事件*/
input[type="radio"]:checked ~ .radio-inner{
    border-color: #458aff;
    background: #458aff;
}
.radio-disabled input[type="radio"]:checked ~ .radio-inner{
    background-color: #f5f7fa;
    border-color: #e4e7ed;
}
.radio-disabled input[type="radio"]:checked ~ .radio-inner::after{
    background-color: #c0c4cc;
}
input[type="radio"]:checked ~ .radio-inner::after{
    transform: translate(-50%,-50%) scale(1);
}
/*checkbox*/
.checkbox-warp{
    color: #606266;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    user-select: none;
    margin-right: 15px;
    outline: none !important;
}
.checkbox-box{
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    display: inline-block;
    line-height: 1;
    position: relative;
    vertical-align: middle;
}
.checkbox-inner{
    display: inline-block;
    position: relative;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    background-color: #fff;
    z-index: 1;
    transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);
}
.checkbox-inner:hover{
    border-color: #458aff;
}
.checkbox-inner::after{
    box-sizing: content-box;
    content: "";
    border: 1px solid #fff;
    border-left: 0;
    border-top: 0;
    height: 7px;
    left: 4px;
    position: absolute;
    top: 1px;
    transform: rotate(90deg) scaleY(0);
    width: 3px;
    transition: transform .15s ease-in .05s;
    transform-origin: center;
}
.checkbox-original{
    opacity: 0;
    outline: none;
    position: absolute;
    margin: 0;
    width: 0;
    height: 0;
    z-index: -1;
}
.checkbox-label{
    display: inline-block;
    padding-left: 5px;
    line-height: 19px;
    font-size: 14px;
    /*min-width: 15px;*/
}

.checkbox-checked .checkbox-inner{
    background-color: #458aff;
    border-color: #458aff;
}
.checkbox-checked .checkbox-inner::after{
    transform: rotate(45deg) scaleY(1);
}

/*处理点击*/
.checkbox-warp input[type="checkbox"]:checked ~ .checkbox-inner{
    background-color: #458aff;
    border-color: #458aff;
}
.checkbox-warp input[type="checkbox"]:checked ~ .checkbox-inner::after{
    transform: rotate(45deg) scaleY(1);
}

.checkbox-disabled .checkbox-inner{
    background-color: #edf2fc;
    border-color: #dcdfe6;
    cursor: not-allowed;
}
.checkbox-disabled .checkbox-inner::after{
    cursor: not-allowed;
    border-color: #c0c4cc;
}
.checkbox-disabled input[type="checkbox"]:checked ~ .checkbox-inner{
    background-color: #edf2fc;
    border-color: #dcdfe6;
    cursor: not-allowed;
}
.checkbox-disabled input[type="checkbox"]:checked ~ .checkbox-inner::after{
    cursor: not-allowed;
    border-color: #c0c4cc;
}

/*switch*/
.switch-warp{
    position: relative;
    font-size: 14px;
    line-height: 20px;
    height: 20px;
    vertical-align: middle;
    user-select: none;
}
.switch-input{
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
}
.switch-core{
    margin: 0;
    display: inline-block;
    position: relative;
    width: 40px;
    height: 20px;
    border: 1px solid #dcdfe6;
    outline: none;
    border-radius: 10px;
    box-sizing: border-box;
    background: #dcdfe6;
    cursor: pointer;
    transition: border-color .3s,background-color .3s;
    vertical-align: middle;
}
.switch-core::after{
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    border-radius: 100%;
    transition: all .3s;
    width: 16px;
    height: 16px;
    background-color: #fff;
}
.switch-label{
    transition: .2s;
    height: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
    color: #303133;
    user-select: none;
}
.switch-label-left{
    margin-right: 5px;
}
.switch-label-right{
    margin-left: 5px;
}

.switch-checked .switch-core{
    border-color: #458aff;
    background-color: #458aff;
}
.switch-checked .switch-core::after{
    left: 100%;
    margin-left: -17px;
}

.switch-warp input[type="checkbox"]:checked ~ .switch-core{
    border-color: #458aff;
    background-color: #458aff;
}
.switch-warp input[type="checkbox"]:checked ~ .switch-core::after{
    left: 100%;
    margin-left: -17px
}
.switch-warp input[type="checkbox"]:disabled ~ .switch-core{
    cursor: not-allowed;
    opacity: 0.5;
}

/**steps */
.steps-warp{
    width: 60%;
    margin: 0 auto;
    display: flex;
    white-space: nowrap;
    padding-bottom: 20px;
}
.steps-warp .steps-box{
    position: relative;
    display: inline-block;
}
.steps-warp-head{
    position: relative;
    width: 100%;

    color: #c0c4cc;
    border-color: #c0c4cc;
}

.steps-box.active .steps-warp-head{
    color: #303133;
    border-color: #303133;
}
.steps-box.success .steps-warp-head{
    color: #458aff;
    border-color: #458aff;
}
.steps-box.success .steps-warp-line-inner{
    width: 100%;
}
.steps-box.success .steps-warp-iconortext{
    border-color: #458aff;
}
.steps-box.success .steps-warp-iconortext i{
    font-size: 26px;
}

.steps-warp-line{
    position: absolute;
    border-color: inherit;
    background-color: #c0c4cc;
    height: 3px;
    top: 6px;
    left: 0;
    right: 0;
    left: 50%;
    right: -50%;
}
.steps-warp-line-inner{
    display: block;
    border: 1px solid;
    border-color: inherit;
    transition: .15s ease-out;
    box-sizing: border-box;
    width: 0;
    height: 3px;
    background: #458aff;
}

.steps-warp-iconortext{
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15px;
    height: 15px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: .15s ease-out;
    border-radius: 50%;
    border: 2px solid;
    border-color: inherit;
    user-select: none;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

.steps-warp .steps-box:last-child{
    flex-basis: auto!important;
    flex-shrink: 0;
    flex-grow: 0;
}
.steps-warp .steps-box:last-child .steps-warp-line {
    display: none;
}
.steps-warp .steps-warp-head,
.steps-warp  .steps-warp-main{
    text-align: center;
}

.steps-warp-title {
    font-size: 14px;
    line-height: 30px;
    font-weight: bold;
    color: #1a2d4e;
    cursor: pointer;
}
.steps-warp-description{
    margin-top: -5px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    white-space: normal;
    color:#c0c4cc;
}

.steps-box.success .steps-warp-title,
.steps-box.success .steps-warp-description{
    color: #458aff;
}

.steps-box.active .steps-warp-title,
.steps-box.active .steps-warp-description{
    line-height: 26px;
}
.steps-box.active .steps-warp-iconortext{
    border-width: 1px;
    border-color: #458aff;
    margin-top: -1px;
}
