/* Buttons mit Statuswechsel (pq-morph.js). Farben erbt der Button, Erfolg wird grün. */
.pqm[data-pqm] { display: inline-grid; place-items: center; transition: background-color 300ms ease, color 300ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.pqm > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: opacity 220ms ease, filter 220ms ease, transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.pqm:not([data-pqm="idle"]) > .pqm-idle,
.pqm:not([data-pqm="load"]) > .pqm-load,
.pqm:not([data-pqm="done"]) > .pqm-done { opacity: 0; filter: blur(4px); transform: scale(.94); }
.pqm[data-pqm="load"], .pqm[data-pqm="done"] { pointer-events: none; opacity: 1 !important; }
.pqm[data-pqm="done"] { background: #1f7a4d !important; border-color: #1f7a4d !important; color: #fff !important; }
.pqm-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; opacity: .8; animation: pqm-spin 600ms linear infinite; }
.pq-btn--block.pqm[data-pqm] { display: grid; }
@keyframes pqm-spin { to { transform: rotate(360deg); } }
.pqm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .pqm > span { transition: opacity 120ms ease; filter: none !important; transform: none !important; }
  .pqm-spin { animation-duration: 1.5s; }
}
