/* =========================================================
   AURVANAH AI - KELLY SALES CONSULTANT
   COMPLETE CHAT CSS
   ========================================================= */


/* =========================================================
   CHAT BUTTON
   ========================================================= */

#aasa-chat-button {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #1f6d5b;
    color: #ffffff;

    border: none;

    cursor: pointer;

    font-size: 28px;
    line-height: 65px;

    text-align: center;

    z-index: 99999;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

#aasa-chat-button:hover {
    background: #175547;

    transform: scale(1.05);
}


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

#aasa-chat-window {
    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 380px;
    height: 600px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.20);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    z-index: 99999;

    box-sizing: border-box;
}


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

.aasa-header {
    flex: 0 0 auto;

    background: #1f6d5b;

    color: #ffffff;

    padding: 18px 20px;

    font-family: inherit;

    font-size: 20px;

    line-height: 1.3;

    font-weight: 600;

    box-sizing: border-box;
}


/* =========================================================
   CHAT MESSAGE AREA
   ========================================================= */

#aasa-chat-messages {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding: 18px;

    background: #fafafa;

    box-sizing: border-box;

    scroll-behavior: smooth;
}


/* Scrollbar */

#aasa-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#aasa-chat-messages::-webkit-scrollbar-track {
    background: #f3f3f3;
}

#aasa-chat-messages::-webkit-scrollbar-thumb {
    background: #c8c8c8;

    border-radius: 10px;
}

#aasa-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}


/* =========================================================
   CHAT MESSAGE
   ========================================================= */

.aasa-message {
    margin-bottom: 14px;

    padding: 12px 14px;

    max-width: 90%;

    border-radius: 14px;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.55;

    word-wrap: break-word;

    overflow-wrap: break-word;

    box-sizing: border-box;
}


/* Bot message */

.aasa-message.bot {
    text-align: left;

    margin-right: auto;

    background: #ffffff;

    color: #222222;

    border: 1px solid #e5e5e5;
}


/* User message */

.aasa-message.user {
    text-align: left;

    margin-left: auto;

    background: #1f6d5b;

    color: #ffffff;

    border: 1px solid #1f6d5b;
}


/* =========================================================
   PRE-CHAT FORM
   ========================================================= */

.aasa-lead-form {
    flex: 0 0 auto;

    width: 100%;

    background: #f5f9f7;

    padding: 12px 20px 16px;

    margin: 0;

    border-top: 1px solid #e0e9e5;

    box-sizing: border-box;
}


/* =========================================================
   FORM HEADING
   ========================================================= */

.aasa-lead-form h3 {
    margin: 0 0 8px 0;

    color: #222222;

    font-family: inherit;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 600;
}


/* =========================================================
   FORM DESCRIPTION
   ========================================================= */

.aasa-lead-form p {
    margin: 0 0 12px 0;

    color: #555555;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   FORM LABELS
   ========================================================= */

.aasa-lead-form label {
    display: block;

    margin: 0 0 4px 2px;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 600;
}


/* =========================================================
   FORM INPUTS
   ========================================================= */

.aasa-lead-form input,
.aasa-lead-form select {
    display: block;

    width: 100%;

    height: 42px;

    min-height: 42px;

    margin: 0 0 9px 0;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #cbd7d2;

    border-radius: 10px;

    background: #ffffff;

    color: #222222;

    font-family: inherit;

    font-size: 16px;

    line-height: 42px;

    outline: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* Placeholder */

.aasa-lead-form input::placeholder {
    color: #777777;

    opacity: 1;

    font-size: 16px;
}


/* Focus */

.aasa-lead-form input:focus,
.aasa-lead-form select:focus {
    border-color: #1f6d5b;

    background: #ffffff;

    box-shadow: 0 0 0 2px rgba(31, 109, 91, 0.10);

    outline: none;
}


/* Autofill */

.aasa-lead-form input:-webkit-autofill,
.aasa-lead-form input:-webkit-autofill:hover,
.aasa-lead-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #222222 !important;

    box-shadow: 0 0 0 1000px #ffffff inset !important;
}


/* =========================================================
   START CHAT BUTTON
   ========================================================= */

.aasa-start-chat-wrap {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    width: 100%;

    margin-top: 2px;

    box-sizing: border-box;
}


#aasa-start-chat {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: auto;

    min-width: 140px;

    height: 42px;

    margin: 0;

    padding: 0 22px;

    border: none;

    border-radius: 22px;

    background: #1f6d5b;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    line-height: 42px;

    font-weight: 600;

    cursor: pointer;

    box-shadow: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


#aasa-start-chat:hover {
    background: #175547;

    transform: translateY(-1px);
}


#aasa-start-chat:active {
    transform: translateY(0);
}


#aasa-start-chat:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   NORMAL CHAT FOOTER
   ========================================================= */

.aasa-footer {
    flex: 0 0 auto;

    width: 100%;

    padding: 12px;

    background: #ffffff;

    border-top: 1px solid #e5e5e5;

    box-sizing: border-box;
}


/* Chat input */

#aasa-user-message {
    display: block;

    width: 100%;

    height: 46px;

    margin: 0 0 10px 0;

    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid #dddddd;

    border-radius: 25px;

    background: #ffffff;

    color: #222222;

    font-family: inherit;

    font-size: 14px;

    outline: none;
}


#aasa-user-message::placeholder {
    color: #999999;

    opacity: 1;
}


#aasa-user-message:focus {
    border-color: #1f6d5b;

    box-shadow: 0 0 0 2px rgba(31, 109, 91, 0.08);
}


/* Send button */

#aasa-send {
    display: block;

    width: 100%;

    height: 45px;

    margin: 0;

    padding: 0;

    border: none;

    border-radius: 25px;

    background: #1f6d5b;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;

    line-height: 45px;

    font-weight: 600;

    transition: background 0.2s ease;
}


#aasa-send:hover {
    background: #175547;
}


/* =========================================================
   EMOJI
   ========================================================= */

.aasa-message img.emoji {
    width: 1em !important;

    height: 1em !important;

    margin: 0 2px !important;

    vertical-align: -0.1em !important;
}


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

@media (max-width: 600px) {

    #aasa-chat-window {
        right: 10px;

        bottom: 85px;

        width: calc(100vw - 20px);

        max-width: 380px;

        height: 600px;

        border-radius: 16px;
    }


    #aasa-chat-button {
        right: 15px;

        bottom: 15px;

        width: 60px;

        height: 60px;

        line-height: 60px;

        font-size: 26px;
    }


    .aasa-header {
        padding: 15px 16px;

        font-size: 18px;
    }


    #aasa-chat-messages {
        padding: 14px;
    }


    .aasa-message {
        font-size: 14px;

        padding: 11px 13px;

        max-width: 92%;
    }


    .aasa-lead-form {
        padding: 10px 16px 14px;
    }


    .aasa-lead-form h3 {
        font-size: 17px;
    }


    .aasa-lead-form p {
        font-size: 13px;
    }


    .aasa-lead-form label {
        font-size: 13px;
    }


    .aasa-lead-form input,
    .aasa-lead-form select {
        height: 42px;

        min-height: 42px;

        font-size: 15px;

        line-height: 42px;

        padding: 0 13px;
    }


    .aasa-lead-form input::placeholder {
        font-size: 15px;
    }


    #aasa-start-chat {
        min-width: 135px;

        height: 42px;

        font-size: 14px;

        line-height: 42px;
    }
}


/* =========================================================
   VERY SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 400px) {

    #aasa-chat-window {
        right: 5px;

        bottom: 80px;

        width: calc(100vw - 10px);

        height: 590px;
    }


    #aasa-chat-button {
        right: 12px;

        bottom: 12px;
    }


    .aasa-lead-form {
        padding-left: 13px;

        padding-right: 13px;
    }


    .aasa-lead-form input,
    .aasa-lead-form select {
        font-size: 14px;
    }


    .aasa-lead-form input::placeholder {
        font-size: 14px;
    }
}