/* Migo CRM v8.5.21.47 — Global Action Feedback */

/* Shared host. Existing workspace toasts are moved to the same slim,
   bottom-right presentation so feedback is consistent across old/new screens. */
#migoToastHost.migo-action-feedback-host-v852147,
.migo-ws-toast-host-v3067.migo-action-feedback-host-v852147 {
  position: fixed !important;
  top: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  z-index: 100300 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: min(330px, calc(100vw - 32px)) !important;
  gap: 6px !important;
  pointer-events: none !important;
}

/* New global slim action toast. */
.migo-action-toast-v852147 {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 26px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 7px 8px;
  color: #344054;
  background: rgba(255,255,255,.985);
  border: 1px solid #d7ddd6;
  border-left: 3px solid #12b76a;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16,24,40,.14);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: migoActionToastInV852147 .18s ease-out both;
}

.migo-action-toast-v852147.is-progress {
  border-left-color: #2e90fa;
}

.migo-action-toast-v852147.is-error {
  border-left-color: #f04438;
}

.migo-action-toast-v852147.is-info {
  border-left-color: #98a2b3;
}

.migo-action-toast-v852147.is-leaving {
  animation: migoActionToastOutV852147 .16s ease-in both;
}

.migo-action-toast-icon-v852147 {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #067647;
  background: #ecfdf3;
}

.migo-action-toast-v852147.is-progress .migo-action-toast-icon-v852147 {
  color: #175cd3;
  background: #eff4ff;
}

.migo-action-toast-v852147.is-error .migo-action-toast-icon-v852147 {
  color: #b42318;
  background: #fff1f0;
}

.migo-action-toast-v852147.is-info .migo-action-toast-icon-v852147 {
  color: #475467;
  background: #f2f4f7;
}

.migo-action-toast-icon-v852147 svg,
.migo-action-toast-v852147 > button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.migo-action-toast-v852147.is-progress .migo-action-toast-icon-v852147 svg {
  animation: migoActionSpinV852147 .75s linear infinite;
}

.migo-action-toast-v852147 p {
  min-width: 0;
  margin: 0;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.migo-action-toast-v852147 > button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.migo-action-toast-v852147 > button:hover {
  background: #f2f4f7;
}

/* Restyle already-existing workspace notifications to match the new slim host. */
#migoToastHost.migo-action-feedback-host-v852147 .migo-ws-toast-v3067 {
  grid-template-columns: 24px minmax(0,1fr) 26px !important;
  min-height: 42px !important;
  gap: 8px !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 30px rgba(16,24,40,.14) !important;
}

#migoToastHost.migo-action-feedback-host-v852147 .migo-ws-toast-v3067 > span {
  width: 24px !important;
  height: 24px !important;
}

#migoToastHost.migo-action-feedback-host-v852147 .migo-ws-toast-v3067 p {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

#migoToastHost.migo-action-feedback-host-v852147 .migo-ws-toast-v3067 > button {
  width: 26px !important;
  height: 26px !important;
}

/* Global button feedback. No disabled attribute is added, so existing handlers
   are not broken; the class only communicates state and prevents repeat clicks. */
button.migo-action-processing-v852147,
input[type="submit"].migo-action-processing-v852147,
input[type="button"].migo-action-processing-v852147,
[role="button"].migo-action-processing-v852147 {
  position: relative !important;
  cursor: progress !important;
  pointer-events: none !important;
  border-color: #84adf4 !important;
  box-shadow: 0 0 0 2px rgba(46,144,250,.10) !important;
  filter: saturate(.92);
}

button.migo-action-processing-v852147:not(.migo-action-icon-only-v852147),
[role="button"].migo-action-processing-v852147:not(.migo-action-icon-only-v852147) {
  padding-right: 32px !important;
}

button.migo-action-processing-v852147::after,
[role="button"].migo-action-processing-v852147::after {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  content: '';
  box-sizing: border-box;
  border: 2px solid rgba(46,144,250,.28);
  border-top-color: #2e90fa;
  border-radius: 50%;
  animation: migoActionSpinV852147 .7s linear infinite;
}

button.migo-action-processing-v852147.migo-action-icon-only-v852147::after,
[role="button"].migo-action-processing-v852147.migo-action-icon-only-v852147::after {
  left: 50%;
  right: auto;
  margin-left: -7px;
}

button.migo-action-processing-v852147.migo-action-icon-only-v852147 > *,
[role="button"].migo-action-processing-v852147.migo-action-icon-only-v852147 > * {
  opacity: .22 !important;
}

button.migo-action-success-v852147,
input[type="submit"].migo-action-success-v852147,
input[type="button"].migo-action-success-v852147,
[role="button"].migo-action-success-v852147 {
  border-color: #6ce9a6 !important;
  box-shadow: 0 0 0 2px rgba(18,183,106,.10) !important;
}

button.migo-action-error-v852147,
input[type="submit"].migo-action-error-v852147,
input[type="button"].migo-action-error-v852147,
[role="button"].migo-action-error-v852147 {
  border-color: #fda29b !important;
  box-shadow: 0 0 0 2px rgba(240,68,56,.10) !important;
}

@keyframes migoActionSpinV852147 {
  to { transform: rotate(360deg); }
}

@keyframes migoActionToastInV852147 {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes migoActionToastOutV852147 {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

@media(max-width:640px) {
  #migoToastHost.migo-action-feedback-host-v852147,
  .migo-ws-toast-host-v3067.migo-action-feedback-host-v852147 {
    right: 10px !important;
    bottom: 10px !important;
    width: min(330px, calc(100vw - 20px)) !important;
  }
}

@media(prefers-reduced-motion: reduce) {
  .migo-action-toast-v852147,
  .migo-action-toast-v852147.is-leaving {
    animation: none !important;
  }
}
