/* Start Mailing → React handoff loading state */
.list-view-actions__btn--mail.is-busy,
.mail-saved-list.is-busy,
.parcel-info__actions .actions-add_mailer.is-busy {
  position: relative;
  pointer-events: none;
  cursor: wait;
  opacity: 0.85;
}

/* Icon mail button: replace glyph with spinner */
.parcel-info__actions .actions-add_mailer.is-busy img {
  visibility: hidden;
}

.parcel-info__actions .actions-add_mailer.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(35, 164, 85, 0.25);
  border-top-color: #23a455;
  border-radius: 50%;
  animation: lp-mailing-btn-spin 0.7s linear infinite;
  z-index: 2;
}

/* Text buttons: spinner on the right */
.list-view-actions__btn--mail.is-busy,
.mail-saved-list.is-busy {
  padding-right: 36px;
}

.list-view-actions__btn--mail.is-busy::after,
.mail-saved-list.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(35, 164, 85, 0.25);
  border-top-color: #23a455;
  border-radius: 50%;
  animation: lp-mailing-btn-spin 0.7s linear infinite;
  z-index: 2;
}

@keyframes lp-mailing-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
