.eylar-ai-chat {
  --eylar-chat-primary: #111827;
  --eylar-chat-border: #e5e7eb;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.eylar-ai-chat * {
  box-sizing: border-box;
}

.eylar-ai-chat__launcher {
  border: 0;
  border-radius: 999px;
  background: var(--eylar-chat-primary);
  color: #fff;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.eylar-ai-chat__panel {
  width: min(390px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 24px));
  background: #fff;
  border: 1px solid var(--eylar-chat-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
}

.eylar-ai-chat__header {
  background: var(--eylar-chat-primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eylar-ai-chat__header strong,
.eylar-ai-chat__header span {
  display: block;
}

.eylar-ai-chat__header span {
  opacity: .8;
  font-size: 12px;
}

.eylar-ai-chat__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.eylar-ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f9fafb;
}

.eylar-ai-chat__message {
  max-width: 86%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  line-height: 1.35;
  font-size: 14px;
}

.eylar-ai-chat__message--assistant {
  background: #fff;
  border: 1px solid var(--eylar-chat-border);
}

.eylar-ai-chat__message--user {
  background: var(--eylar-chat-primary);
  color: #fff;
  margin-left: auto;
}

.eylar-ai-chat__tools,
.eylar-ai-chat__starters,
.eylar-ai-chat__actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--eylar-chat-border);
}

.eylar-ai-chat__tools button,
.eylar-ai-chat__starters button,
.eylar-ai-chat__actions button,
.eylar-ai-chat__card button {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
}

.eylar-ai-chat__card {
  background: #fff;
  border: 1px solid var(--eylar-chat-border);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
  font-size: 13px;
}

.eylar-ai-chat__card strong,
.eylar-ai-chat__card label {
  display: block;
  margin-bottom: 8px;
}

.eylar-ai-chat__card input,
.eylar-ai-chat__card select,
.eylar-ai-chat__card textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px;
  margin-top: 4px;
  font: inherit;
}

.eylar-ai-chat__grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.eylar-ai-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--eylar-chat-border);
}

.eylar-ai-chat__form textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
}

.eylar-ai-chat__form button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--eylar-chat-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.eylar-ai-chat__products {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.eylar-ai-chat__product-card {
  background: #fff;
  border: 1px solid var(--eylar-chat-border);
  border-radius: 14px;
  overflow: hidden;
}

.eylar-ai-chat__product-card a {
  color: inherit;
  text-decoration: none;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.eylar-ai-chat__product-card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.eylar-ai-chat__product-card strong,
.eylar-ai-chat__product-card span,
.eylar-ai-chat__product-card b {
  display: block;
  font-size: 12px;
}

.eylar-ai-chat__proactive {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 245px;
  border: 1px solid var(--eylar-chat-border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}
