﻿.cf-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.0rem;
    vertical-align: top;
    border-radius: 0.25rem;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}

    .cf-checkbox:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .cf-checkbox:checked[type=checkbox] {
        background-image: url(../../../icon/components/checkbox-check.svg);
    }

    .cf-checkbox:focus {
        outline: 2px solid white;
        box-shadow: 0 0 0 .25rem var(--primary-color-light);
    }

.cf-toggle-switch input[type="checkbox"] {
    display: none;
}

.cf-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px; 
    height: 24px; 
}

    .cf-toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--secondary-color-lighter);
        transition: .4s;
        border-radius: 24px;
    }

        .cf-toggle-switch .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

    .cf-toggle-switch input[type="checkbox"]:checked + .slider {
        background-color: var(--primary-color);
    }

        .cf-toggle-switch input[type="checkbox"]:checked + .slider:before {
            transform: translateX(20px); 
        }

.cf-toggle-label {
    margin-left: 10px;
}
