:root {
  --loading-overlay-bg: rgba(247, 247, 247, 0.58);
  --loading-overlay-border: rgba(255, 255, 255, 0.56);
  --loading-dot-color: #232323;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--loading-overlay-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading.loading-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-bounce {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  min-height: 22px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--loading-dot-color);
  opacity: 0.34;
  animation: loading-bounce 920ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.24s;
}

.loading-dot:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-9px) scale(1.12);
    opacity: 1;
  }
}