/* 按鈕回饋：按下去會微微下沉；送出表單後顯示轉圈，避免重複送出 */
:where(button, .btn, .btn-sm, .btn-ghost, .btn-light, .btn-ghost-light, .btn-danger-ghost, [role="button"], input[type="submit"], input[type="button"]) {
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, color, border-color, box-shadow, opacity, filter, scale, transform;
  transition-duration: .15s;
}
:where(button, .btn, .btn-sm, .btn-ghost, .btn-light, .btn-ghost-light, .btn-danger-ghost, [role="button"], input[type="submit"], input[type="button"]):not(:disabled):not([aria-disabled="true"]):active {
  scale: .96;
  filter: brightness(.92);
  transition-duration: .05s;
}
:where(button, .btn, .btn-sm, [role="button"], input[type="submit"], input[type="button"]):focus-visible {
  outline: 3px solid #2B44E8;
  outline-offset: 2px;
}
.fb-busy {
  cursor: progress !important;
  pointer-events: none;
  opacity: .8;
}
button.fb-busy::after, a.fb-busy::after {
  content: "";
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-left: .5em;
  vertical-align: -.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: fb-spin .7s linear infinite;
}
@keyframes fb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  :where(button, .btn, .btn-sm, [role="button"], input[type="submit"], input[type="button"]):active { scale: 1; }
  button.fb-busy::after, a.fb-busy::after { animation-duration: 2.4s; }
}
