
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

.chatbot-button {
  background: transparent;
  color: transparent;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.18s ease;
}
.chatbot-button:hover {
  transform: scale(1.05);
}

.chatbot-button .chatbot-avatar {
  width: 150px;
  height: 150px;
  margin-left: -10px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.chatbox {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  bottom: 90px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
}


.chatbox-header {
  background: linear-gradient(135deg, #42a2b1, #42a2b1);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbox-header h4 {
  margin: 0;
  font-size: 16px;
}
.chatbox-header i {
  cursor: pointer;
}


.chatbox-body {
  padding: 15px;
  height: 350px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.message {
  display: block;
  padding: 10px 14px;
  border-radius: 15px;
  margin-bottom: 10px;
  max-width: 86%;
  word-wrap: break-word;
  white-space: normal;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}
.bot {
  background: #e9f1ff;
  color: #000;
  align-self: flex-start;
}
.user {
  background: #42a2b1;
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}

.message a { color: #07575b; text-decoration: underline; }
.message a[target="_blank"] { color: #07575b; }


.chatbox-footer {
  display: flex;
  border-top: 1px solid #ddd;
}
.chatbox-footer input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
}
.chatbox-footer button {
  background: #42a2b1;
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chatbox-footer button:hover {
  background: #42a2b1;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(5px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Mobile */
@media (max-width: 768px) {
  body.chat-open {
    overflow: hidden;
  }

  .chatbot-container.open .chatbot-button {
    display: none;
  }

  .chatbox {
    position: fixed;
    top: var(--site-header-height, 0);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
    margin: 0;
    flex-direction: column;
    background: #fff;
    z-index: 1100;
    box-sizing: border-box;
  }

  .chatbox-header {
    padding: 14px 16px;
    flex: 0 0 auto;
    margin-top: 5px;
  }

  .chatbox-body {
    padding: 12px;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .chatbox-footer {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 10px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 10px);
    background: #fff;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
  }
}