/* Shared by the initial HTML shell and React loading surfaces. */
.disco-loader {
  --disco-accent: var(--color-accent-primary, #ff69b4);
  --disco-highlight: var(--color-accent-light, #ffb3d9);
  position: relative;
  display: block;
  width: 8rem;
  height: 6rem;
  margin: 0 auto;
  color: var(--disco-highlight);
}

html[data-section-daddy-shell="true"] .disco-loader,
html.section-daddy-theme .disco-loader,
.premium-flow-motion .disco-loader,
[data-reservation-brand="section-daddy"] .disco-loader,
[data-reservation-inline-brand="section-daddy"] .disco-loader {
  --disco-accent: #4169e1;
  --disco-highlight: #a6c4ff;
}

.disco-loader__pendant {
  position: absolute;
  top: 0;
  left: calc(50% - 1.75rem);
  width: 3.5rem;
  height: 4.75rem;
  transform-origin: 50% 0;
  animation: discoSway 2.8s ease-in-out infinite;
}

.disco-loader__pendant::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 1.25rem;
  background: linear-gradient(transparent, var(--disco-highlight));
}

.disco-loader__ball {
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--disco-highlight);
  border-radius: 50%;
  background: url('./disco-ball.svg') center / cover,
    radial-gradient(circle at 30% 25%, var(--disco-highlight), var(--disco-accent) 65%, #161126);
  box-shadow: 0 0 1.25rem color-mix(in srgb, var(--disco-accent) 25%, transparent);
}

.disco-loader__sparkle {
  position: absolute;
  top: 1.5rem;
  left: 0.6rem;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: discoTwinkle 2.8s ease-in-out infinite;
}

.disco-loader__sparkle--two {
  top: 3.6rem;
  right: 0.65rem;
  left: auto;
  width: 0.65rem;
  height: 0.65rem;
  animation-delay: -1.4s;
}

.disco-loader__caption {
  display: block;
  margin: 0.25rem 0 0;
  color: var(--color-text-secondary, #d5cfda);
  font: 500 0.8rem/1.5 system-ui, sans-serif;
  text-align: center;
}

@keyframes discoSway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

@keyframes discoTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .disco-loader__pendant,
  .disco-loader__sparkle {
    animation: none;
    transform: none;
  }
  .disco-loader__sparkle { opacity: 0.8; }
}
