.opl-default-user-status-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;

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

    .opl-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 30px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 5px;
    }

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

    input:checked + .opl-slider {
        background-color: #2271b1;
    }

    input:checked + .opl-slider::before {
        transform: translateX(26px);
    }

    span {
        font-size: 11px;
        color: #fff;
        text-transform: uppercase;

        &:first-of-type {
            margin-right: auto;
        }
    }

    span span {
        margin-left: auto;
    }

    input:checked ~ span span:first-of-type {
        opacity: 1;
    }

    input:checked ~ span span {
        opacity: 0;
    }

    & > span span:first-of-type {
        opacity: 0;
    }

    & > span span {
        opacity: 1;
    }
}

.opl-resend-container {
    display: inline-block;

    .opl-resend-link {
        display: none;

        &.enable {
            display: block;
        }
    }

    .opl-spinner {
        display: inline-block;
        animation: spin 1s linear infinite;
    }

    span.dashicons {
        margin-left: 1px;

        .opl-success {
            margin-left: 5px;
            font-size: 16px;
        }

        .opl-error {
            margin-left: 5px;
            font-size: 14px;
        }

    }
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
