#ai-chat-bubble{position:fixed;z-index:9999;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
#ai-chat-bubble.bottom-right{right:10px;bottom:50px}
#ai-chat-bubble.bottom-left{left:10px;bottom:50px}
#ai-chat-toggle{background:#1f2937;color:#fff;padding:2px 3px;border-radius:999px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.2)}
#ai-chat-window{width:340px;max-width:90vw;background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-top:8px;box-shadow:0 10px 24px rgba(0,0,0,.15)}
#ai-chat-header{padding:10px 12px;border-bottom:1px solid #f3f4f6;background:#f9fafb;border-radius:12px 12px 0 0}
#ai-chat-header .title{font-weight:700}
#ai-chat-header .subtitle{font-size:12px;color:#6b7280}
#ai-chat-log{height:260px;overflow:auto;padding:10px 12px}
.ai-chat-message{padding:6px 8px;margin:6px 0;border-radius:8px;line-height:1.35}
.ai-chat-message.user{background:#eef2ff;align-self:flex-end}
.ai-chat-message.assistant{background:#f3f4f6}
#ai-chat-controls{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #f3f4f6}
#ai-chat-input{flex:1;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px}
#ai-chat-send{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 12px;cursor:pointer}
.ai-products{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ai-product-card{border:1px solid #e5e7eb;border-radius:10px;padding:10px}
.ai-product-card .title{font-weight:700;margin-bottom:4px}
.ai-product-card .desc{font-size:13px;color:#4b5563;margin-bottom:8px}
.ai-product-card .row{display:flex;align-items:center;justify-content:space-between}
.ai-product-card .price{font-weight:700}
.ai-product-card .btn{background:#111827;color:#fff;text-decoration:none;padding:6px 10px;border-radius:8px}
/* Απόκρυψη AI Chat σε κινητά */
@media (max-width: 768px) {
    #ai-chat-bubble {
        display: none !important;
    }
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;             /* λίγο κενό ανάμεσα στη λέξη και τις τελίτσες */
  margin: 5px 0;
  font-size: 12px;
  color: #666;
}

.typing-indicator .label {
  font-style: italic;
  margin-right: 4px;
}

.typing-indicator span.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #666;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing-indicator span.dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}
/* Default μέγεθος */
#ai-chat-bubble #ai-chat-window {
  width: 400px;
  height: 500px;
  transition: all 0.3s ease;
}

/* Μεγαλωμένο μέγεθος */
#ai-chat-bubble #ai-chat-window.chat-large {
  width: 900px;
  height: 700px;
}

/* Κουμπί μεγέθυνσης στο header */
#ai-chat-header {
  position: relative; /* για να είναι βάση το header */
}

#ai-chat-header .expand-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;         /* 🔹 πιο μεγάλο σύμβολο */
  line-height: 1;
  padding: 4px 8px;        /* 🔹 μεγαλύτερο padding */
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f1f1f1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* 🔹 λίγο βάθος */
}
#ai-chat-header .expand-btn:hover {
  background: #e1e1e1;
}

@keyframes moveUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-50px); /* πιο μικρή ή μεγάλη απόσταση */
  }
}

#ai-chat-toggle {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: #fff; /* λευκό φόντο */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: moveUpDown 7s infinite ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* προαιρετικό για πιο "φουσκωτό" */
}

#ai-chat-toggle img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

#ai-chat-footer {
  text-align: center;
  font-size: 11px;
  color: #222;
  padding: 6px 0;
  border-top: 1px solid #ccc;
  background: linear-gradient(
    90deg,
    #ffffff 0%,    /* φωτεινό λευκό στην άκρη αριστερά */
    #d0d0d0 50%,   /* σκουρό στο κέντρο */
    #ffffff 100%   /* φωτεινό λευκό στην άκρη δεξιά */
  );
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), /* εσωτερική σκιά */
              0 -1px 2px rgba(255,255,255,0.6); /* λάμψη επάνω */
}

#ai-chat-footer strong {
  color: #000;
}