.auto-frontend-loader {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auto-frontend-loader .loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid transparent;
  border-radius: 9999px;
  border-color: #ccc transparent;
  animation: l16 1s infinite linear;
}

.auto-frontend-loader .loader::before,
.auto-frontend-loader .loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 9999px;
}

.auto-frontend-loader .loader::before {
  border-color: var(--auto-frontend-primary-color) transparent;
  animation: inherit;
  animation-duration: 0.5s;
  animation-direction: reverse;
}

.auto-frontend-loader .loader::after {
  margin: 8px;
}

@keyframes l16 {
  100% {
    transform: rotate(1turn);
  }
}
