.custom-control-input[type=checkbox]:checked~.custom-control-label:before{color:#fff;--checkcolor:inherit;--checkfocus:inherit;--checkshadow:inherit;border-color:var(--checkcolor)!important;background-color:var(--checkcolor)!important}.custom-control-input[type=checkbox]:focus:not(:checked)~.custom-control-label:before{border-color:var(--checkfocus)}.custom-control-input[type=checkbox]:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem var(--checkshadow)}