/* Life Line Hospital - Live Chat Widget */
#llLauncher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#llPreviewBubble {
    background: #fff;
    color: #1a2332;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    position: relative;
    animation: llFadeUp 0.35s ease both;
}
#llPreviewBubble .ll-preview-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#llChatPill {
    background: #fff;
    color: #0e7c61;
    border: 1.5px solid #0e7c61;
    font-size: 14.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    animation: llFadeUp 0.35s ease both;
    animation-delay: 0.05s;
}
#llChatPill:hover { background: #f0fdf9; }

#llChatBubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0e7c61;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    border: none;
    padding: 0;
    align-self: flex-end;
}
#llChatBubble svg { width: 28px; height: 28px; }

@keyframes llFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#llChatWindow {
    position: fixed;
    bottom: 92px;
    right: 20px;
    width: 320px;
    max-width: 90vw;
    height: 440px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#llChatWindow.open { display: flex; }

#llChatHeader {
    background: #0e7c61;
    color: #fff;
    padding: 12px 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#llChatHeader span.close { cursor: pointer; font-weight: normal; }

#llChatBody {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f4f6f5;
}

.ll-msg {
    max-width: 80%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ll-msg.visitor {
    background: #0e7c61;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.ll-msg.bot, .ll-msg.admin {
    background: #e6e6e6;
    color: #222;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

#llChatInputRow {
    display: flex;
    border-top: 1px solid #ddd;
}

#llChatInput {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 13px;
    outline: none;
}

#llChatSendBtn {
    background: #0e7c61;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    #llLauncher { bottom: 14px; right: 14px; }
    #llPreviewBubble { font-size: 13px; padding: 10px 14px; max-width: 62vw; }
    #llChatPill { font-size: 13px; padding: 8px 16px; }
    #llChatBubble { width: 50px; height: 50px; }
    #llChatBubble svg { width: 24px; height: 24px; }

    #llChatWindow {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 80vh;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
    }
}
