:root {
  --psa-loading-navy: #1d2d50;
  --psa-loading-orange: #f15a22;
  --psa-loading-blue: #0057b8;
}

html.psa-is-loading,
html.psa-is-loading body {
  cursor: progress !important;
}

html.psa-is-loading a,
html.psa-is-loading button,
html.psa-is-loading input,
html.psa-is-loading select,
html.psa-is-loading textarea,
html.psa-is-loading label {
  cursor: progress !important;
}

.psa-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(29, 45, 80, 0.38);
  backdrop-filter: blur(2px);
}

.psa-loading-overlay.is-visible {
  display: flex;
}

.psa-loading-card {
  width: min(420px, 100%);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(29, 45, 80, 0.16);
  box-shadow: 0 22px 60px rgba(12, 24, 45, 0.22);
  padding: 1.55rem;
  text-align: center;
  color: var(--psa-loading-navy);
}

.psa-loading-brand {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
}

.psa-loading-brand span:first-child {
  color: var(--psa-loading-navy);
}

.psa-loading-brand span:not(:first-child) {
  color: var(--psa-loading-orange);
}

.psa-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
  border: 5px solid rgba(0, 87, 184, 0.16);
  border-top-color: var(--psa-loading-orange);
  border-right-color: var(--psa-loading-blue);
  border-radius: 50%;
  animation: psa-loading-spin 0.75s linear infinite;
}

.psa-loading-message {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--psa-loading-navy);
}

.psa-loading-submessage {
  margin: .45rem 0 0 0;
  color: #52616f;
  font-size: .92rem;
  line-height: 1.4;
}

button.psa-button-loading,
.button.psa-button-loading,
input[type="submit"].psa-button-loading {
  opacity: .82;
  pointer-events: none;
}

button.psa-button-loading::after,
.button.psa-button-loading::after {
  content: "";
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-left: .55rem;
  border: 2px solid rgba(255, 255, 255, .55);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: psa-loading-spin 0.75s linear infinite;
  vertical-align: -0.15em;
}

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

@media (prefers-reduced-motion: reduce) {
  .psa-loading-spinner,
  button.psa-button-loading::after,
  .button.psa-button-loading::after {
    animation-duration: 1.6s;
  }
}
