/* ============================================================
   INNOVATIVE NECTAR — Chatbot Widget Styles
   ============================================================ */

/* ── Chat Bubble ──────────────────────────────────────── */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFBF00 0%, #E6AC00 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(255, 191, 0, 0.4);
    z-index: var(--z-fixed, 300);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 191, 0, 0.5);
}

.chatbot-bubble--open {
    transform: rotate(45deg) scale(1);
}

.chatbot-bubble--open:hover {
    transform: rotate(45deg) scale(1.1);
}

/* ── Chat Window ──────────────────────────────────────── */
.chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: var(--z-fixed, 300);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.chatbot-window--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ── Chat Header ──────────────────────────────────────── */
.chatbot-header {
    background: #014421;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFBF00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-header__info {
    flex: 1;
}

.chatbot-header__name {
    font-family: var(--font-head, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.chatbot-header__status {
    font-family: var(--font-head, 'Inter', sans-serif);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-header__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
}

/* ── Chat Messages ────────────────────────────────────── */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-body, Georgia, serif);
    animation: msg-in 0.3s ease-out;
}

@keyframes msg-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg--bot {
    background: white;
    color: #111827;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-msg--user {
    background: #014421;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-msg--typing {
    background: white;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    font-style: italic;
    color: #708090;
}

.chat-msg strong {
    font-weight: 700;
}

.chat-msg code {
    background: #f0f4f8;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* ── Suggestions ──────────────────────────────────────── */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 8px;
    background: #f8f9fa;
}

.chatbot-chip {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    background: white;
    font-family: var(--font-head, 'Inter', sans-serif);
    font-size: 11px;
    color: #014421;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.chatbot-chip:hover {
    background: #f0f4f8;
    border-color: #014421;
}

/* ── Chat Input ───────────────────────────────────────── */
.chatbot-input-bar {
    display: flex;
    border-top: 1px solid #e5e5e5;
    background: white;
}

.chatbot-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 13px;
    font-family: var(--font-body, Georgia, serif);
    outline: none;
    background: transparent;
}

.chatbot-input::placeholder {
    color: #94A3B8;
}

.chatbot-send {
    border: none;
    background: none;
    padding: 14px 16px;
    font-size: 18px;
    cursor: pointer;
    color: #FFBF00;
    transition: transform 0.2s;
}

.chatbot-send:hover {
    transform: scale(1.2);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
    .chatbot-window {
        right: 8px;
        left: 8px;
        bottom: 80px;
        width: auto;
        height: 60vh;
    }

    .chatbot-bubble {
        bottom: 16px;
        right: 16px;
    }
}