/* One unobtrusive indicator for every button, including dynamically rendered UI. */
button[data-jrv-action-pending]::after,
a[data-jrv-action-pending]::after,
.jrv-input-action-spinner {
  content: '';
  display: inline-block;
  flex: none;
  width: .82em;
  height: .82em;
  margin-inline-start: .42em;
  vertical-align: -.08em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: jrv-action-spin .72s linear infinite;
}

.jrv-input-action-spinner {
  position: fixed;
  z-index: 4001;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  pointer-events: none;
}
.jrv-input-action-spinner[hidden] { display: none !important; }

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

.jrv-action-status {
  position: fixed;
  z-index: 4000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: min(320px, calc(100vw - 32px));
  padding: 11px 15px;
  border: 1px solid #b7e7ee;
  border-radius: 12px;
  background: #f3fcfe;
  box-shadow: 0 12px 36px rgb(11 52 70 / .2);
  color: #14576b;
  font: 700 13px/1.4 Inter, 'Segoe UI', Arial, sans-serif;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  button[data-jrv-action-pending]::after,
  a[data-jrv-action-pending]::after,
  .jrv-input-action-spinner { animation: none; }
}

@media print {
  .jrv-action-status { display: none !important; }
  button[data-jrv-action-pending]::after,
  a[data-jrv-action-pending]::after,
  .jrv-input-action-spinner { display: none !important; }
}
