#lc-chat-container { position: fixed; z-index: 999999; font-family: sans-serif; pointer-events: none; width: 100%; height: 100%; top: 0; left: 0; }
#lc-chat-container * { pointer-events: auto; box-sizing: border-box; }

/* БАЗОВЫЕ ЭЛЕМЕНТЫ */
#lc-chat-toggle { border: none; cursor: pointer; transition: all 0.3s; }
#lc-chat-box { background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: absolute; }
#lc-chat-header { color: #fff; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 16px; }
#lc-chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
#lc-chat-messages { flex: 1; padding: 15px; overflow-y: auto; background: #f9f9f9; display: flex; flex-direction: column; gap: 10px; }
.lc-message { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.user-message { background: #0073aa; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-message { background: #fff; color: #333; align-self: flex-start; border: 1px solid #eaeaea; border-bottom-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.lc-chat-input-area { display: flex; padding: 12px; background: #fff; border-top: 1px solid #eaeaea; gap: 8px; }
#lc-user-input { flex: 1; border: 1px solid #ddd; padding: 10px 15px; border-radius: 50px; outline: none; font-size: 14px; }
#lc-user-input:focus { border-color: #0073aa; }
#lc-send-btn { background: #0073aa; color: #fff; border: none; padding: 0 20px; border-radius: 50px; cursor: pointer; font-weight: bold; }

/* === СТИЛЬ 1: СТАНДАРТНЫЙ (Справа внизу) === */
.lc-style-default #lc-chat-toggle { background: #0073aa; color: #fff; padding: 15px 25px; border-radius: 50px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); position: absolute; bottom: 20px; right: 20px; font-weight: bold; }
.lc-style-default #lc-chat-box { width: 340px; height: 500px; bottom: 80px; right: 20px; }
.lc-style-default #lc-chat-header { background: #0073aa; }

/* === СТИЛЬ 2: GEMINI (По центру внизу) === */
.lc-style-gemini #lc-chat-toggle { 
    background: linear-gradient(90deg, #1a73e8, #9b72cb, #d96570); 
    color: #fff; padding: 15px 35px; border-radius: 50px; font-size: 16px; font-weight: bold; 
    box-shadow: 0 6px 20px rgba(155, 114, 203, 0.4); 
    display: flex; align-items: center; gap: 8px;
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
}
.lc-style-gemini #lc-chat-toggle:hover { box-shadow: 0 8px 25px rgba(155, 114, 203, 0.6); margin-bottom: 2px; }
.lc-style-gemini #lc-chat-box { 
    width: 380px; height: 550px; bottom: 100px; left: 50%; transform: translateX(-50%); 
}
.lc-style-gemini #lc-chat-header { background: linear-gradient(90deg, #1a73e8, #9b72cb); }
.lc-style-gemini #lc-send-btn { background: #9b72cb; }
.lc-style-gemini .user-message { background: #1a73e8; }

/* === ПОДДЕРЖКА АРАБСКОГО (RTL) === */
#lc-chat-container[dir="rtl"] .user-message { align-self: flex-start; border-bottom-left-radius: 4px; border-bottom-right-radius: 12px; }
#lc-chat-container[dir="rtl"] .ai-message { align-self: flex-end; border-bottom-right-radius: 4px; border-bottom-left-radius: 12px; }
#lc-chat-container[dir="rtl"] #lc-chat-header { flex-direction: row-reverse; }

/* Карточки локаций в чате */
.lc-location-card { margin-top: 10px; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; }
.lc-loader { font-size: 12px; color: #888; font-style: italic; align-self: center; margin-top: 10px; }