﻿.loading {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 5px solid transparent;
    border-left: 5px solid var(--loading-indicator-bgcolor);
    border-radius: 50%;
    -webkit-animation: rotate-right 1s linear infinite;
    animation: rotate-right 1s linear infinite;
    opacity: 1;
}

    .loading.inactive {
        opacity: 0;
    }

    .loading .fa-check,
    .loading .fa-times {
        position: absolute;
        opacity: 0;
    }

    .loading.success, .loading.failure {
        border: none;
        -webkit-animation: none;
        animation: none;
    }

        .loading.success .fa-check {
            color: #0a5;
            opacity: 1;
        }

        .loading.failure .fa-times {
            color: #f33;
            opacity: 1;
        }

@-webkit-keyframes rotate-right {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate-right {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
