@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.img-loader {
    display: inline-flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    background-color: #F0F0F0 !important;
    border-radius: 0.25rem !important;
}

.img-loader img {
    opacity: 0;
}

.img-loader::after {
    content: '';
    position: absolute;
    top: calc(50% - 18px);
    left: calc(50% - 18px);
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transform: rotate(0deg);
    border-top-color: var(--white) !important;
    border: .25rem solid rgba(255, 255, 255, 20%);
    animation: spin 1s infinite linear;
}
