#xai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 370px;
    height: 600px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    font-weight: 400;
    font-size: 1.0rem;
    color:#111;
}
#xai-chat-header {
    background: #000 url(../xai-chat/grok-min-icon.png) center center no-repeat;
    color: white;
    padding: 0px;
    border-radius: 0;
    cursor: pointer;
    height: 58px;
}

#xai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
}
.xai-message {
    margin-bottom: 20px;
    padding: 5px;
    color:#333;
    animation: expand 1s;
}
@keyframes expand {
    from {
        color: white;
    }
}
.xai-message {
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 0.95rem;
    font-style: normal;
    color:#111;
}        
.xai-message h1,h2,h3,h4,h5 {
    font-weight: 400;
}
.xai-message ul, ol {
    margin-left: 5px;
    margin-block-start: 10px;
    padding-inline-start: 20px;
}
.xai-message li {
    margin-left: 5px;
    list-style-type: square;
}
.xai-user { text-align: right; color:#000; font-weight: 500;}
.xai-bot { text-align: left; color: rgb(59, 83, 59); }
#xai-chat-input-container {
    display: flex;
    padding: 20px;
}
#xai-chat-input {
    flex: 1;
    padding: 5px 10px;
    font-weight: 400;
    font-size: 1.0rem;
    border: 1px solid #ccc;
}
#xai-send-btn {
    padding: 5px;
    margin: 0 0 0 10px;
    width: 50px;
    height: 40px;
    background: white;
    color: white;
    border: none;
    cursor: pointer;
    background: url(../xai-chat/send-icon.png) center center no-repeat;
    background-size: 80%; 
}
#xai-toggle-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    cursor: pointer;
    z-index: 9999;
    background: url(../xai-chat/chat-icon.png) center center no-repeat;
}
#xai-waiting-texting {
    display: none;
    width: 100%;
    height: 60px;
    text-align: center;
    background: url(../xai-chat/waiting-texting.gif) center center no-repeat;   
    background-size: 30%; 
}
#xai-start-message {
    text-align: center;
}
#xai-start-message img {
    max-width: 100px;
    margin-top: 20px;
}
.xai {
    cursor: help;
    text-decoration: none;
    border-bottom: 1px dashed #333;
}