.form-check {
    align-self: end;
}

.form-check label {
    line-height: 1.6;
}

.form-check.has-input-right {
    padding-left: 0 !important;
}

.form-check.has-input-right .form-label {
    margin-right: 12px !important;
}

.form-check.has-input-right .bootstrap-switch,
.form-check.has-input-right .form-check-input {
    float: initial;
    margin-left: 0 !important;
}

.form-check-input:checked[type=checkbox] {
	background-image: var(--form-checkbox-base64-image-active);
    background-size: contain;
}

.form-check-input[type=checkbox] {
    border-radius: 2px;
    background-size: 18px;
    margin-left: -1.25rem;
}

.form-check-label {
    position: relative;
    align-self: center;
    font-size: 14px;
    color: var(--form-label-color);
    padding-left: 2px;
    margin-bottom: 0.5rem;
}

/* Radio  */
.form-check-input:checked[type=radio]:not(.btn-check) {
	/* background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEUAAADR+HzS+HrP+HrR+XvR+XrR+XvR+Xv///+8dCblAAAAB3RSTlMASElL4uPk18sF3QAAABxJREFUeNpjwAaY2ViZwAxWdnYWVAYTKwsjNi0ACu0AS5tEo6oAAAAASUVORK5CYII=); */
	background-image: initial;
    position: relative;
}

.form-check-input:checked[type=radio]:not(.btn-check):after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    border-radius: 100%;
    border: 1px solid var(--grey-01);
    width: 18px;
    height: 18px;
    background-color: var(--form-radio-token-color-active);
    opacity: 0;
    transition: var(--time-01);
    opacity: 1;
    width: 6px;
    height: 6px;
    transition-delay: var(--time-01);
}

.form-check > .bootstrap-switch  {
    margin-left: -1.25rem !important;
}

.form-check .bootstrap-switch-container {
    margin-left: 0 !important;
}

.form-check-input:checked[type=radio] ~ .form-check-label {
    font-weight: 500;
}

.form-check.form-check-inline {
    display: inline-flex;
    align-self: center;
}

.form-check-inline:last-child {
    margin-right: 0;
}

.form-check.form-check-inline .form-check-label {
    margin-bottom: 0 !important;
    margin-left: 4px;
    line-height: 1;
}

.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
    color: var(--secondary);
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Others */
.btn-group.btn-group-vertical .form-check {
    align-self: initial;
}

.btn-check + .btn-radio {
    border: 1px dashed transparent;
}

.btn-check:checked[type=radio] + .btn-radio,
.btn-check + .btn-radio.active {
    background-color: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--grey-01);
}

.btn-check:checked + .btn-radio,
.btn-check:focus + .btn-radio:focus,
.btn-check:checked + .btn-radio:focus,
.btn-check:focus + .btn-radio {
    box-shadow: none;
}

.item-options.check-feedback:checked ~ .wdk-training-toggle-btn {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Mobile */

@media (max-width: 576px) {
    .form-check-input {
        width: 20px !important;
        height: 20px !important;
    }

    .form-check-input[type=checkbox] {
        background-size: 26px;
    }

    .form-check .form-label {
        line-height: 2.1;
        margin: 0px 0px 0px 4px;
    }

    .form-check-input:checked[type=radio]:after {
        width: 10px !important;
        height: 10px !important;
    }

    /* Snippet commented to fix a visual bug on training execution */
    /* .btn-group .form-check .form-label {
        display: flex;
        flex-direction: row-reverse;
        align-items: center; 
    }*/

    .btn-group .form-check .form-label .form-check-input {
        margin-right: 6px;
    }
}
