/* Submit button + global action loading indicators */

.btn.is-loading {
  position: relative;
  pointer-events: none;
  cursor: wait;
  opacity: 0.92;
}

.btn.is-loading::before {
  content: '';
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  margin-right: 0.45em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rp-btn-spin 0.65s linear infinite;
  vertical-align: -0.125em;
}

@keyframes rp-btn-spin {
  to { transform: rotate(360deg); }
}

.global-action-loading {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.global-action-loading.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.global-action-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(248, 250, 252, 0.35);
  border-top-color: #f8fafc;
  border-radius: 50%;
  animation: rp-btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}
