/* ========================================================================= */
/* LENCECO LUXURY AI CONCIERGE & CHATBOT STYLES                              */
/* ========================================================================= */

#lce-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
}

/* Floating Launcher */
.lce-chat-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #111418 0%, #1c222b 100%);
  color: #f6d892;
  border: 1px solid rgba(246, 216, 146, 0.35);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lce-chat-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(246, 216, 146, 0.65);
}

.lce-chat-launcher-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.lce-chat-launcher-text {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lce-chat-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Auto Popup Welcome Tooltip */
.lce-chat-tooltip {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 290px;
  background: #111418;
  color: #fff;
  border: 1px solid rgba(246, 216, 146, 0.4);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.45;
  animation: lceFadeSlide 0.4s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.lce-chat-tooltip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
}

.lce-chat-tooltip-close:hover {
  color: #fff;
}

/* Chat Main Window */
.lce-chat-window {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lce-chat-window.hidden {
  display: none !important;
}

/* Header */
.lce-chat-header {
  background: linear-gradient(135deg, #111418 0%, #1e2530 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246, 216, 146, 0.2);
}

.lce-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lce-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5a059 0%, #e8c879 100%);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.lce-chat-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #f6d892;
  letter-spacing: 0.5px;
}

.lce-chat-header-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lce-chat-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.lce-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Messages Area */
.lce-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.lce-msg {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.lce-msg.bot {
  background: #ffffff;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.lce-msg.user {
  background: linear-gradient(135deg, #111418 0%, #1e2530 100%);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.lce-chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-right: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.lce-chat-action-btn:hover {
  background: #0f172a;
  color: #f6d892;
  border-color: #0f172a;
}

.lce-chat-action-btn.whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.lce-chat-action-btn.whatsapp:hover {
  background: #1eb857;
}

/* Quick Chips */
.lce-chat-chips {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.lce-chat-chips::-webkit-scrollbar {
  display: none;
}

.lce-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.lce-chip:hover {
  background: #111418;
  color: #f6d892;
  border-color: #111418;
}

/* Input Area */
.lce-chat-input-area {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.lce-chat-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.lce-chat-input:focus {
  border-color: #c5a059;
}

.lce-chat-send {
  background: linear-gradient(135deg, #111418 0%, #1e2530 100%);
  border: none;
  color: #f6d892;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.2s;
}

.lce-chat-send:hover {
  transform: scale(1.05);
}
