.toggle-custom {
    position: relative;
    display: inline-block;
}
.toggle-custom:after {
    content: 'NO';
    font-family: Arial;
    position: absolute;
    color: #a5a3a3;
    top: 6px;
    right: 20px;
    font-weight: bold;
    transition: color 0.4s ease-in;
}
.toggle-custom input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}
.toggle-custom label {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-custom label:before {
    content: '';
    border: 3px solid #a5a3a3;
    height: 32px;
    width: 84px;
    border-radius: 20px;
    position: relative;
    display: inline-block;
    transition: 0.2s ease-in;
}
.toggle-custom label:after {
    content: 'SI';
    font-family: Arial;
    color: #fff;
    line-height: 24px;
    text-indent: 100px;
    background: #a5a3a3;
    overflow: hidden;
    box-shadow: none;
    border-radius: 14px;
    transform: translateX(-50px);
    transition: all 0.4s 0.2s, width 0.2s linear, text-indent 0.4s linear;
    text-align: center;
    top: 5px;
    right: 6px;
    width: 22px;
    height: 22px;
    position: absolute;
    z-index: 2;
}
.toggle-custom input[type="checkbox"]:checked + label:before {
    border-color: #AFCB08;
}
.toggle-custom input[type="checkbox"]:checked + label:after {
    background: #AFCB08;
    transform: translateX(0px);
    transition: all 0.4s, width 0.2s linear 0.4s, text-indent 0.3s linear 0.4s;
    width: 73px;
    text-indent: 0;
}

.toggle-custom input[type="checkbox"]:checked ~ .toggle-custom:after {
    content: '';
    transition: color 0.4s ease-in;
    color: transparent;
}
