.ecobau-evi-chat {
  width: min(100%, 420px);
  border: 1px solid #d8ded8;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  font-family: inherit;
}

.ecobau-evi-chat__brand { display: flex; align-items: center; gap: 8px; }
.ecobau-evi-chat__logo { width: 26px; height: 26px; border-radius: 6px; display: block; }
.ecobau-evi-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e9e5;
  background: #f7faf7;
}

.ecobau-evi-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
}

.ecobau-evi-chat__bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-line;
}

.ecobau-evi-chat__bubble--agent {
  align-self: flex-start;
  background: #eef4ef;
  color: #1d2a20;
}

.ecobau-evi-chat__bubble--customer {
  align-self: flex-end;
  background: #1f6b3b;
  color: #ffffff;
}

.ecobau-evi-chat__typing {
  color: #5f6f64;
  font-style: italic;
}

.ecobau-evi-chat__link {
  color: #145c31;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ecobau-evi-chat__form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e9e5;
}

.ecobau-evi-chat__form input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cbd5cb;
  border-radius: 6px;
}

.ecobau-evi-chat__form button {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: #1f6b3b;
  color: #ffffff;
  cursor: pointer;
}

.ecobau-evi-chat__form input:disabled {
  background: #f5f7f5;
}

/* ===== Floating widget (v0.3.0) — launcher κάτω-αριστερά + panel ===== */
.ecobau-evi-float { position: fixed; left: 20px; bottom: 20px; z-index: 999999; font-family: inherit; }
.ecobau-evi-float__launcher {
  position: relative; width: 62px; height: 62px; border-radius: 16px;
  border: none; cursor: pointer; background: transparent; color: #fff; padding: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .2s;
}
.ecobau-evi-float__launcher:hover { transform: scale(1.06); }
.ecobau-evi-float__logo { width: 100%; height: 100%; border-radius: 16px; display: block; object-fit: cover; }
.ecobau-evi-float--open .ecobau-evi-float__logo { display: none; }
.ecobau-evi-float--open .ecobau-evi-float__launcher { background: #14532d; border-radius: 50%; }
.ecobau-evi-float__icon { font-size: 26px; font-weight: 700; line-height: 1; }
.ecobau-evi-float__close { display: none; font-size: 30px; line-height: 1; font-weight: 400; }
.ecobau-evi-float--open .ecobau-evi-float__icon { display: none; }
.ecobau-evi-float--open .ecobau-evi-float__close { display: block; }
.ecobau-evi-float__badge {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #4ade80; border: 2px solid #fff; /* ανοιχτό πράσινο = «online», όχι πορτοκαλί ειδοποίηση */
}
.ecobau-evi-float--open .ecobau-evi-float__badge { display: none; }
.ecobau-evi-float__panel {
  position: absolute; left: 0; bottom: 76px; width: 370px; max-width: calc(100vw - 40px);
  height: 560px; max-height: calc(100vh - 120px);
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 12px 48px rgba(0,0,0,.30); border-radius: 14px; overflow: hidden; background: #fff;
}
.ecobau-evi-float--open .ecobau-evi-float__panel { opacity: 1; transform: none; pointer-events: auto; }
.ecobau-evi-float__panel .ecobau-evi-chat { height: 100%; display: flex; flex-direction: column; margin: 0; border-radius: 0; border: none; }
.ecobau-evi-float__panel .ecobau-evi-chat__messages { flex: 1; overflow-y: auto; }
@media (max-width: 480px) {
  .ecobau-evi-float { left: 12px; bottom: 12px; }
  .ecobau-evi-float__panel { width: calc(100vw - 24px); height: min(560px, calc(100dvh - 100px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ecobau-evi-float__launcher, .ecobau-evi-float__panel { transition: none; }
}

/* ===== Teaser «Ρωτήστε την Εύη» (v0.3.1) ===== */
.ecobau-evi-float__teaser {
  position: absolute; left: 74px; bottom: 10px; white-space: nowrap;
  background: #fff; color: #1a2422; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 16px;
  font-size: 14px; font-weight: 600;
  animation: evi-teaser-in .35s ease;
}
.ecobau-evi-float__teaser[hidden] { display: none; }
.ecobau-evi-float__teaser-text { cursor: pointer; }
.ecobau-evi-float__teaser-close {
  border: none; background: transparent; cursor: pointer; color: #8a938f;
  font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 50%;
}
.ecobau-evi-float__teaser-close:hover { color: #1a2422; background: #f0f2f1; }
.ecobau-evi-float--open .ecobau-evi-float__teaser { display: none; }
@keyframes evi-teaser-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .ecobau-evi-float__teaser { left: 0; bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .ecobau-evi-float__teaser { animation: none; } }

/* ===== Bulletproof launcher icon (v0.3.2) — inline styles + guards κατά theme CSS ===== */
.ecobau-evi-float__iconwrap { position: relative; width: 30px; height: 30px; display: block; }
.ecobau-evi-float--open .ecobau-evi-float__iconwrap { display: none !important; }
.ecobau-evi-float__launcher .ecobau-evi-float__bubble { display: block !important; width: 30px !important; height: 30px !important; max-width: none !important; }
.ecobau-evi-float__launcher .ecobau-evi-float__bubble path.evi-bubble-path { fill: #ffffff !important; stroke: none !important; }
/* Το «Ε» είναι πλέον path μέσα στο SVG (v0.4.1) — κεντραρισμένο με συντεταγμένες, ανεξάρτητο από fonts/theme. */
.ecobau-evi-float__launcher .ecobau-evi-float__bubble path.evi-mono-path { fill: #14532d !important; stroke: none !important; }

/* ===== Μικρόφωνο / STT (v0.5.0) ===== */
.ecobau-evi-chat__mic {
  padding: 10px 11px !important;
  background: #f4f7f5 !important;
  color: #1f6b3b !important;
  border: 1px solid #cbd5cb !important;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ecobau-evi-chat__mic svg { display: block; }
.ecobau-evi-chat__mic:hover { background: #e8efe9 !important; }
.ecobau-evi-chat__mic.is-recording {
  background: #d33 !important; color: #fff !important; border-color: #d33 !important;
  animation: ecobau-evi-mic-pulse 1.2s ease-in-out infinite;
}
.ecobau-evi-chat__mic.is-processing {
  background: #e8efe9 !important; color: #1f6b3b !important;
  animation: ecobau-evi-mic-spin 0.8s linear infinite;
}
@keyframes ecobau-evi-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221,51,51,.45); }
  50% { box-shadow: 0 0 0 6px rgba(221,51,51,0); }
}
@keyframes ecobau-evi-mic-spin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ecobau-evi-chat__mic.is-recording, .ecobau-evi-chat__mic.is-processing { animation: none; }
}
