.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: system-ui, sans-serif;
    font-size: 14px;
}

#chatbotToggle {
    background: #0d6efd;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    user-select: none;
    transition: background .2s;
}

#chatbotToggle:hover {
    background: #0b5ed7;
}

#chatbotWindow {
    width: 320px;
    max-height: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    overflow: hidden;
}

.chatbot .hidden {
    display: none !important;
}

.chatbot-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

#chatbotMessages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: #f0f4ff;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.user-message {
    background: #0d6efd;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.message p {
    margin: 0;
}

.chatbot-input-container {
    display: flex;
    border-top: 1px solid #e9ecef;
    padding: 8px;
    gap: 6px;
}

#chatbotInput {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}

#chatbotInput:focus {
    border-color: #0d6efd;
}

.chatbot-send {
    background: #0d6efd;
    border: none;
    border-radius: 50%;
    color: #fff;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}

.chatbot-send:hover {
    background: #0b5ed7;
}
