#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.chat-header {
  background: linear-gradient(135deg, #3f51b5, #5a55ae);
  color: white;
  padding: 16px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

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

.chat-message {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble.user {
  background: #3f51b5;
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  background: #e0e0e0;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: white;
}

.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input input:focus {
  border-color: #3f51b5;
}

.chat-input button {
  margin-left: 8px;
  background: #3f51b5;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-input button:hover {
  background: #2c387e;
}
#sewing-chat-widget{
display:none;
}