#hoshinoo-chat-widget {
  --hoshinoo-color: #6366f1;
  position: fixed;
  z-index: 99999;
  font-family: Tahoma, Arial, sans-serif;
}

#hoshinoo-chat-widget[data-position='bottom-right'] {
  bottom: 20px;
  right: 20px;
}

#hoshinoo-chat-widget[data-position='bottom-left'] {
  bottom: 20px;
  left: 20px;
}

.hoshinoo-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--hoshinoo-color);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hoshinoo-chat-panel {
  position: absolute;
  bottom: 70px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
}

#hoshinoo-chat-widget[data-position='bottom-right'] .hoshinoo-chat-panel {
  right: 0;
}

#hoshinoo-chat-widget[data-position='bottom-left'] .hoshinoo-chat-panel {
  left: 0;
}

.hoshinoo-chat-header {
  background: var(--hoshinoo-color);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
}

.hoshinoo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
}

.hoshinoo-chat-bubble {
  max-width: 85%;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.hoshinoo-chat-user {
  background: #e2e8f0;
  margin-left: auto;
}

.hoshinoo-chat-assistant {
  background: var(--hoshinoo-color);
  color: #fff;
  margin-right: auto;
}

.hoshinoo-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
}

.hoshinoo-chat-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.hoshinoo-chat-send {
  background: var(--hoshinoo-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

.hoshinoo-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
