#bls-support-button {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0084ff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    overflow: hidden; 
}
#bls-support-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#bls-support-button:hover { transform: scale(1.1); }
#bls-support-button.right { right: 20px; }
#bls-support-button.left  { left: 20px; }

#bls-callout {
    position: fixed;
    bottom: 90px;
    z-index: 99998;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 30px 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    max-width: 220px;
    display: none;
}
#bls-callout.right { right: 20px; }
#bls-callout.left  { left: 20px; }
#bls-callout.show { display: block; animation: fadeIn 0.3s; }
#bls-callout-close {
    position: absolute;
    top: 5px; right: 8px;
    background: none; border: none;
    font-size: 16px; cursor: pointer;
    color: #888;
}
@keyframes fadeIn { 
    from { opacity:0; transform: translateY(10px); } 
    to { opacity:1; transform: translateY(0); } 
}

#bls-chat-popup {
    position: fixed;
    bottom: 90px;
    z-index: 99998;
    width: 350px;
    max-width: 90vw;
    height: 450px;
    max-height: 70vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Tahoma, sans-serif;
}
#bls-chat-popup.right { right: 20px; }
#bls-chat-popup.left  { left: 20px; }
#bls-chat-popup.open { display: flex; }

/* ----- هدر ----- */
#bls-chat-header {
    background: #0084ff;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bls-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bls-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
}
#bls-close-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }

/* ----- پیام‌ها ----- */
#bls-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bls-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}
.bls-msg.user {
    align-self: flex-end;
    background: #0084ff;
    color: white;
    border-bottom-right-radius: 4px;
}
.bls-msg.admin {
    align-self: flex-start;
    background: white;
    border: 1px solid #ddd;
    border-bottom-left-radius: 4px;
}

#bls-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: white;
}
#bls-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    outline: none;
}
#bls-send-btn {
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    margin-left: 6px;
    cursor: pointer;
    font-size: 18px;
}

#bls-powered-by {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 6px;
    background: white;
    border-top: 1px solid #eee;
}
#bls-powered-by a { color: #666; text-decoration: none; }
#bls-powered-by a:hover { text-decoration: underline; }