﻿.chat-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #2b8aa3;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    cursor: pointer;
}

.chat-panel {
    position: fixed;
    right: 22px;
    bottom: 82px;
    width: 360px;
    max-width: calc(100vw - 44px);
    height: 520px;
    max-height: calc(100vh - 120px);
    z-index: 9999;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 14px 10px 14px;
    background: linear-gradient(180deg, rgba(43,138,163,.14), rgba(43,138,163,.02));
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.chat-subtitle {
    font-size: 12px;
    color: #5f6b74;
    margin-top: 2px;
}

.chat-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 22px;
    cursor: pointer;
    color: #334;
    padding: 2px 6px;
    border-radius: 10px;
}

.chat-messages {
    padding: 12px;
    height: 380px;
    overflow: auto;
    background: #f7fafc;
}

.msg {
    margin: 10px 0;
    display: flex;
}

    .msg.user {
        justify-content: flex-end;
    }

    .msg.bot {
        justify-content: flex-start;
    }

.bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.msg.user .bubble {
    background: #e8f5f8;
    border-color: rgba(43,138,163,.25);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.chat-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.15);
    outline: none;
}

.chat-send {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #2b8aa3;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.chat-footnote {
    padding: 10px 12px 12px 12px;
    font-size: 11px;
    color: #6b7280;
    background: #fff;
}
