button[data-feedback-state='loading'] {
  cursor: progress;
  pointer-events: none;
  opacity: 0.85;
  white-space: normal;
  overflow-wrap: normal;
}
button[data-feedback-state='loading']::before {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-inline-end: 0.5em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: -0.08em;
  animation: zaira-action-spin 0.8s linear infinite;
}
button[data-feedback-state='success'] {
  outline: 2px solid #367454;
  outline-offset: 2px;
}
button[data-feedback-state='error'] {
  outline: 2px solid #a6324d;
  outline-offset: 2px;
}
.zaira-action-feedback {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8cbed;
  border-radius: 10px;
  background: #faf7ff;
  color: #34244d;
  overflow-wrap: anywhere;
  white-space: normal;
}
.zaira-action-feedback[data-state='error'] {
  background: #fff4f5;
  border-color: #e9aeb8;
  color: #85263c;
}
.zaira-action-feedback[data-state='success'] {
  background: #f0f8f3;
  border-color: #bfdcca;
  color: #25563c;
}
body > .zaira-action-feedback {
  position: fixed;
  z-index: 10020;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90vw, 620px);
  box-shadow: 0 4px 20px #24173520;
  margin: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  body > .zaira-action-feedback {
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
  button[data-feedback-state] {
    min-height: 44px;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  button[data-feedback-state='loading']::before {
    animation: none;
  }
}
@keyframes zaira-action-spin {
  to {
    transform: rotate(360deg);
  }
}
