/* assets/css/chatbot.css - Zero CDN Pure CSS */
:root {
    --wx-bot-primary: #BFD730;
    --wx-bot-secondary: #757673;
    --wx-bot-bg: #ffffff;
    --wx-bot-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --wx-bot-radius: 12px;
}

/* Floating Action Launcher Hub */
.wx-floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999998;
}

.wx-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wx-bot-shadow);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wx-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.wx-float-wa {
    background: #25D366;
    text-decoration: none;
}

.wx-float-chat {
    background: var(--wx-bot-primary);
    color: #111;
}

/* Standalone Chat Panel Drawer */
.wx-chatbot-panel {
    position: fixed;
    bottom: 95px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: var(--wx-bot-bg);
    border-radius: var(--wx-bot-radius);
    box-shadow: var(--wx-bot-shadow);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    animation: wxSlideUp 0.3s ease-out;
}

@keyframes wxSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wx-bot-header {
    background: var(--wx-bot-secondary);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--wx-bot-primary);
}

.wx-bot-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wx-bot-dot {
    width: 10px;
    height: 10px;
    background: var(--wx-bot-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--wx-bot-primary);
}

.wx-bot-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.wx-bot-close {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    color: #e5e7eb;
    transition: color 0.2s;
}

.wx-bot-close:hover {
    color: #ffffff;
}

/* Message Thread Log */
.wx-bot-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
    font-size: 13px;
    line-height: 1.45;
}

.wx-msg {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 8px;
    word-break: break-word;
}

.wx-msg.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #222;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--wx-bot-primary);
}

.wx-msg.user {
    align-self: flex-end;
    background: var(--wx-bot-secondary);
    color: #ffffff;
}

/* Quick Action Suggestion Chips */
.wx-bot-chips {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #f1f2f4;
    overflow-x: auto;
}

.wx-chip {
    font-size: 11px;
    background: #f3f4f6;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.wx-chip:hover {
    background: var(--wx-bot-primary);
    color: #000;
}

/* Input Strip */
.wx-bot-input-box {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 8px;
    gap: 6px;
}

.wx-bot-input-box input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.wx-bot-input-box input:focus {
    border-color: var(--wx-bot-secondary);
}

.wx-bot-input-box button {
    background: var(--wx-bot-primary);
    color: #111;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    font-size: 13px;
    transition: filter 0.2s;
}

.wx-bot-input-box button:hover {
    filter: brightness(0.92);
}

@media (max-width: 480px) {
    .wx-chatbot-panel {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 85px;
        height: 420px;
    }
}