/* The busy lock (js/busy.js): the scrim over the whole screen, dialogs
   included, with a white spinner in its centre; it takes every tap. The
   spinner is a ring, so it reads as still under prefers-reduced-motion
   (base.css stops the rotation). */
.mm-busy {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mm-scrim);
  cursor: progress;
}

.mm-busy[hidden] {
  display: none;
}

.mm-busy__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid color-mix(in srgb, var(--mm-surface) 35%, transparent);
  border-top-color: var(--mm-surface);
  border-radius: 50%;
  animation: mm-spin .8s linear infinite;
}

/* The alert after the lock gives up: an error message above the tab bar,
   with its reload button on its own line. */
.mm-busy-alert {
  position: fixed;
  right: var(--mm-space-4);
  bottom: calc(var(--mm-space-14) + var(--mm-space-4));
  left: var(--mm-space-4);
  z-index: 1000;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--mm-shadow-overlay);
}

.mm-busy-alert[hidden] {
  display: none;
}

.mm-busy-alert .mm-msg__body {
  flex-basis: 100%;
}
