#billy_chat_widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38%;
    max-width: 400px;
    height: 80%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/*#billy_chat_widget .collapsed{
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, width 0.5s ease-in-out, height 2s ease-in-out;
}
#billy_chat_widget:not(.collapsed){
    transition: transform 2s ease-in-out, opacity 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
}*/
#billy_chat_widget{
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out, width 1.1s ease-in-out, height 1.1s ease-in-out;
}


.collapsed {
    /* Add this class to handle when widget is minimized */
    opacity: 0;
    width: 0;
    height: 0;
}


#billy_chat_container {
    display: flex;
    flex-direction: column;
    height: 100%;
    
}

#billy_chat_messages {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 8px;
    min-height: calc(100% - 195px);
}
/* Conversation and bubbles */
#billy-chatbox {
    max-height: calc(100vh - 250px);
}


.billy_top_bar {
    border-radius: 24px;
    background-color: #ECEEF9;
    display: flex;
    align-items: center;
    padding: 17px 24px 17px 24px;
    font-size: 16px;
    font-weight: 600;
}

.billy_top_bar_buttons {
    display: flex;
    flex-direction: row;
    justify-content: right;
    width: 100%;
}

.billy_top_bar_button {
    border-radius: 999px;
    background-color: rgba(188, 193, 218, 0.25);
    margin-left: 8px; 
    align-items: center;
    height: 32px;
}

.billy_top_bar_button:hover {
    background-color: rgba(188, 193, 218, 0.5);
    cursor: pointer;
}


/* input */
#billy_chat_input_container {
    display: flex;
    align-items: center;
}

#billy_chat_input {
    flex: 1;
    height: 72px;
    padding: 5px 42px 5px 5px;
    background-color: #FAFAFC;
    margin: 16px;
    border-radius: 12px;
    border: 1px solid rgba(141, 154, 222, 0.50);
    overflow: scroll;
}

/* placeholder */
#billy_chat_input::placeholder {
    color: #9DA3C1;
    font-size: 14px;
}

/* send button */

#billy_chat_send {
    background-color: #3147B8;
    border-radius: 50%;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 21px;
    bottom: 21px;
    cursor: pointer;
}

#billy_chat_send img {
    width: 24px;
    height: 24px;
}

.bubble {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 5px;
    display: block; /* Change to block for full-width bubbles */
    max-width: 80%;
    word-wrap: break-word;
}
.bubble p {
    margin: 0;
}

.billy-user {
    background-color: #E0E3F2;
    color: 1B1C25;
    text-align: right;
    margin-left: auto; /* Align to the right */
    align-self: flex-end;
}

.billy-bot {
    background-color: #FAFAFC;
    color: 1B1C25;
    text-align: left;
    margin-right: auto; /* Align to the left */
    align-self: flex-start;
}


/* CODER STYLES */
.card {
    font-weight: normal;
    color: #3c434a;
    font-size: 13px;
    line-height: 1.4em;
    font-family: "Sohne", sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    outline: 0;
    min-width: 255px;
    max-width: 520px;
    border: 1px solid #c3c4c7;
    background: #fff;
    position: relative;
    margin: 0.5rem 0 1rem 0;
    background-color: #fff;
    transition: box-shadow 0.25s;
    border-radius: 24px;
    padding: 16px 24px;
    box-sizing: border-box;
    box-shadow: none;
}

.card-button {
    box-sizing: border-box;
    font-weight: inherit;
    margin: 4px;
    border: none;
    line-height: 36px;
    display: flex !important;
    align-items: center;
    padding: 16px 24px;
    border-radius: 24px;
    text-transform: none;
    box-shadow: none;
    height: 48px;
    font-size: 14px;
    outline: 0;
    text-decoration: none;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    transition: 0.3s ease-out;
    background-color: #3147B8;
}



    .input-field {
        margin: 10px;
    }