#chatbot-container {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99999;
}


/* =========================================================
   CHAT BUTTON
   ========================================================= */

.chatbot-toggle {
    width: 58px;
    height: 58px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #991B1B;
    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.chatbot-toggle:focus {
    outline: none;
}

.chatbot-toggle i {
    font-size: 22px;
}


/* =========================================================
   CHAT WINDOW
   ========================================================= */

.chatbot-window {
    position: absolute;

    right: 0;
    bottom: 72px;

    width: 370px;
    height: 520px;

    display: none;

    flex-direction: column;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}

.chatbot-window.show {
    display: flex;
}


/* =========================================================
   CHAT HEADER
   ========================================================= */

.chatbot-header {
    min-height: 65px;

    padding: 15px 18px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: #991B1B;
    color: #ffffff;
}

.chatbot-header strong {
    display: block;

    font-size: 15px;
}

.chatbot-header small {
    display: block;

    margin-top: 2px;

    opacity: 0.85;

    font-size: 11px;
}

.chatbot-close {
    width: 35px;
    height: 35px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}

.chatbot-close:hover {
    opacity: 0.8;
}

.chatbot-close:focus {
    outline: none;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.chatbot-messages {
    flex: 1;

    padding: 15px;

    overflow-y: auto;

    background: #f7f7f7;
}

.chatbot-message {
    max-width: 85%;

    margin-bottom: 10px;

    padding: 10px 13px;

    border-radius: 12px;

    font-size: 13px;

    line-height: 1.5;

    word-wrap: break-word;
}

.chatbot-message.bot {
    margin-right: auto;

    background: #ffffff;

    border: 1px solid #e5e5e5;
}

.chatbot-message.user {
    margin-left: auto;

    background: #991B1B;

    color: #ffffff;
}


/* =========================================================
   INPUT
   ========================================================= */

.chatbot-input-area {
    display: flex;

    align-items: flex-end;

    gap: 8px;

    padding: 10px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}

.chatbot-input {
    flex: 1;

    resize: none;

    min-height: 40px;
    max-height: 100px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    padding: 10px;

    font-size: 13px;

    outline: none;
}

.chatbot-input:focus {
    border-color: #f57c00;
}

.chatbot-send {
    width: 40px;
    height: 40px;

    padding: 0;

    border: none;

    border-radius: 8px;

    background: #991B1B;

    color: #ffffff;

    cursor: pointer;
}

.chatbot-send:focus {
    outline: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    #chatbot-container {
        right: 15px;
        bottom: 15px;
    }

    .chatbot-window {
        position: fixed;

        right: 10px;
        bottom: 80px;

        width: calc(100vw - 20px);
        height: 70vh;
    }

}