#bitva-ai-sales-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

#bitva-ai-launcher {
  padding: 14px 18px;
  border: 0;
  border-radius: 24px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

#bitva-ai-engagement {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  color: #222;
  font-size: 14px;
  line-height: 1.4;
}

#bitva-ai-engagement[hidden] {
  display: none;
}

#bitva-ai-engagement-question {
  display: block;
  padding-right: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

#bitva-ai-engagement-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#bitva-ai-engagement-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bitva-ai-engagement-option {
  flex: 1 1 calc(50% - 7px);
  min-width: 130px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 16px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.bitva-ai-engagement-option:hover {
  background: #f5f5f5;
}

.bitva-ai-engagement-rating {
  margin-bottom: 8px;
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
}

.bitva-ai-engagement-quote {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.45;
}

.bitva-ai-engagement-reviewer {
  color: #666;
  font-size: 12px;
  font-weight: normal;
}

.bitva-ai-engagement-cta {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.bitva-ai-engagement-cta:hover {
  background: #333;
}

#bitva-ai-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 400px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  font-size: 14px;
  line-height: 1.4;
}

#bitva-ai-panel[hidden] {
  display: none;
}

#bitva-ai-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid #eee;
}

#bitva-ai-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

#bitva-ai-messages {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.bitva-ai-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.bitva-ai-assistant {
  background: #f2f2f2;
}

#bitva-ai-suggested-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px 10px;
}

#bitva-ai-form {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 12px 14px 16px;
  margin: 0;
  border-top: 1px solid #eee;
  background: #fff;
}

#bitva-ai-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
}

#bitva-ai-input:focus {
  border-color: #777;
}

#bitva-ai-send {
  height: 40px;
  box-sizing: border-box;
  padding: 8px 14px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

#bitva-ai-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bitva-ai-user {
  margin-left: 36px;
  background: #111;
  color: #fff;
}

.bitva-ai-assistant {
  margin-right: 36px;
  background: #f2f2f2;
  color: #222;
}

.bitva-ai-suggested-reply {
  flex: 1 1 calc(50% - 6px);
  min-width: 140px;
  box-sizing: border-box;
  padding: 7px 10px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 16px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
}

.bitva-ai-suggested-reply:hover {
  background: #f5f5f5;
}

.bitva-ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 12px 14px;
}

.bitva-ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777;
  animation: bitva-ai-typing-dot 1.2s infinite ease-in-out;
}

.bitva-ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.bitva-ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bitva-ai-typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
