/****************** Custom checkbox **********************/

.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox{
    display:none;
}
.custom-md-checkbox:not(.checkbox-switch){
    display: inline-block;
    position: relative;
    padding-left: 25px;
}
.custom-md-checkbox:not(.checkbox-switch) label{
    color: #757575;
}
.custom-md-checkbox:not(.checkbox-switch) label:before{
    content:"";
    position: absolute;
    top:0;
    left:0;
    z-index: 0;
    margin-top:2px;
    width: 18px;
    height: 18px;
    border: 2px solid #b0b2b6;
    transition:.2s;
    cursor: pointer;
}
.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox:checked~label:before{
    transform: rotate(40deg);
    border-width: 0 2px 2px 0;
    width: 12px;
    margin-top:-1px;
    left:4px;
    border-color: #E88A60;
}
.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox:indeterminate~label:before{
    transform: rotate(90deg);
    border-width: 0 2px 0 0;
    top:-7px;
    border-color: #E88A60;
}
.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox:disabled~label:before{
    background-color: #b3b3b3;
    border-color: #b3b3b3;
}
.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox:checked:disabled~label:before{
    background-color: transparent;
    border-color: #b3b3b3;
}
.custom-md-checkbox:not(.checkbox-switch) .custom-checkbox:indeterminate:disabled~label:before{
    background-color: transparent;
    border-color: #b3b3b3;
}
/****************** End Custom checkbox **********************/

/****************** Custom Switch **********************/

.custom-md-checkbox.checkbox-switch .custom-checkbox{
    display:none;
}
.custom-md-checkbox.checkbox-switch{
    display: inline-block;
    position: relative;
    padding-left: 50px;
}
.custom-md-checkbox.checkbox-switch label:before{
    content:"non";
    text-align: right;
    font-size: small;
    color:white;
    position: absolute;
    top:0;
    left:0;
    z-index: 0;
    margin-top:2px;
    padding-right:3px;
    padding-left:3px;
    width: 50px;
    height: 20px;
    background-color: #b0b2b6;
    border-radius: 9px;
    transition:.2s;
    cursor: pointer;
}
.custom-md-checkbox.checkbox-switch label:after{
    content:"";
    position: absolute;
    top:0;
    left:0px;
    z-index: 0;
    margin-top:0px;
    margin-left:-2px;
    width: 22px;
    height: 22px;
    border: 2px solid #f1f1f1;
    background-color: #f1f1f1;
    box-shadow: 0 0.0625rem 0.1875rem 0.0625rem rgba(0,0,0,0.4);
    border-radius: 9px;
    transition:.2s;
    cursor: pointer;
}
.custom-md-checkbox.checkbox-switch .custom-checkbox:checked~label:after{
    left:32px;
}
.custom-md-checkbox.checkbox-switch .custom-checkbox:checked~label:before{
    content:"oui";
    text-align: left;
    background-color: #E88A60;
}

.custom-md-checkbox.checkbox-switch .custom-checkbox:disabled~label:before{
    background-color: #b3b3b3;
}
.custom-md-checkbox.checkbox-switch .custom-checkbox:disabled~label:after{
    background-color: #b3b3b3;
    border-color: #b3b3b3;
}
.custom-md-checkbox.checkbox-switch .custom-checkbox:checked:disabled~label:before{
    background-color: #cd7659;
}

/****************** End Custom Switch **********************/

/****************** Custom radio **********************/

.custom-md-radio .custom-radio{
    display:none;
}
.custom-md-radio{
    display: inline-block;
    position: relative;
    padding-left: 25px;
}
.custom-md-radio label:before{
    content:"";
    position: absolute;
    top:0;
    left:0;
    z-index: 0;
    margin-top:4px;
    width: 18px;
    height: 18px;
    border: 2px solid #b0b2b6;
    border-radius: 50%;
    transition:.2s;
    cursor: pointer;
}
.custom-md-radio label:after{
    content:"";
    position: absolute;
    top:0;
    left:0;
    z-index: 0;
    margin-top:4px;
    width: 18px;
    height: 18px;
    border: 2px solid #E88A60;
    border-radius: 50%;
    background-color: #E88A60;
    transform: scale(0);
    transition:.2s;
}
.custom-md-radio .custom-radio:checked~label:after{
    transform: scale(1);
}
.custom-md-radio .custom-radio:disabled~label:after{
    transform: scale(1);
    background-color: #b3b3b3;
    border-color: #b3b3b3;
}
.custom-md-radio .custom-radio:checked:disabled~label:after{
    transform: scale(1);
    background-color: #E88A60;
    border-color: #E88A60;
}
/****************** End Custom radio **********************/
