.page-loading-state {
  display: flex;
  min-height: min(420px, 60vh);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-loading-state--fullscreen {
  min-height: 100vh;
  background: #eef2ff;
}

.page-loading-state__spinner {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 4px solid #c7d2fe;
  border-top-color: #4338ca;
  border-radius: 50%;
  animation: page-loading-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .page-loading-state:not(.page-loading-state--continuous) .page-loading-state__spinner {
    animation: none;
  }
}

.page-loading-state--boot {
  position: fixed;
  inset: 0;
}
