/* Component: spinner */

.sm-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--sm-line);
    border-top-color: var(--sm-accent);
    border-radius: 50%;
    animation: sm-spin 0.7s linear infinite;
}

.sm-spinner--sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes sm-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .sm-spinner { animation: none !important; }
}

.sm-loading {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    background: rgb(15 23 42 / 28%);
    backdrop-filter: blur(2px);
}

.sm-loading[hidden] { display: none !important; }

.sm-loading__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
}

.sm-loading__label { margin: 0; font-size: 14px; color: var(--sm-muted); }
