.spinner {
    width: 130px;
    height: 130px;
    position: relative;
    margin: auto;
    text-align: center;
    display: flex;
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    &:after {
        content: '';
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: palette(purple, verylight);;
        opacity: 0.15;
        position: absolute;
        top: 0;
        left: 0;
        -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
        animation: sk-bounce 2.0s infinite ease-in-out;
    }
    .icon {
        display: block;
        margin: auto;
        z-index: 1;
        fill: palette(purple, verylight) !important;
        -webkit-animation: sk-bounce-icon 2.0s infinite ease-in-out;
        animation: sk-bounce-icon 2.0s infinite ease-in-out;
        -webkit-animation-delay: -1s;
        animation-delay: -1s;
    }
}

.loading--content {
    @include media('>desktop') {
        left: 220px;
    }
}

.loading--inverse {
    &.spinner:after {
        background-color: #9ce4e1;
    }
    .icon {
        fill: palette(purple);
    }
}

@keyframes sk-bounce {
    0%,
    100% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.0);
    }
}

@keyframes sk-bounce-icon {
    0%,
    100% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(0.75);
    }
}
