.tts-lead-toast {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 32px));
  min-height: 76px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(20, 22, 24, 0.96);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tts-lead-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.tts-lead-toast.is-success {
  border-color: rgba(86, 209, 129, 0.78);
  box-shadow:
    0 0 0 1px rgba(86, 209, 129, 0.18),
    0 0 24px rgba(62, 199, 111, 0.48),
    0 18px 55px rgba(0, 0, 0, 0.28);
}

.tts-lead-toast.is-error {
  border-color: rgba(255, 91, 91, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 91, 91, 0.18),
    0 0 24px rgba(232, 61, 61, 0.5),
    0 18px 55px rgba(0, 0, 0, 0.28);
}

.tts-lead-toast__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.tts-lead-toast.is-success .tts-lead-toast__icon {
  background: rgba(63, 203, 113, 0.18);
  color: #73e79c;
  box-shadow: inset 0 0 0 1px rgba(115, 231, 156, 0.42);
}

.tts-lead-toast.is-error .tts-lead-toast__icon {
  background: rgba(232, 61, 61, 0.18);
  color: #ff8484;
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.42);
}

.tts-lead-toast__message {
  min-width: 0;
}

.tts-lead-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .tts-lead-toast {
    width: calc(100vw - 28px);
    min-height: 70px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 17px;
    gap: 12px;
  }

  .tts-lead-toast__icon {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tts-lead-toast {
    transition: opacity 80ms linear, visibility 80ms linear;
    transform: translate(-50%, -50%);
  }

  .tts-lead-toast.is-visible {
    transform: translate(-50%, -50%);
  }
}
