#ai-cat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  font-family: Arial, sans-serif;
}

#ai-cat-button {
  width: 126px;
  height: 176px;
  cursor: pointer;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

#ai-cat-button:hover {
  transform: scale(1.05);
}

#ai-chat-window {
  width: 320px;
  height: 420px;

  background: #ffffff;
  color: #111; /* 🔥 важно */

  border-radius: 16px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.2);

  position: absolute;
  bottom: 190px;
  right: 0;

  display: none;
  flex-direction: column;

  overflow: hidden;

  font-family: system-ui, -apple-system, sans-serif;
}

/* HEADER */
#ai-chat-header {
  background: #111;
  color: white;
  padding: 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  font-weight: bold;
}

.cat-avatar {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  animation: blink 2s infinite;
}

/* лёгкое "оживание" */
@keyframes blink {
  0%, 90%, 100% { transform: scale(1); }
  95% { transform: scale(1.2); }
}

/* MESSAGES AREA */
#ai-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  color: #111; /* 🔥 фикс видимости */
}

/* MESSAGE BASE */
.ai-message {
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}

/* USER MESSAGE */
.ai-user {
  align-self: flex-end;
  background: #2d6cdf;
  color: white;
  text-align: right;
}

/* BOT MESSAGE */
.ai-bot {
  align-self: flex-start;
  background: #f1f1f1;
  color: #111;
}

/* INPUT AREA */
#ai-chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#ai-chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
  font-size: 14px;
  color: #111; /* 🔥 фикс */
}

#ai-chat-send {
  border: none;
  background: black;
  color: white;
  padding: 0 16px;
  cursor: pointer;
}