/* CSS Document */

/* ==================================================
   ABBY EAGLE AI CHATBOT
   ================================================== */

#abby-ai-button {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    border: none;
    border-radius: 50%;

    background: #b48a45;
    color: white;

    font-size: 28px;

    cursor: pointer;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.25);

    z-index: 99999;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#abby-ai-button:hover {

    transform: scale(1.08);

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.3);
}


/* ==================================================
   CHAT WINDOW
   ================================================== */

#abby-ai-window {

    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 370px;
    max-width: calc(100vw - 30px);

    height: 560px;
    max-height: calc(100vh - 130px);

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    z-index: 99998;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.97);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


#abby-ai-window.abby-ai-open {

    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   HEADER
   ================================================== */

#abby-ai-header {

    background: #333333;

    color: #ffffff;

    padding: 18px 18px;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

#abby-ai-header strong {

    display: block;

    font-size: 16px;

    margin-bottom: 3px;
}

#abby-ai-header span {

    display: block;

    font-size: 12px;

    opacity: 0.75;
}


#abby-ai-close {

    background: none;

    border: none;

    color: #ffffff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}


/* ==================================================
   MESSAGES
   ================================================== */

#abby-ai-messages {

    flex: 1;

    overflow-y: auto;

    padding: 18px;

    background: #f7f7f7;
}


.abby-ai-message {

    max-width: 82%;

    padding: 11px 14px;

    margin-bottom: 12px;

    border-radius: 14px;

    font-size: 14px;

    line-height: 1.5;

    word-wrap: break-word;
}


.abby-ai-assistant {

    background: #ffffff;

    color: #333333;

    border:
        1px solid #e4e4e4;

    border-bottom-left-radius: 4px;

    margin-right: auto;
}


.abby-ai-user {

    background: #b48a45;

    color: #ffffff;

    border-bottom-right-radius: 4px;

    margin-left: auto;
}


/* ==================================================
   TYPING INDICATOR
   ================================================== */

#abby-ai-typing {

    display: inline-block;

    background: #ffffff;

    color: #777777;

    padding: 11px 14px;

    border-radius: 14px;

    border-bottom-left-radius: 4px;

    font-size: 13px;

    margin-bottom: 12px;
}


/* ==================================================
   INPUT AREA
   ================================================== */

#abby-ai-input-area {

    display: flex;

    padding: 12px;

    background: #ffffff;

    border-top:
        1px solid #e5e5e5;

    gap: 8px;
}


#abby-ai-input {

    flex: 1;

    resize: none;

    border:
        1px solid #d5d5d5;

    border-radius: 10px;

    padding: 10px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    min-height: 42px;

    box-sizing: border-box;
}


#abby-ai-input:focus {

    border-color: #b48a45;
}


#abby-ai-send {

    align-self: stretch;

    padding:
        0 16px;

    border: none;

    border-radius: 10px;

    background: #b48a45;

    color: #ffffff;

    font-weight: bold;

    cursor: pointer;
}


#abby-ai-send:hover {

    background: #967035;
}


#abby-ai-send:disabled {

    opacity: 0.6;

    cursor: default;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    #abby-ai-button {

        right: 15px;
        bottom: 15px;

        width: 56px;
        height: 56px;
    }


    #abby-ai-window {

        right: 10px;
        bottom: 80px;

        width: calc(100vw - 20px);

        height: calc(100vh - 100px);

        max-height: none;

        border-radius: 14px;
    }

}

