.kit-chat-faq-container {
  margin: 30px 0;
  font-family: "Nunito Sans", sans-serif;
  width: 100%;
}

.kit-chat-faq-wrapper {
  margin: 0 auto;
  max-width: 100%;
}

.kit-chat-faq-counter {
  text-align: center;
  font-size: 13px;
  color: #c62a72;
  margin-bottom: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: #ffe5f3;
  border-radius: 20px;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.kit-chat-faq-counter.limit-reached {
  color: #d32f2f;
  background: #ffebee;
}

.kit-chat-faq-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #c62a721a;
  border-radius: 50px;
  padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.kit-chat-faq-input-box:focus-within {
  box-shadow: 0 4px 20px rgba(216, 0, 115, 0.2);
  transform: translateY(-2px);
}

.kit-chat-faq-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #c62a72;
  background: transparent;
  padding: 8px 0;
}

.kit-chat-faq-input::placeholder {
  color: #c62a72;
}

.kit-chat-faq-voice-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d80073;
  transition: all 0.3s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.kit-chat-faq-voice-btn:hover {
  background: #ffe5f5;
  transform: scale(1.1);
}

.kit-chat-faq-voice-btn.listening {
  animation: pulse 1.5s infinite;
  color: #ff0080;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.kit-chat-faq-messages {
  margin-top: 20px;
  background: #ffe5f3;
  border-radius: 20px;
  padding: 20px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.kit-chat-faq-message {
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-in;
}

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

.kit-chat-faq-message.user {
  text-align: right;
}

.kit-chat-faq-message.bot {
  text-align: left;
}

.kit-chat-faq-message-bubble {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.kit-chat-faq-message.user .kit-chat-faq-message-bubble {
  background: #fff;
  border-bottom-right-radius: 4px;
}

.kit-chat-faq-message.bot .kit-chat-faq-message-bubble {
  background: #ffa3d4;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kit-chat-faq-message.bot .kit-chat-faq-message-bubble p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.kit-chat-faq-message.bot .kit-chat-faq-message-bubble p:last-child {
  margin-bottom: 0;
}

.kit-chat-faq-source {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #c62a72;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kit-chat-faq-source-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.kit-chat-faq-source-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #c62a72;
  font-weight: 600;
  transition: all 0.3s ease;
}

.kit-chat-faq-source-link:hover {
  color: #d80073;
  transform: translateX(5px);
}

.kit-chat-faq-source-link svg {
  margin-left: 8px;
  flex-shrink: 0;
}

.kit-chat-faq-loading {
  text-align: center;
  padding: 20px;
  color: #c62a72;
  font-weight: 600;
}

.kit-chat-faq-loading p {
  margin: 0;
  animation: pulse 1.5s infinite;
}

.kit-chat-faq-suggested-posts {
  margin-top: 15px;
}

.kit-chat-faq-suggested-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.kit-chat-faq-suggested-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kit-chat-faq-suggested-item {
  display: block;
  padding: 10px 15px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.kit-chat-faq-suggested-item:hover {
  background: #ffe5f5;
  border-color: #c62a72;
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .kit-chat-faq-container {
    margin: 20px 0;
  }

  .kit-chat-faq-input-box {
    padding: 6px 16px;
  }

  .kit-chat-faq-input {
    font-size: 14px;
  }

  .kit-chat-faq-messages {
    padding: 15px;
    min-height: 150px;
  }

  .kit-chat-faq-message-bubble {
    max-width: 90%;
    font-size: 14px;
  }

  .kit-chat-faq-source {
    padding: 12px;
  }
}
