/**
 * Switch
 *
 */
.nf-switch input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.nf-switch label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    display: block;
    border-radius: 100px;
    position: relative;
}
.nf-switch label.nf-bg-secondary {
    background: var( --nf-switch-bg, var( --nf-secondary ) );
}

.nf-switch label:after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.nf-switch input:checked + label {
    background: var( --nf-switch-active-bg, var( --nf-primary ) );
}


.nf-switch input:checked + label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}