/* Κύριο παράθυρο */
#ahkplus-chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  max-height: 75vh; /* λίγο πιο ψηλό */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 13px; /* μικρότερο κείμενο */
  display: none;
  overflow: hidden;
  z-index: 9999;
}

/* Όταν είναι ανοιχτό */
#ahkplus-chatbot-window.is-open {
  display: flex;
  flex-direction: column;
}

/* Όταν είναι μεγιστοποιημένο */
#ahkplus-chatbot-window.is-open.is-maximized {
bottom: 10px;
  right: 10px;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}


#ahkplus-chatbot-launcher .ahkplus-launcher-icon {
  width: 56px;
  height: 56px;
  display: block;
}


/* Header */
.ahkplus-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #0099d8;
  color: #ffffff;
}

.ahkplus-chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ahkplus-chatbot-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #ffffff;
  color: #0099d8;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ahkplus-chatbot-title {
  font-size: 13px;
  font-weight: 600;
}

/* Header buttons */
.ahkplus-chatbot-header-buttons button {
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 13px;
}

/* Περιοχή μηνυμάτων */
.ahkplus-chatbot-messages {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: #f7f9fb;
}

/* Μπαλόνια */
.ahkplus-chatbot-message {
  margin-bottom: 8px;
  display: flex;
}

.ahkplus-chatbot-message.bot {
  justify-content: flex-start;
}

.ahkplus-chatbot-message.user {
  justify-content: flex-end;
}

.ahkplus-chatbot-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  position: relative; /* χρειάζεται για το "τριγωνάκι" */
}

/* BOT bubble + tail (αριστερά) */
.ahkplus-chatbot-message.bot .ahkplus-chatbot-bubble {
  background: #e5f4fb;
  color: #17324d;
  border-radius: 14px 14px 14px 4px;
}

.ahkplus-chatbot-message.bot .ahkplus-chatbot-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #e5f4fb; /* ίδιο χρώμα με το bubble */
}

/* USER bubble + tail (δεξιά) */
.ahkplus-chatbot-message.user .ahkplus-chatbot-bubble {
  background: #0099d8;
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
}

.ahkplus-chatbot-message.user .ahkplus-chatbot-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #0099d8; /* ίδιο χρώμα με το bubble */
}

/* Περιοχή input */
.ahkplus-chatbot-input {
  display: flex;
  padding: 8px 10px;
  border-top: 1px solid #dde3ea;
  background: #ffffff;
}

.ahkplus-chatbot-input input[type="text"] {
  flex: 1;
  border: 1px solid #ccd4dd;
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 13px;
}

.ahkplus-chatbot-input button {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: none;
  background: #0099d8;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

/* Quick buttons */
.ahkplus-chatbot-quick-buttons {
  padding: 6px 10px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ahkplus-chatbot-quick-buttons button {
  border-radius: 999px;
  border: 1px solid #0099d8;
  background: #ffffff;
  color: #0099d8;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* Launcher */
#ahkplus-chatbot-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #0099d8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  font-weight: 600;
  z-index: 9999;
}

#ahkplus-chatbot-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(0, 153, 216, 0.35);
  animation: ahkplus-pulse 2.6s ease-out infinite;
  z-index: -1;
}

@keyframes ahkplus-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
