/* Spinner de carga compartido ABSA */

.absa-loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 41, 82, 0.72);
  z-index: 1021;
}

.absa-loading-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  min-height: 140px;
}

.absa-spinner {
  display: inline-block;
  box-sizing: border-box;
  width: 5em;
  height: 5em;
  border: 8px solid #002952;
  border-bottom-color: transparent;
  border-radius: 50%;
  background-color: transparent;
  animation: absaSpinnerSpin 1s linear infinite;
}

.absa-spinner--sm {
  width: 2em;
  height: 2em;
  border-width: 4px;
}

.absa-loading-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #424c56;
  font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.absa-loading-message__text {
  display: inline-block;
}

@keyframes absaSpinnerSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .absa-spinner {
    animation: none;
    border-bottom-color: #002952;
    opacity: 0.85;
  }
}
