.button-loading__content {
  align-items: center;
  display: inline-flex;
  gap: 0.48em;
  justify-content: center;
  min-width: 0;
}

.button-loading__spinner {
  animation: myrhem-button-loading-spin 720ms linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  opacity: 0.82;
  width: 1em;
}

.button-loading__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-button-loading-active="true"] {
  cursor: progress !important;
}

button[data-button-loading-active="true"],
input[data-button-loading-active="true"],
a[data-button-loading-active="true"] {
  pointer-events: none;
}

.admin-chat-send[data-button-loading-active="true"] .button-loading__label,
.myrhem-chat__composer [data-button-loading-active="true"] .button-loading__label,
[data-button-loading-compact="true"] .button-loading__label {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.admin-chat-send[data-button-loading-active="true"],
.myrhem-chat__composer [data-button-loading-active="true"],
[data-button-loading-compact="true"] {
  overflow: hidden;
}

@keyframes myrhem-button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-loading__spinner {
    animation-duration: 1400ms;
  }
}
