/* LLA Support Chat Widget */
.lla-support-chat__toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c27a56, #d4a574);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(194, 122, 86, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lla-support-chat__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(194, 122, 86, 0.5);
}

.lla-support-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lla-support-chat__window {
    width: 380px;
    max-width: 90vw;
    height: 520px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lla-chat-slide-up 0.3s ease-out;
}

@keyframes lla-chat-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.lla-support-chat__header {
    padding: 16px;
    background: linear-gradient(135deg, #c27a56, #d4a574);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lla-support-chat__header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lla-support-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lla-support-chat__header-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.lla-support-chat__header-info span {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}
.lla-support-chat__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.lla-support-chat__close:hover {
    background: rgba(255,255,255,0.2);
}

/* Messages */
.lla-support-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lla-support-chat__msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.lla-support-chat__msg p {
    margin: 0;
}
.lla-support-chat__msg--bot {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
    align-self: flex-start;
}
.lla-support-chat__msg--user {
    background: #c27a56;
    color: #fff;
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.lla-support-chat__typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-top-left-radius: 4px;
}
.lla-support-chat__typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: lla-chat-bounce 1.2s infinite;
}
.lla-support-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.lla-support-chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lla-chat-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Input */
.lla-support-chat__input {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}
.lla-support-chat__input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.lla-support-chat__input input:focus {
    border-color: #c27a56;
}
.lla-support-chat__input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c27a56;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lla-support-chat__input button:hover {
    background: #a8624a;
}
.lla-support-chat__input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
    .lla-support-chat__window {
        width: calc(100vw - 24px);
        height: calc(100vh - 120px);
        max-height: none;
        bottom: 12px;
        right: 12px;
    }
    .lla-support-chat {
        bottom: 12px;
        right: 12px;
    }
    .lla-support-chat__toggle {
        bottom: 16px;
        right: 16px;
    }
}
