/* AdlLoader overlay (see js/loader.js). Works on the public site and in the admin. */
.adl-loader-host { position: relative; }
.adl-loader {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
  padding-top: min(120px, 18vh);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  animation: adl-fade-in .18s ease both;
}
.adl-loader.leaving { animation: adl-fade-out .18s ease both; }

.adl-loader-spinner {
  position: relative; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%;
}
/* rotating ring in the logo colors */
.adl-loader-spinner::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#e5188b 0 25%, #26a9e1 0 50%, #ffd25a 0 75%, #1a1a1a 0 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: adl-spin 1.1s linear infinite;
}
.adl-loader-logo {
  display: block; width: 74px; height: 74px; overflow: hidden; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  animation: adl-pulse 1.6s ease-in-out infinite;
}
.adl-loader-logo img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(2.35) translateY(3%); }
.adl-loader-label { font-size: .9rem; font-weight: 600; color: #5f6470; }

@keyframes adl-spin { to { transform: rotate(360deg); } }
@keyframes adl-pulse { 50% { transform: scale(.94); } }
@keyframes adl-fade-in { from { opacity: 0; } }
@keyframes adl-fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .adl-loader-spinner::before, .adl-loader-logo { animation: none; }
}
