:root {
  --catalog-sky: linear-gradient(175deg, #eee4ed 0%, #f7ecee 44%, #fffaf3 100%);
  --catalog-clouds:
    radial-gradient(ellipse, #f8eff2 65%, transparent 72%) 4vw 34px / 125px 41px no-repeat,
    radial-gradient(ellipse, #f8eff2 65%, transparent 72%) calc(4vw + 55px) 20px / 80px 51px no-repeat,
    radial-gradient(ellipse, #f9f1f2 65%, transparent 72%) calc(100% - 4vw) 54px / 140px 42px no-repeat,
    radial-gradient(ellipse, #f9f1f2 65%, transparent 72%) calc(100% - 4vw - 40px) 40px / 87px 48px no-repeat;
}

.catalog-handoff {
  position: fixed;
  z-index: 28;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--catalog-clouds), var(--catalog-sky);
  color: #351044;
  pointer-events: none;
}

body:has(.atelier-header) .catalog-handoff {
  inset-block-start: var(--atelier-header-height);
}

.catalog-handoff > .atelier-header { position: fixed; inset: 0 0 auto; }

.catalog-wait {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid #dbc8d4;
  border-radius: 24px;
  background: #fffaf3;
  color: #351044;
  font: 750 .875rem/1.4 "Nunito Sans", system-ui, sans-serif;
}

.catalog-wait::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid #decbd6;
  border-top-color: #7f1331;
  border-radius: 50%;
}

.catalog-handoff[hidden], .catalog-wait[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .catalog-wait::before { animation: catalog-wait .9s linear infinite; }
  @keyframes catalog-wait { to { transform: rotate(360deg); } }
}
