#main-thrivewoo-widget .chat-widget {
  position: fixed;
  bottom: 80px;
  right: -40px;
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.42,0,0.58,1);
}

/* Much larger invisible hover area */
#main-thrivewoo-widget .chat-widget::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -5px;
  right: -20px;
  bottom: -2px;
  z-index: -1;
}

/* Only allow hover effect when chat is NOT open */
#main-thrivewoo-widget .chat-widget:not(.chat-open):hover {
  right: 20px;
}

/* When chat is open, keep widget positioned properly */
#main-thrivewoo-widget .chat-widget.chat-open {
  right: 20px;
}

#main-thrivewoo-widget .chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

#main-thrivewoo-widget .chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

#main-thrivewoo-widget .chat-toggle.active {
  transform: rotate(45deg);
}

/* Rest of your existing CSS remains the same */
#main-thrivewoo-widget .notification-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  background: #ff4757;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.1);}
  100% { transform: scale(1);}
}

#main-thrivewoo-widget .chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 450px;
  height: 600px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

#main-thrivewoo-widget .chatbot-container.active {
  display: flex;
  transform: scale(1);
  opacity: 1;
}

#main-thrivewoo-widget .chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

#main-thrivewoo-widget .chatbot-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

#main-thrivewoo-widget .chatbot-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

#main-thrivewoo-widget .chatbot-header p {
  opacity: 0.9;
  position: relative;
  z-index: 1;
  font-size: 14px;
}

#main-thrivewoo-widget .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}

#main-thrivewoo-widget .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#main-thrivewoo-widget .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
}

#main-thrivewoo-widget .message1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

#main-thrivewoo-widget .message1.user {
  display: flex;
  justify-content: flex-end;
}

#main-thrivewoo-widget .bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 14px;
}

#main-thrivewoo-widget .message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 99%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.5;
  font-size: 14px;
}

#main-thrivewoo-widget .message1.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#main-thrivewoo-widget .suggestions-container {
  margin-top: 12px;
}

#main-thrivewoo-widget .suggestions-title {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

#main-thrivewoo-widget .suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#main-thrivewoo-widget .suggestion-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

#main-thrivewoo-widget .suggestion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#main-thrivewoo-widget .input-container {
  padding: 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  align-items: center;
}

#main-thrivewoo-widget .chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

#main-thrivewoo-widget .chat-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#main-thrivewoo-widget .send-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#main-thrivewoo-widget .send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#main-thrivewoo-widget .typing-indicator {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

#main-thrivewoo-widget .typing-dots {
  display: flex;
  gap: 3px;
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-thrivewoo-widget .typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #667eea;
  animation: typing 1.4s infinite;
}

#main-thrivewoo-widget .typing-dot:nth-child(2) { animation-delay: 0.2s;}
#main-thrivewoo-widget .typing-dot:nth-child(3) { animation-delay: 0.4s;}

@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: 0.4;}
  30% { transform: translateY(-8px); opacity: 1;}
}

#main-thrivewoo-widget .welcome-message {
  text-align: center;
  color: #666;
  padding: 30px 15px;
}

#main-thrivewoo-widget .welcome-message h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

#main-thrivewoo-widget .welcome-message p {
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  #main-thrivewoo-widget .chatbot-container {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    position: fixed;
  }
  #main-thrivewoo-widget .chat-toggle {
    width: 55px;
    height: 55px;
  }
  #main-thrivewoo-widget .message-content {
    max-width: 85%;
    font-size: 13px;
  }
  #main-thrivewoo-widget .suggestions {
    justify-content: center;
  }
}

#main-thrivewoo-widget .chat-messages::-webkit-scrollbar { width: 4px;}
#main-thrivewoo-widget .chat-messages::-webkit-scrollbar-track { background: #f1f1f1;}
#main-thrivewoo-widget .chat-messages::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 2px;}
#main-thrivewoo-widget .chat-messages::-webkit-scrollbar-thumb:hover { background: #a8a8a8;}

#main-thrivewoo-widget .support-btn-container { margin-top: 12px; text-align: center; padding: 0px; width: auto;}

#main-thrivewoo-widget .support-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#main-thrivewoo-widget .support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#main-thrivewoo-widget .support-form { margin-top: 10px;}
#main-thrivewoo-widget .support-form .form-group { margin-bottom: 12px;}

#main-thrivewoo-widget .support-form input,
#main-thrivewoo-widget .support-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

#main-thrivewoo-widget .support-form input:focus,
#main-thrivewoo-widget .support-form textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#main-thrivewoo-widget .support-form textarea {
  resize: vertical;
  min-height: 80px;
}

#main-thrivewoo-widget .submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#main-thrivewoo-widget .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}