@keyframes hover-color {
    from {
        background-color: #eee;
    }

    to {
        background-color: #ddd;
    }
}

.magic-radio,
.magic-checkbox {
    position: absolute;
    display: none; 
}

.magic-radio[disabled],
.magic-checkbox[disabled] {
    cursor: not-allowed;
}

.magic-radio + label {
    position: relative;
    padding-left: 25px;
    margin-right: 0px;
    cursor: pointer;
    vertical-align: middle;
}

.magic-checkbox + label {
    position: relative;
    padding-left: 25px;
    margin-right: 0px;
    cursor: pointer;
    vertical-align: middle;
}


.magic-radio + label:hover:before,
.magic-checkbox + label:hover:before {
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-name: hover-color;
}

.magic-radio + label:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee; 
}

.magic-checkbox + label:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    content: '';
    border: 1px solid #b2b2b2;
    background-color: #eee;
}  /* 2022.2.4 보더색 변경 #b2b2b2 */


.magic-radio + label:after,
.magic-checkbox + label:after {
    position: absolute;
    display: none;
    content: '';
}

.magic-radio[disabled] + label,
.magic-checkbox[disabled] + label {
    cursor: not-allowed;
    color: #bbb;
}

.magic-radio[disabled] + label:hover,
.magic-radio[disabled] + label:before,
.magic-radio[disabled] + label:after,
.magic-checkbox[disabled] + label:hover,
.magic-checkbox[disabled] + label:before,
.magic-checkbox[disabled] + label:after {
    cursor: not-allowed;
}

.magic-radio[disabled] + label:hover:before,
.magic-checkbox[disabled] + label:hover:before {
    border: 0px solid #ddd;
    animation-name: none;
}

.magic-radio[disabled] + label:before,
.magic-checkbox[disabled] + label:before {
    border-color: #ddd;  
}

.magic-radio:checked + label:before,
.magic-checkbox:checked + label:before {
    animation-name: none;
}

.magic-radio:checked + label:after,
.magic-checkbox:checked + label:after {
    display: block;
}

.magic-radio + label:before {
    border-radius: 50%;
	border: 1px solid #b2b2b2;
}

.magic-radio + label:after {
    top: 5.5px;
    left: 5.7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0099ff;
}

.magic-radio:checked + label:before {
    border: 0px solid #0099ff;
}

.magic-radio:checked[disabled] + label:before {
    border: 0px solid #0099ff;
}

.magic-radio:checked[disabled] + label:after {
    background: #0099ff;
    color:#ccc;
}

.magic-checkbox + label:before {
    border-radius: 3px;
}

.magic-checkbox + label:after {
    top: 4px;
    left: 7px;
    box-sizing: border-box;
    width: 6px;
    height: 9px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #0099ff;
    border-top: 0;
    border-left: 0;
}


.magic-checkbox:checked + label:before {
    border: #ddd;
    background: #ddd; border: 1px solid #b2b2b2; 
}   /* 2022.2.4 보더색 변경 #b2b2b2 */

.magic-radio:checked + label:before {
    border: #ddd;
    background: #ddd; 
	border: 1px solid #b2b2b2;
}


.magic-checkbox:checked[disabled] + label:before {
    border: #ddd;
    background: #ddd;
}


/* 추가 radio */

.magic-radio_tex1 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
    
}

.magic-radio_tex1 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    background-color: #eee;
}

.magic-radio_tex1 + label:after {
    top: 5.5px;
    left: 3.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #CC7C4A;	
}

.magic-radio_tex1:checked + label:before {
    /*border: 0px solid #CC7C4A; */
	border: 1px solid #b2b2b2;
}

.magic-radio_tex1:checked[disabled] + label:before {
    border: 0px solid #CC7C4A;
	
}

.magic-radio_tex1:checked[disabled] + label:after {
    background: #CC7C4A;
    color:#ccc;
}

/* 추가2 radio */
.magic-radio_tex2 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
    
}

.magic-radio_tex2 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee; border: 1px solid #b2b2b2;
}

.magic-radio_tex2 + label:after {
    top: 5.5px;
    left: 3.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #038CA4;
}

.magic-radio_tex2:checked + label:before {
    /*border: 0px solid #038CA4;*/
	border: 1px solid #b2b2b2;
}

.magic-radio_tex2:checked[disabled] + label:before {
    border: 0px solid #038CA4;
}

.magic-radio_tex2:checked[disabled] + label:after {
    background: #038CA4;
    color:#ccc;
}

/* 추가3 radio */
.magic-radio_tex3 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
    
}

.magic-radio_tex3 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee; border: 1px solid #b2b2b2;
}

.magic-radio_tex3 + label:after {
    top: 5.5px;
    left: 3.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #af5f5f;
}

.magic-radio_tex3:checked + label:before {
   /* border: 0px solid #af5f5f; */
   border: 1px solid #b2b2b2;
}

.magic-radio_tex3:checked[disabled] + label:before {
    border: 0px solid #af5f5f;
}

.magic-radio_tex3:checked[disabled] + label:after {
    background: #af5f5f;
    color:#ccc;
}

/* 추가4 radio */
.magic-radio_tex4 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
    
}

.magic-radio_tex4 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee; border: 1px solid #b2b2b2;
}

.magic-radio_tex4 + label:after {
    top: 5.5px;
    left: 3.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3A77A2;
}

.magic-radio_tex4:checked + label:before {
    /*border: 0px solid #3A77A2; */
	border: 1px solid #b2b2b2;
}

.magic-radio_tex4:checked[disabled] + label:before {
    border: 0px solid #3A77A2;
}

.magic-radio_tex4:checked[disabled] + label:after {
    background: #3A77A2;
    color:#ccc;
}


/* 추가5 radio */
.magic-radio_tex5 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
    
}

.magic-radio_tex5 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee; border: 1px solid #b2b2b2;
}

.magic-radio_tex5 + label:after {
    top: 5.5px;
    left: 3.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #669E44;
}

.magic-radio_tex5:checked + label:before {
   /* border: 0px solid #669E44; */
   border: 1px solid #b2b2b2;
}

.magic-radio_tex5:checked[disabled] + label:before {
    border: 0px solid #669E44;
}

.magic-radio_tex5:checked[disabled] + label:after {
    background: #669E44;
    color:#ccc;
}



/* 추가 checkbox */

.magic-checkbox_tex1 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
}

.magic-checkbox_tex1 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee;
}

.magic-checkbox_tex1 + label:after {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 7px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #038CA4;
    border-top: 0;
    border-left: 0;
}

/* 추가2 checkbox */

.magic-checkbox_tex2 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
}

.magic-checkbox_tex2 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee;
}

.magic-checkbox_tex2 + label:after {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 7px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #CC7C4A;
    border-top: 0;
    border-left: 0;
}

/* 추가3 checkbox */

.magic-checkbox_tex3 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
}

.magic-checkbox_tex3 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee;
}

.magic-checkbox_tex3 + label:after {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 7px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #af5f5f;
    border-top: 0;
    border-left: 0;
}

/* 추가4 checkbox */

.magic-checkbox_tex4 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
}

.magic-checkbox_tex4 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee;
}

.magic-checkbox_tex4 + label:after {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 7px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #3A77A2;
    border-top: 0;
    border-left: 0;
}

/* 추가5 checkbox */

.magic-checkbox_tex5 + label {
    position: relative;
    padding-left: 18px;
    margin-right: 7px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 11px;
    font-family:'NotoSansKR Regular',sans-serif;
    top:-1px;
}

.magic-checkbox_tex5 + label:before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    content: '';
    border: 0px solid #c0c0c0;
    background-color: #eee;
}

.magic-checkbox_tex5 + label:after {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 7px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #669E44;
    border-top: 0;
    border-left: 0;
}



