#chatoy-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #2742fc;
  color: white;
  font-size: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

#chatoy-chatbox {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
  z-index: 99999;
}

#chatoy-chatbox.hidden {
  display: none;
}

#chatoy-header {
  background-color: #2742fc;
  color: white;
  padding: 14px;
  font-size: 18px;
  text-align: center;
}

#chatoy-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background-color: #f6f7fb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: inline-block;
}

.message.bot {
  background-color: #edf2ff;
  align-self: flex-start;
}

.message.user {
  background-color: #d1fae5;
  align-self: flex-end;
}

.message.typing {
  font-style: italic;
  color: #888;
}

.message strong {
  font-weight: 600;
}

.message em {
  font-style: italic;
}

.message ul {
  margin-top: 6px;
  margin-left: 18px;
  padding-left: 0;
}

.message ul li {
  list-style-type: disc;
  margin-bottom: 4px;
}

.message code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.message pre {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
}

#chatoy-footer {
  display: flex;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

#chatoy-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

#chatoy-send {
  margin-left: 8px;
  background-color: #2742fc;
  color: white;
  border: none;
  padding: 0 16px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
}
