#tslance-chat-button {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 62px;
    height: 62px;

    border-radius: 50%;

    background: #111827;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 28px;

    cursor: pointer;

    z-index: 999999;

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

}


#tslance-chat-window {

    position: fixed;

    right: 25px;
    bottom: 80px;

    width: 390px;

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

    height: 600px;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 50px rgba(0,0,0,.25);

    z-index: 999998;

    display: none;

    flex-direction: column;

    border:
        1px solid #e5e7eb;

}


#tslance-chat-window.open {

    display: flex;

}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.tslance-chat-header {

    background: #111827;

    color: #ffffff;

    padding: 17px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

}


.tslance-chat-header strong {

    display: block;

    font-size: 16px;

}


.tslance-chat-header span {

    display: block;

    margin-top: 4px;

    font-size: 12px;

    opacity: .75;

}


#tslance-chat-close {

    border: 0;

    background: transparent;

    color: white;

    font-size: 28px;

    cursor: pointer;

}


/*
|--------------------------------------------------------------------------
| Messages
|--------------------------------------------------------------------------
*/

#tslance-chat-messages {

    flex: 1;

    overflow-y: auto;

    padding: 18px;

    background: #f8fafc;

}


.tslance-bubble {

    max-width: 88%;

    padding: 12px 14px;

    margin-bottom: 12px;

    border-radius: 14px;

    line-height: 1.5;

    font-size: 14px;

}


.tslance-bot {

    background: white;

    border:
        1px solid #e5e7eb;

}


.tslance-user {

    margin-left: auto;

    background: #111827;

    color: white;

}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.tslance-buttons {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 15px;

}


.tslance-buttons button {

    width: 100%;

    padding: 10px 12px;

    background: #ffffff;

    border:
        1px solid #d1d5db;

    border-radius: 9px;

    text-align: left;

    cursor: pointer;

    font-size: 13px;

}


.tslance-buttons button:hover {

    background: #f3f4f6;

}


/*
|--------------------------------------------------------------------------
| Input
|--------------------------------------------------------------------------
*/

.tslance-chat-input {

    display: flex;

    border-top:
        1px solid #e5e7eb;

    background: white;

}


#tslance-user-input {

    flex: 1;

    border: 0;

    outline: none;

    padding: 15px;

    font-size: 14px;

}


#tslance-send {

    width: 55px;

    border: 0;

    background: #111827;

    color: white;

    cursor: pointer;

    font-size: 18px;

}


/*
|--------------------------------------------------------------------------
| Lead form
|--------------------------------------------------------------------------
*/

.tslance-form {

    margin-top: 15px;

    padding: 14px;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

}


.tslance-form input,
.tslance-form textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 11px;

    margin-bottom: 9px;

    border:
        1px solid #d1d5db;

    border-radius: 8px;

    font-family: inherit;

    font-size: 13px;

}


.tslance-form textarea {

    min-height: 85px;

    resize: vertical;

}


#tslance-submit {

    width: 100%;

    padding: 11px;

    border: 0;

    border-radius: 8px;

    background: #111827;

    color: white;

    cursor: pointer;

}


#tslance-form-status {

    margin-top: 10px;

    font-size: 12px;

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    #tslance-chat-window {

        right: 10px;

        bottom: 85px;

        width:
            calc(100vw - 20px);

        height: 70vh;

    }


    #tslance-chat-button {

        right: 15px;

        bottom: 15px;

    }

}