:root {
  --accent-gold: #D4AF37;
  --accent-blue: #003366;
  --neutral-light: #F5F5F5;
  --neutral-dark: #EAEAEA;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
}

/* AI Chat Widget */
.ec-chat-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ec-chat-header {
  background: var(--accent-blue);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.ec-header-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ec-header-info { display: flex; flex-direction: column; }
.ec-header-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.ec-header-status { color: rgba(255,255,255,0.75); font-size: 0.78rem; display: flex; align-items: center; gap: 0.4rem; margin-top: 2px; }
.ec-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }

.ec-chat-msgs {
  flex: 1;
  min-height: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 1.2rem 1.2rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}
.ec-chat-msgs::-webkit-scrollbar { width: 4px; }
.ec-chat-msgs::-webkit-scrollbar-thumb { background: var(--neutral-dark); border-radius: 4px; }

.ec-msg { display: flex; align-items: center; gap: 0.35rem; max-width: 85%; }
.ec-msg-bot { align-self: flex-start; }
.ec-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.ec-msg[dir="rtl"].ec-msg-bot  { align-self: flex-end;   flex-direction: row-reverse; }
.ec-msg[dir="rtl"].ec-msg-user { align-self: flex-start; flex-direction: row; }

.ec-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-gold);
  color: #fff; font-weight: 900; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ec-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.6;
  word-break: break-word;
}
.ec-msg-bot  .ec-bubble { background: var(--neutral-light); color: var(--text-primary); border-bottom-left-radius: 4px; }
.ec-msg-user .ec-bubble { background: var(--accent-blue);   color: #fff;               border-bottom-right-radius: 4px; }
.ec-msg[dir="rtl"].ec-msg-bot  .ec-bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.ec-msg[dir="rtl"].ec-msg-user .ec-bubble { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; background: var(--accent-gold); }

.ec-chat-typing {
  padding: 0.4rem 1.2rem 0.4rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.ec-typing-dots { display: flex; gap: 4px; align-items: center; background: var(--neutral-light); padding: 0.6rem 0.9rem; border-radius: 16px; border-bottom-left-radius: 4px; }
.ec-typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-gold); animation: ec-bounce 1.2s infinite ease-in-out; }
.ec-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ec-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ec-bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }

.ec-chat-hints {
  padding: 0.6rem 1.2rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ec-hints-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.1rem;
}

/* FAQ cards */
.ec-faq-cards {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ec-faq-card {
  background: #fff;
  border: 1.5px solid var(--neutral-dark);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  font-family: inherit;
}
.ec-faq-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(212,175,55,0.15);
}

/* Small chips row below cards */
.ec-faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.ec-hint-chip {
  background: none;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-blue);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.ec-hint-chip:hover { background: var(--accent-gold); color: #fff; }

.ec-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--neutral-dark);
}
.ec-chat-input {
  flex: 1;
  border: 1.5px solid var(--neutral-dark);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.ec-chat-input:focus { outline: none; border-color: var(--accent-gold); }
.ec-chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.ec-chat-send:hover { background: var(--accent-blue); transform: scale(1.08); }
.ec-chat-send:disabled { background: var(--neutral-dark); cursor: not-allowed; transform: none; }

.ec-chat-foot {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem 0.8rem;
}
.ec-chat-foot a { color: var(--accent-gold); }
