.api-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  background-color: var(--bg-color);
  color: var(--text-color-primary);
  text-align: center;
}

.api-loading img {
  width: 128px;
  height: auto;
}

.api-loading p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

html.dark .api-loading img {
  filter: brightness(0) invert(1);
}

/* hideLoading keeps the root empty until Redoc renders the reference or error. */
#redoc-container:not(:empty) + .api-loading {
  display: none;
}
