.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    background: var(--green-700);
}

.chatbot-popup {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--green-100);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--green-200);
}

.chatbot-popup.active {
    display: flex;
}

.chatbot-header {
    background: var(--green);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--green-700);
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.chatbot-message {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 90%;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: var(--green-50);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--green-900);
}

.chatbot-message.user {
    background: var(--brown-100);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: var(--brown-900);
}

.chatbot-suggestions {
    padding: 12px;
    border-top: 1px solid var(--green-200);
    background: var(--green-50);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.chatbot-suggestion-btn {
    background: #fff;
    border: 1px solid var(--green-300);
    color: var(--green-800);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-suggestion-btn:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 8px 14px;
    background: var(--green-50);
    border-radius: 10px;
    align-self: flex-start;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    background: var(--green-400);
    border-radius: 50%;
    animation: chatbotBounce 1.4s infinite both;
}

.chatbot-typing span:nth-child(1) { animation-delay: 0s; }
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbotBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

@media (max-width: 480px) {
    .chatbot-popup {
        width: 92vw;
        right: 2vw;
        bottom: 70px;
    }
}