.processing-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(58, 179, 255, .42);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(18, 46, 75, .97), rgba(8, 20, 38, .97));
  box-shadow: 0 22px 56px rgba(0, 0, 0, .42);
}

.processing-banner[hidden] { display: none !important; }

.processing-spinner,
.button-spinner {
  display: inline-block;
  border-radius: 999px;
  border: 3px solid rgba(203, 222, 255, .22);
  border-top-color: var(--blue);
  animation: apr-spin .85s linear infinite;
}

.processing-spinner {
  width: 24px;
  height: 24px;
}

.button-spinner {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.processing-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 850;
}

.processing-detail {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}

.button.processing-active {
  opacity: .78;
}

.button.processing-active::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(203, 222, 255, .24);
  border-top-color: currentColor;
  animation: apr-spin .85s linear infinite;
}

@keyframes apr-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .processing-banner {
    right: 16px;
    bottom: 16px;
  }
}
