.spa-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.spa-loader.is-active {
  opacity: 0.7;
  visibility: visible;
}

.spa-loader__container {
  position: relative;
  z-index: 1;
  width: min(320px, 80vw);
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.spa-loader.is-active .spa-loader__container {
  opacity: 1;
}

.spa-loader__bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 193, 72, 0.25);
  overflow: hidden;
  border-radius: 999px;
}

.spa-loader__bar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.12) 35%,
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.spa-loader__bar-light {
  position: absolute;
  top: 0;
  left: -30%;
  width: 80px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 193, 72, 0) 0%,
    rgba(255, 193, 72, 0.8) 40%,
    rgba(255, 193, 72, 0.8) 60%,
    rgba(255, 193, 72, 0) 100%
  );
  animation: spa-loader-light 1.8s ease-in-out infinite;
}

@keyframes spa-loader-light {
  from {
    left: -30%;
  }

  to {
    left: 100%;
  }
}

