.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.38);
  cursor: wait;
  overscroll-behavior: contain;
  touch-action: none;
}

.global-loading-overlay[hidden] {
  display: none;
}

.global-loading-card {
  display: flex;
  min-width: min(20rem, 100%);
  max-width: 28rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.75rem 2rem;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.global-loading-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 0.35rem solid #dbe3ec;
  border-top-color: #326496;
  border-radius: 9999px;
  animation: global-loading-spin 0.8s linear infinite;
}

html.global-loading-scroll-lock,
html.global-loading-scroll-lock body {
  overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
  .global-loading-spinner {
    animation: none;
  }
}
