.loading-spinner {
    animation: spin 2s linear infinite;
    display: inline-block;
}

.spinner-sm {
    width: 24px;
    height: 24px;
}

.spinner-md {
    width: 48px;
    height: 48px;
}

.spinner-lg {
    width: 96px;
    height: 96px;
}

/* The one owner (animations.css and modals.css used to repeat it). */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: var(--radius-round);
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: var(--space-2);
    vertical-align: middle;
}

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

    to {
        transform: rotate(360deg);
    }
}

.loading-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-12) var(--space-8);
    width: 100%;
    flex-grow: 1;
    color: white;
}

/* The one owner (`LoadingWidget`, frontend-common's spinner.rs). */
.loading-text {
    font-size: 1.4rem;
    color: var(--text-color);
    font-style: italic;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.loading-text .dots {
    display: inline-block;
    width: 2.5rem;
    text-align: left;
}

.loading-widget-icon {
    width: 80px;
    height: 80px;
    animation: spin 3s linear infinite;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}