.wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fullscreen {
  display: flex;
  width: 100%;
  min-height: 200px;
}

.overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-deep);
  animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.spinner {
  display: block;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  border-top-color: var(--highlight);
  animation: spin 0.7s linear infinite;
}

/* Sizes */
.sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.md {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.lg {
  width: 48px;
  height: 48px;
  border-width: 3px;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }
}
