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

    .wprm-toggle-switch {
        margin-right: 10px;
    }

    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;
    width: 40px;
    height: 20px;

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

    .wprm-toggle-switch-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 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-rounded {
    .wprm-toggle-switch-slider {
        &:before {
            border-radius: 50%;
        }
    }
}