/* RetailUnlimit AI Chat Widget */
#ru-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#ru-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4fc3a1, #1a3a6b);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,195,161,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#ru-chat-btn:hover { transform: scale(1.1); }
#ru-chat-btn svg { width: 28px; height: 28px; fill: white; }
#ru-chat-box {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  height: 480px;
  background: #0f1a2e;
  border: 1px solid #1e3a5f;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  flex-direction: column;
  overflow: hidden;
}
#ru-chat-box.open { display: flex; }
#ru-chat-header {
  background: linear-gradient(135deg, #1a3a6b, #0f2340);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e3a5f;
}
.ru-chat-title { color: #f1f5f9; font-weight: 600; font-size: 15px; }
.ru-chat-subtitle { color: #4fc3a1; font-size: 11px; margin-top: 2px; }
#ru-chat-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  line-height: 1;
}
#ru-chat-close:hover { color: #f1f5f9; }
#ru-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#ru-chat-messages::-webkit-scrollbar { width: 4px; }
#ru-chat-messages::-webkit-scrollbar-track { background: transparent; }
#ru-chat-messages::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 2px; }
.ru-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.ru-msg.bot {
  background: #1a2e4a;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ru-msg.user {
  background: #4fc3a1;
  color: #0a1628;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.ru-msg.typing { color: #64748b; font-style: italic; }
#ru-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid #1e3a5f;
  display: flex;
  gap: 8px;
  background: #0d1a2e;
}
#ru-chat-input {
  flex: 1;
  background: #1a2e4a;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  height: 40px;
}
#ru-chat-input::placeholder { color: #475569; }
#ru-chat-input:focus { border-color: #4fc3a1; }
#ru-chat-send {
  background: #4fc3a1;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
#ru-chat-send:hover { background: #3aaf8e; }
#ru-chat-send svg { width: 18px; height: 18px; fill: #0a1628; }
#ru-chat-suggestions {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ru-suggestion {
  background: #1a2e4a;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}
.ru-suggestion:hover { background: #4fc3a1; color: #0a1628; border-color: #4fc3a1; }
