.rr-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.rr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rr-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: var(--rr-toggle-color-inactive);
    transition: .4s;
    border-radius: 34px;
}

.rr-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.rr-switch input:checked + .rr-slider {
    background-color: var(--rr-toggle-color-active);
}

.rr-switch input:checked + .rr-slider:before {
    transform: translateX(22px);
}

.rr-toggle-wrapper {
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
    font-family: inherit;
    background-color: #fff !important;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    clear: both;
    z-index: 1;
    position: relative;
}

