/* Sales notification toast — bottom-left campaign card */
.hec-sales-notifications {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 99990;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 40px));
  box-sizing: border-box;
}

.hec-sales-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 40px 16px 16px;
  background: #ffffff;
  border: 2px solid rgba(107, 70, 254, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  color: #111827;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  pointer-events: auto;
}

.hec-sales-notifications.is-visible .hec-sales-toast {
  opacity: 1;
  transform: translateX(0);
}

.hec-sales-notifications.is-hiding .hec-sales-toast {
  opacity: 0;
  transform: translateX(-14px);
}

.hec-sales-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hec-sales-toast__close svg {
  width: 16px;
  height: 16px;
}

.hec-sales-toast__close:hover,
.hec-sales-toast__close:focus-visible {
  background: rgba(17, 24, 39, 0.08);
  color: #000000;
  outline: none;
}

/* Bot avatar */
.hec-sales-toast__avatar {
  flex: 0 0 88px;
  width: 88px;
}

.hec-sales-toast__avatar-ring {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #f3efff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hec-sales-toast__bot-lottie {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.hec-sales-toast__bot-lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hec-sales-toast__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6b46fe;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(107, 70, 254, 0.28);
}

.hec-sales-toast__badge--ai {
  left: 8px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hec-sales-toast__badge--chart {
  right: 6px;
  bottom: 0;
}

.hec-sales-toast__badge--chart svg {
  width: 14px;
  height: 14px;
}

/* Content */
.hec-sales-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.hec-sales-toast__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.hec-sales-toast__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #6b46fe;
}

.hec-sales-toast__live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  animation: hec-sales-live-blink 1.6s ease-in-out infinite;
}

@keyframes hec-sales-live-blink {
  0%,
  100% {
    opacity: 1;
    background-color: #dc2626;
  }
  50% {
    opacity: 0.78;
    background-color: #ef4444;
  }
}

.hec-sales-toast__message,
.hec-sales-toast__location {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #374151;
}

.hec-sales-toast__message strong,
.hec-sales-toast__location strong {
  color: #111827;
  font-weight: 700;
}

.hec-sales-toast__count {
  color: #111827;
}

.hec-sales-toast__flag {
  font-size: 15px;
  line-height: 1;
}

.hec-sales-toast__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #6b46fe;
}

.hec-sales-toast__clock {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

@media (max-width: 767px) {
  .hec-sales-notifications {
    --hec-sales-bottom-gap: 12px;
    --hec-sales-bottom-extra: 0px;
    left: 0;
    right: 0;
    bottom: calc(
      var(--hec-sales-bottom-gap) + var(--hec-sales-bottom-extra) +
        env(safe-area-inset-bottom, 0px)
    );
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    z-index: 99995;
  }

  .hec-sales-toast {
    transform: translateY(12px);
    padding-right: 38px;
    max-height: calc(
      100dvh - var(--hec-sales-bottom-gap) - var(--hec-sales-bottom-extra) -
        env(safe-area-inset-bottom, 0px) - 16px
    );
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hec-sales-notifications.is-visible .hec-sales-toast {
    transform: translateY(0);
  }

  .hec-sales-notifications.is-hiding .hec-sales-toast {
    transform: translateY(8px);
  }

  .hec-sales-toast__avatar {
    flex-basis: 76px;
    width: 76px;
  }

  .hec-sales-toast__avatar-ring {
    width: 76px;
    height: 76px;
  }

  .hec-sales-toast__bot-lottie {
    width: 64px;
    height: 64px;
  }

  .hec-sales-toast__title {
    font-size: 14px;
  }

  .hec-sales-toast__message,
  .hec-sales-toast__location {
    font-size: 13px;
  }

  .hec-sales-toast__time {
    font-size: 12px;
  }
}
