/* Extracted from components/chat_widget.php */

.chat-float-btn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:72px;
    height:72px;
    border-radius:50%;
    background:#16a34a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(22,163,74,.28);
    z-index:99999;
    transition:.25s;
    animation: chatPulse 2s ease-in-out 3;
    padding:0;
}

.chat-float-btn:hover{
    transform:scale(1.08);
}

@keyframes chatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.chat-avatar{
    width:56px;
    height:56px;
    border-radius:50%;
    background:#fff;
    color:#16a34a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    position:relative;
    flex-shrink:0;
}
.chat-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}
.chat-avatar-fallback{
    display:none;
    width:100%;
    height:100%;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.chat-status{
    position:absolute;
    right:2px;
    bottom:2px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
    border:2px solid #fff;
}
.chat-badge{
    position:absolute;
    left:-4px;
    bottom:-2px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#16a34a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    border:2px solid #fff;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.chat-widget{
    position:fixed;
    right:25px;
    bottom:85px;
    width:400px;
    height:520px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    display:none;
    flex-direction:column;
    z-index:99999;
    border:1px solid rgba(0,0,0,.08);
}

.chat-header{
    height:65px;
    flex:0 0 65px;
    background:#16a34a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
    font-weight:600;
    font-size:16px;
}
.chat-header small{
    opacity:.9;
    font-weight:400;
}

.chat-close{
    background: rgba(255,255,255,.18);
    border-radius:50%;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    padding:0;
    color:#fff;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    line-height:1;
}

.chat-close:hover{
    background:rgba(255,255,255,.35);
    transform:scale(1.08);
}

#chatFrame{
    flex:1;
    width:100%;
    min-height:0;
    border:none;
    display:block;
}

@media (max-width:768px){

.chat-widget{
    
    right:10px;
    left:10px;
    width:auto;
    height:70vh;
    bottom:85px;
}

.chat-float-btn{
    width:64px;
    height:64px;
    min-width:64px;
    right:15px;
    bottom:15px;
}

}
