
.tl-chat{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:9998;
    font-family:inherit;
}

.tl-chat *{
    box-sizing:border-box;
}

.tl-chat-launcher{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    min-height:56px;
    padding:8px 18px 8px 9px;
    border:0;
    border-radius:999px;
    background:#117a59;
    color:#fff;
    box-shadow:0 13px 32px rgba(13,59,48,.28);
    font:inherit;
    font-weight:800;
    cursor:pointer;
    transition:.18s ease;
}

.tl-chat-launcher:hover{
    transform:translateY(-2px);
    background:#0d694c;
}

.tl-chat-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:39px;
    height:39px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
}

.tl-chat-badge{
    position:absolute;
    top:-5px;
    right:-3px;
    min-width:22px;
    height:22px;
    padding:0 5px;
    border:2px solid #fff;
    border-radius:999px;
    background:#df3f4b;
    color:#fff;
    font-size:11px;
    line-height:18px;
    text-align:center;
}

.tl-chat-panel{
    position:absolute;
    right:0;
    bottom:70px;
    width:min(390px,calc(100vw - 28px));
    height:min(610px,calc(100vh - 115px));
    overflow:hidden;
    border:1px solid #d5e3dd;
    border-radius:20px;
    background:#fff;
    box-shadow:0 24px 65px rgba(10,43,35,.26);
}

.tl-chat-header{
    min-height:78px;
    padding:15px 17px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(135deg,#0d3b30,#117a59);
    color:#fff;
}

.tl-chat-header strong{
    display:block;
    font-size:16px;
}

.tl-chat-header span{
    display:block;
    margin-top:4px;
    color:#d9ebe4;
    font-size:11px;
}

.tl-chat-header span::before{
    content:"";
    display:inline-block;
    width:7px;
    height:7px;
    margin-right:6px;
    border-radius:50%;
    background:#a3b2ad;
}

.tl-chat-header span.online::before{
    background:#52e3aa;
    box-shadow:0 0 0 4px rgba(82,227,170,.14);
}

.tl-chat-header button{
    width:35px;
    height:35px;
    border:0;
    border-radius:9px;
    background:rgba(255,255,255,.11);
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

.tl-chat-welcome{
    height:calc(100% - 78px);
    padding:27px 22px;
    overflow-y:auto;
}

.tl-chat-welcome > small{
    color:#117a59;
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}

.tl-chat-welcome h2{
    margin:8px 0 10px;
    color:#0d3b30;
    font-size:28px;
}

.tl-chat-welcome > p{
    color:#60716a;
    font-size:14px;
    line-height:1.55;
}

#tl-chat-identity{
    display:grid;
    gap:12px;
    margin:19px 0 15px;
}

#tl-chat-identity label{
    color:#263d35;
    font-size:12px;
    font-weight:800;
}

#tl-chat-identity input{
    width:100%;
    min-height:45px;
    margin-top:6px;
    padding:0 12px;
    border:1px solid #cad9d3;
    border-radius:9px;
    font:inherit;
    font-size:13px;
}

.tl-chat-primary{
    width:100%;
    min-height:48px;
    border:0;
    border-radius:10px;
    background:#117a59;
    color:#fff;
    font:inherit;
    font-weight:850;
    cursor:pointer;
}

.tl-chat-warning{
    margin-top:13px!important;
    color:#7b8984!important;
    font-size:10px!important;
    text-align:center;
}

.tl-chat-conversation{
    height:calc(100% - 78px);
    display:grid;
    grid-template-rows:1fr auto auto auto;
}

.tl-chat-messages{
    padding:18px 15px;
    overflow-y:auto;
    background:#f4f7f6;
}

.tl-chat-message{
    max-width:82%;
    margin-bottom:11px;
}

.tl-chat-message.visitor{
    margin-left:auto;
}

.tl-chat-message span{
    display:block;
    padding:10px 12px;
    border-radius:13px 13px 13px 4px;
    background:#fff;
    color:#263b34;
    box-shadow:0 2px 7px rgba(13,59,48,.06);
    font-size:13px;
    line-height:1.45;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.tl-chat-message.visitor span{
    border-radius:13px 13px 4px 13px;
    background:#117a59;
    color:#fff;
}

.tl-chat-message small{
    display:block;
    margin-top:3px;
    color:#84908c;
    font-size:9px;
}

.tl-chat-message.visitor small{
    text-align:right;
}

.tl-chat-error{
    padding:8px 12px;
    background:#fff1f1;
    color:#9b2731;
    font-size:11px;
}

.tl-chat-form{
    display:grid;
    grid-template-columns:1fr 43px;
    gap:8px;
    padding:11px;
    border-top:1px solid #dce7e2;
    background:#fff;
}

.tl-chat-form textarea{
    width:100%;
    min-height:43px;
    max-height:100px;
    resize:none;
    padding:11px;
    border:1px solid #cad9d3;
    border-radius:10px;
    font:inherit;
    font-size:13px;
}

.tl-chat-form button{
    width:43px;
    height:43px;
    border:0;
    border-radius:10px;
    background:#117a59;
    color:#fff;
    cursor:pointer;
}

.tl-chat-privacy{
    padding:0 10px 8px;
    background:#fff;
    color:#87928e;
    font-size:9px;
    text-align:center;
}

@media(max-width:600px){
    .tl-chat{
        right:12px;
        bottom:12px;
    }

    .tl-chat-panel{
        position:fixed;
        inset:10px;
        width:auto;
        height:auto;
        border-radius:17px;
    }

    .tl-chat-label{
        display:none;
    }

    .tl-chat-launcher{
        padding:8px;
    }
}

/* MOBILE CHAT ICON 20260918 */
@media (max-width:900px){
    .tl-chat-launcher{
        width:56px !important;
        height:56px !important;
        min-width:56px !important;
        min-height:56px !important;
        padding:0 !important;
        gap:0 !important;
        justify-content:center !important;
        border-radius:50% !important;
    }
    .tl-chat-label{
        display:none !important;
    }
    .tl-chat-icon{
        width:40px !important;
        height:40px !important;
        flex:0 0 40px !important;
        font-size:19px !important;
    }
}

/* COMPACT AUTHENTICATED CHAT 20260918 */
.tl-chat-compact .tl-chat-launcher{
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    padding:0 !important;
    gap:0 !important;
    justify-content:center !important;
    border-radius:50% !important;
}

.tl-chat-compact .tl-chat-label{
    display:none !important;
}

.tl-chat-compact .tl-chat-icon{
    width:40px !important;
    height:40px !important;
    flex:0 0 40px !important;
    font-size:19px !important;
}
