.wprm-toggle-switch-container {
    display: flex;
    align-items: center;
    margin: 10px 0;

    label {
        cursor: pointer;
        margin: 0;
        font-size: 1em;
        flex-shrink: 0;
    }

    .wprm-prevent-sleep-description {
        margin-left: 10px;
        font-size: 0.8em;
        line-height: 1.1em;
    }
}

.wprm-toggle-switch {
    position: relative;
    display: inline-block;

    input {
        opacity: 0;
        width: 0;
        min-width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }

    .wprm-toggle-switch-slider {
        width: 40px;
        height: 20px;

        position: absolute;
        cursor: pointer;
        top: 50%;
        margin-top: -10px;
        left: 0;
        right: 0;
        background-color: #cccccc;
        -webkit-transition: .4s;
        transition: .4s;

        &:before {
            position: absolute;
            content: "";
            height: 80%;
            left: 7%;
            right: 50%;
            bottom: 10%;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
        }
    }

    input:checked + .wprm-toggle-switch-slider {
        background-color: #333333 !important;
    }

    input:focus + .wprm-toggle-switch-slider {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
    }

    input:checked + .wprm-toggle-switch-slider:before {
        left: 50%;
        right: 7%;
    }

    .wprm-toggle-switch-label {
        margin-left: 50px;
    }
}

.wprm-toggle-switch-rounded {
    .wprm-toggle-switch-slider {
        &:before {
            border-radius: 50%;
        }
    }
}