/* Loading states deliberately do not depend on all photos or window.load. */
img.lunisc-image-pending {
  background-color: #edf2f8;
  background-image: linear-gradient(100deg, #edf2f8 30%, #f8faff 48%, #edf2f8 66%);
  background-size: 210% 100%;
  animation: lunisc-image-shimmer 1.6s ease-in-out infinite;
}
img.lunisc-image-failed { background-color: #edf2f8; }
@keyframes lunisc-image-shimmer { 0% {background-position: 100% 0} 100% {background-position: -100% 0} }
/* Processing is displayed INSIDE the button; original content retains layout width. */
form.lunisc-form-submitting { cursor: progress; }
form.lunisc-form-submitting :is(button[type="submit"], input[type="submit"]) {
  pointer-events: none;
}
:is(button, input[type="submit"], input[type="image"]).lunisc-button-processing {
  position: relative !important;
  color: transparent !important;
  cursor: progress !important;
  pointer-events: none !important;
}
button.lunisc-button-processing > * { visibility: hidden !important; }
:is(button, input[type="submit"], input[type="image"]).lunisc-button-processing::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  box-sizing: border-box;
  border: 2.2px solid var(--lunisc-spinner-ink, #2d60a1);
  border-right-color: transparent;
  border-radius: 50%;
  animation: lunisc-spinner-turn .75s linear infinite;
  pointer-events: none;
  visibility: visible;
}
@keyframes lunisc-spinner-turn { to { transform: rotate(360deg); } }
.lunisc-screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* A short, unobtrusive transition; never wait for images or external services. */
.lunisc-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: rgba(250, 252, 255, .965);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.lunisc-page-loader.is-visible { opacity: 1; visibility: visible; }
.lunisc-page-loader-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  color: #2d60a1;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .01em;
}
.lunisc-page-loader-inner img {
  display: block;
  width: clamp(68px, 16vw, 84px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  animation: lunisc-logo-breathe 1.35s ease-in-out infinite;
}
@keyframes lunisc-logo-breathe {
  0%, 100% { opacity: .38; transform: scale(.965); }
  50% { opacity: 1; transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  img.lunisc-image-pending,
  .lunisc-button-processing::after,
  .lunisc-page-loader-inner img { animation: none !important; }
  .lunisc-page-loader { transition: none !important; }
}

select.lunisc-select-loading {
  cursor: progress;
  opacity: .66;
  transition: opacity 150ms ease;
}
