.opai-ai-floating {
    position: fixed;
    right: 24px;
    bottom: 45px;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 560px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.38);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
    transition: height .25s ease;
}


/* Collapsed */
.opai-ai-floating.collapsed {
    height: 58px;
}



/* Header */
.opai-ai-header {
    background: #0099cc;
    text-align:center;
    color: #fff;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
}


.opai-ai-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}


.opai-ai-header p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: .85;
}


/* Hide body when collapsed */
.opai-ai-floating.collapsed .opai-ai-messages,
.opai-ai-floating.collapsed .opai-ai-input {
    display: none;
}*/


/* Messages */
.opai-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
}


.opai-ai-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 14px;
}


.opai-ai-message.user {
    background: #ececec;
    text-align: right;
}


.opai-ai-message.assistant {
    background: #ffffff;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
    border: 1px solid #ececec;
}


/* Input */
.opai-ai-input {
    display: flex;
    position: absolute;
    bottom:0!important;
    right:0!important;
    width: 100%;
    border-top: 1px solid #ddd;
    background: #fff;
}
 


.opai-ai-input input {
    flex: 1;
    border: 0;
    padding: 15px;
    outline: none;
    font-size: 14px;
}


.opai-ai-input button {
    border: 0;
    padding: 0 20px;
    background: #0099cc;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}


.opai-ai-input button:hover {
    background: #000;
}