:root {
  --header-bg: #111827;
  --header-text: #ffffff;
  --chat-bg: #ffffff;
  --bot-bubble-bg: #f3f4f6;
  --bot-bubble-text: #111827;
  --user-bubble-bg: #2563eb;
  --user-bubble-text: #ffffff;
  --accent: #22c55e;
  --border-radius: 16px;
  --transition-speed: 0.2s;
}

/* Floating Chatbot Container */
.my-chatbot-box {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 820px;
  max-width: calc(100vw - 36px);
  height: 620px;
  max-height: calc(100vh - 36px);
  background: var(--chat-bg);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  z-index: 99999;
  transition: all var(--transition-speed) ease;
}

/* Left Position */
.my-chatbot-root[data-position="left"] .my-chatbot-box {
  right: auto;
  left: 18px;
}

/* Mobile Responsive */
@media (max-width: 880px) {
  .my-chatbot-box {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .my-chatbot-root[data-position="left"] .my-chatbot-box {
    left: 0;
  }
}

/* Header */
.my-chatbot-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.my-chatbot-back-btn {
  background: transparent;
  border: none;
  color: var(--header-text);
  cursor: pointer;
  font-size: 24px;
  padding: 0 8px;
  margin-right: 4px;
  transition: opacity var(--transition-speed) ease;
  line-height: 1;
}

.my-chatbot-back-btn:hover {
  opacity: 0.8;
}

.my-chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.2);
}

.my-chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-chatbot-header-info {
  flex: 1;
}

.my-chatbot-header-info strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.my-chatbot-header-info small {
  font-size: 12px;
  opacity: 0.8;
  display: block;
}

/* Body */
.my-chatbot-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: var(--chat-bg);
  scroll-behavior: smooth;
}

.my-chatbot-body::-webkit-scrollbar {
  width: 8px;
}

.my-chatbot-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.my-chatbot-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.my-chatbot-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Message Rows */
.my-chatbot-row { 
  margin: 12px 0; 
  display: flex; 
  animation: fadeIn 0.3s ease;
}

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

.my-chatbot-row.bot { 
  justify-content: flex-start; 
}

.my-chatbot-row.user { 
  justify-content: flex-end; 
}

/* Message Bubbles */
.my-chatbot-bubble {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.my-chatbot-row.bot .my-chatbot-bubble {
  background: var(--bot-bubble-bg);
  color: var(--bot-bubble-text);
  border-bottom-left-radius: 6px;
}

.my-chatbot-row.user .my-chatbot-bubble {
  background: var(--user-bubble-bg);
  color: var(--user-bubble-text);
  border-bottom-right-radius: 6px;
}

/* Categories Grid */
.my-chatbot-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 15px 0 5px;
}

.my-chatbot-category-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  width: 100%;
}

.my-chatbot-category-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(34, 197, 94, 0.2);
}

.my-chatbot-category-btn:active {
  transform: translateY(0);
}

.my-chatbot-category-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Questions List */
.my-chatbot-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0 5px;
}

.my-chatbot-question-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.my-chatbot-question-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.my-chatbot-question-icon {
  font-size: 18px;
  color: var(--accent);
  width: 24px;
  text-align: center;
}

/* Legacy Choices (backward compatibility) */
.my-chatbot-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 5px;
}

.my-chatbot-choices button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 30px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  color: #1e293b;
}

.my-chatbot-choices button:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
.my-chatbot-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  gap: 10px;
  background: var(--chat-bg);
}

.my-chatbot-footer input {
  flex: 1 1 auto;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 12px 20px;
  outline: none;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
  background: #f8fafc;
}

.my-chatbot-footer input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.my-chatbot-footer button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.my-chatbot-footer button:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.my-chatbot-footer button:active {
  transform: scale(0.98);
}

/* Loading Indicator */
.my-chatbot-loading {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0;
  animation: fadeIn 0.3s ease;
}

.my-chatbot-typing-indicator {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bot-bubble-bg);
  border-radius: 20px;
  border-bottom-left-radius: 6px;
}

.my-chatbot-typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--bot-bubble-text);
  opacity: 0.5;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.my-chatbot-typing-indicator span:nth-child(2) { 
  animation-delay: 0.2s; 
}

.my-chatbot-typing-indicator span:nth-child(3) { 
  animation-delay: 0.4s; 
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* Typography */
.my-chatbot-row.bot .my-chatbot-bubble p:first-child {
  margin-top: 0;
}

.my-chatbot-row.bot .my-chatbot-bubble p:last-child {
  margin-bottom: 0;
}

/* Shortcode Mode */
.my-chatbot-root[data-mode="shortcode"] .my-chatbot-box {
  position: relative;
  right: auto;
  bottom: auto;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Welcome Message */
.my-chatbot-welcome {
  text-align: center;
  margin: 20px 0 30px;
}

.my-chatbot-welcome h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.my-chatbot-welcome p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Section Titles */
.my-chatbot-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-chatbot-section-title span {
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
/* Αυτόματη εμφάνιση σε όλο τον ιστότοπο */
.my-chatbot-root[data-mode="floating"] .my-chatbot-box{display:none;width:min(420px,calc(100vw - 36px));height:min(560px,calc(100vh - 110px));bottom:82px;right:18px}
.my-chatbot-root[data-mode="floating"].is-open .my-chatbot-box{display:flex}
.my-chatbot-launcher{position:fixed;right:18px;bottom:18px;z-index:99999;min-height:48px;padding:10px 18px;border:0;border-radius:28px;background:#b92825;color:#fff;font:600 15px Arial,sans-serif;box-shadow:0 4px 14px #0004;cursor:pointer}
.my-chatbot-launcher:hover,.my-chatbot-launcher:focus-visible{background:#941e1b;outline:2px solid #fff;outline-offset:2px}
.my-chatbot-close{margin-left:auto;flex:none;border:0;background:transparent;color:var(--header-text);font:30px Arial,sans-serif;min-width:44px;min-height:44px;cursor:pointer}
.my-chatbot-close:focus-visible{outline:2px solid currentColor}
@media(max-width:600px){.my-chatbot-root[data-mode="floating"] .my-chatbot-box{inset:0;width:100%;height:100%;max-width:100%;max-height:100%;border-radius:0}.my-chatbot-root[data-mode="floating"].is-open .my-chatbot-launcher{display:none}}
