.cog-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  z-index: 9998;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cog-chat-bubble:hover {
  transform: scale(1.05);
}

.cog-chat-bubble-hidden {
  opacity: 0;
  visibility: hidden;
}

.cog-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 420px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

.cog-chat-panel.cog-chat-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cog-chat-header {
  background: #222;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.cog-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cog-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cog-chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.cog-chat-msg-bot {
  background: #f1f1f1;
  color: #222;
  align-self: flex-start;
}

.cog-chat-msg-user {
  background: #222;
  color: #fff;
  align-self: flex-end;
}

.cog-chat-typing {
  padding: 0 16px 8px;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.cog-chat-form {
  display: flex;
  border-top: 1px solid #eee;
}

.cog-chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.cog-chat-send {
  border: none;
  background: #222;
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}
