.loading-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483000;
  isolation: isolate;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.loading-overlay .spinner {
  text-align: center;
  color: #262626;
  max-width: 28rem;
  width: calc(100% - 2rem);
  margin: 0 1rem;
  padding: 1.5rem 1.5rem 2rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08), 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.loading-overlay .spinner-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #e5e5e5;
  border-top-color: #012169;
  margin: 0 auto 1.25rem;
  animation: boaFlowSpin 0.9s linear infinite;
}

.loading-overlay .spinner-text {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: #121212;
  margin-bottom: 0.5rem;
}

.loading-overlay .spinner-sub {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.5;
  max-width: 32rem;
  margin: 0 auto;
}

.loading-overlay .spinner-warn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  color: #333;
}

@keyframes boaFlowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .loading-overlay .spinner-circle {
    width: 44px;
    height: 44px;
  }

  .loading-overlay .spinner-text {
    font-size: 1.25rem;
  }
}

#boa-schedule-callback[aria-busy="true"],
#schedule-continue[aria-busy="true"] {
  cursor: wait;
}
