
:root {
  --chat-accent: #232323;
  --chat-bubble-bg: #f9f9f9;
  --chat-shadow: rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(35, 35, 35, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(35, 35, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 35, 35, 0); }
}


#ai-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: var(--chat-accent);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: pulse 1.5s infinite;
}

#ai-bubble img {
  width: 32px;
  height: 32px;
}

#ai-tooltip {
  position: absolute;
  bottom: 80px;
  right: 0;
  background-color: #fff;
  color: #232323;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(5px);
  pointer-events: none;
}

#ai-bubble:hover #ai-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.typing-indicator {
  display: inline-block;
  width: 40px;
  text-align: left;
}
.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  background-color: #aaa;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

.flag-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background-color: white;
  border-bottom: 1px solid #ddd;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.flag {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 8px;
  align-self: flex-end;
}
@media (max-width: 600px) {
 #ai-chatbox {
    width: 100vw !important;
    height: 100vh !important;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
  }

.flag-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background-color: white;
  border-bottom: 1px solid #ddd;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.flag {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}



  #ai-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
  }

  #ai-query {
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
  }
  .bubble {
    word-wrap: break-word;
    white-space: normal;
  }

  .avatar {
    width: 24px;
    height: 24px;
  }
}
.ai-msg {
  display: flex;
  align-items: flex-start;
  margin: 10px;
}

.ai-msg.user {
  justify-content: flex-end;
}

.ai-msg.bot {
  justify-content: flex-start;
}

.ai-msg .bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-msg.user .bubble {
  background-color: #d1ecf1;
  color: #222;
  border-bottom-right-radius: 0;
}

.ai-msg.bot .bubble {
  background-color: #f1f1f1;
  color: #111;
  border-bottom-left-radius: 0;
}
#ai-bubble.gdpr-disabled {
  pointer-events: none;     /* Δεν μπορεί να γίνει click */
  opacity: 0.5;             /* Οπτικά δείχνει "γκριζαρισμένο" */
  cursor: not-allowed;      /* Δείχνει "απαγορευμένο" χεράκι */
}