#eac-chatbot-root {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.eac-launcher {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  font-size: 14px;
}

.eac-panel {
  width: 360px;
  max-height: 70vh;
  display: none;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  overflow: hidden;
  margin-bottom: 10px;
}

.eac-panel.open {
  display: flex;
}

.eac-header {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eac-title {
  font-weight: 600;
  font-size: 14px;
}

.eac-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  padding: 6px;
}

.eac-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #fafafa;
}

.eac-row {
  margin-bottom: 10px;
  display: flex;
}

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

.eac-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.eac-row.user .eac-bubble {
  background: #111827;
  color: #fff;
}

.eac-row.assistant .eac-bubble {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.eac-composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.eac-composer input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.eac-composer button {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: #2271b1;
  color: #fff;
  cursor: pointer;
}

.eac-escalation {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: none;
}

.eac-escalation.show {
  display: block;
}

.eac-escalation form {
  display: grid;
  gap: 8px;
}

.eac-escalation input,
.eac-escalation textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.eac-escalation textarea {
  min-height: 80px;
  resize: vertical;
}

.eac-escalation button {
  justify-self: start;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 480px) {
  #eac-chatbot-root {
    left: 10px;
    right: 10px;
  }

  .eac-panel {
    width: auto;
    max-height: 80vh;
  }
}

