:root {
    --lia-gold: #b59a6a;
    --lia-dark: #2f302d;
    --lia-paper: #f5f1e8;
}


/* BOTÃO */

.lia-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 990;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--lia-gold);
    color: #fff;

    cursor: pointer;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.28);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.lia-launcher:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.32);
}

.lia-launcher svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}


/* NOTIFICAÇÃO */

.lia-badge {
    position: absolute;
    right: -2px;
    top: -3px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid #fff;

    border-radius: 999px;

    background: #b94343;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
}


/* BALÃO CHAMANDO */

.lia-teaser {
    position: fixed;
    right: 91px;
    bottom: 28px;
    z-index: 989;

    max-width: 245px;

    padding: 13px 16px;

    border-radius:
        14px 14px 3px 14px;

    background: #fff;
    color: #343532;

    font-size: 12px;
    line-height: 1.45;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.16);

    opacity: 0;
    transform:
        translateY(10px);

    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.lia-teaser.show {
    opacity: 1;

    transform:
        translateY(0);

    pointer-events: auto;

    cursor: pointer;
}

.lia-teaser strong {
    display: block;

    margin-bottom: 2px;

    color: var(--lia-gold);

    font-size: 10px;
    letter-spacing: .08em;
}


/* CHAT */

.lia-chat {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 995;

    width:
        min(
            390px,
            calc(100vw - 32px)
        );

    height:
        min(
            610px,
            calc(100vh - 125px)
        );

    display: none;
    flex-direction: column;

    overflow: hidden;

    border-radius: 13px;

    background: #ece8df;

    box-shadow:
        0 22px 70px
        rgba(0,0,0,.32);
}

.lia-chat.open {
    display: flex;
}


/* CABEÇALHO */

.lia-header {
    min-height: 72px;

    padding: 14px 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: var(--lia-dark);
    color: #fff;
}

.lia-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--lia-gold);

    font-family:
        Georgia,
        serif;

    font-size: 18px;
}

.lia-header-copy {
    flex: 1;
}

.lia-header-copy strong {
    display: block;

    font-size: 14px;
    font-weight: 500;
}

.lia-status {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 4px;

    color:
        rgba(255,255,255,.63);

    font-size: 9px;
}

.lia-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #6fc98a;
}

.lia-close {
    width: 34px;
    height: 34px;

    border: 0;

    background: transparent;
    color: #fff;

    font-size: 23px;

    cursor: pointer;
}


/* CONVERSA */

.lia-messages {
    flex: 1;

    padding: 18px 14px;

    overflow-y: auto;

    scroll-behavior: smooth;
}

.lia-row {
    display: flex;

    margin-bottom: 10px;
}

.lia-row.bot {
    justify-content: flex-start;
}

.lia-row.user {
    justify-content: flex-end;
}

.lia-bubble {
    max-width: 82%;

    padding: 10px 13px;

    border-radius: 13px;

    font-size: 12px;
    line-height: 1.55;

    box-shadow:
        0 2px 7px
        rgba(0,0,0,.06);
}

.lia-row.bot .lia-bubble {
    border-radius:
        3px 13px 13px 13px;

    background: #fff;
    color: #3b3c39;
}

.lia-row.user .lia-bubble {
    border-radius:
        13px 3px 13px 13px;

    background: #d8c49d;
    color: #302f2c;
}

.lia-time {
    display: block;

    margin-top: 4px;

    color: rgba(0,0,0,.38);

    text-align: right;

    font-family: Arial, sans-serif;
    font-size: 8px;
}


/* DIGITANDO */

.lia-typing {
    display: inline-flex;
    gap: 4px;

    padding: 12px 14px;

    border-radius:
        3px 13px 13px 13px;

    background: #fff;
}

.lia-typing i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #999;

    animation:
        liaTyping 1.2s infinite;
}

.lia-typing i:nth-child(2) {
    animation-delay: .15s;
}

.lia-typing i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes liaTyping {

    0%,
    60%,
    100% {
        transform:
            translateY(0);

        opacity: .4;
    }

    30% {
        transform:
            translateY(-4px);

        opacity: 1;
    }

}


/* RESPOSTAS RÁPIDAS */

.lia-quick {
    padding:
        0 14px 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    background: #ece8df;
}

.lia-quick button {
    padding: 8px 11px;

    border:
        1px solid
        var(--lia-gold);

    border-radius: 999px;

    background: transparent;
    color: #806b48;

    font-family: inherit;
    font-size: 10px;

    cursor: pointer;
}

.lia-quick button:hover {
    background:
        rgba(181,154,106,.11);
}


/* CAMPO */

.lia-input-area {
    padding: 10px;

    display: flex;
    align-items: flex-end;
    gap: 8px;

    border-top:
        1px solid
        rgba(0,0,0,.08);

    background: #f7f4ed;
}

.lia-input-area textarea {
    flex: 1;

    min-height: 42px;
    max-height: 100px;

    padding: 11px 12px;

    border: 0;
    border-radius: 10px;

    outline: none;

    resize: none;

    background: #fff;
    color: #333;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.lia-send {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--lia-gold);
    color: #fff;

    cursor: pointer;
}

.lia-send svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}


/* RODAPÉ */

.lia-footer-note {
    padding:
        3px 10px 8px;

    background: #f7f4ed;

    color: #9a968f;

    text-align: center;

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 600px) {

    .lia-launcher {
        right: 16px;
        bottom: 16px;
    }

    .lia-teaser {
        right: 83px;
        bottom: 23px;

        max-width: 210px;
    }

    .lia-chat {
        right: 10px;
        bottom: 84px;

        width:
            calc(100vw - 20px);

        height:
            min(
                640px,
                calc(100vh - 100px)
            );
    }

}


/* =====================================================
   LIA — REINICIAR CONVERSA
===================================================== */

.lia-restart {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border: 0;

    background: transparent;
    color: rgba(255,255,255,.72);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .2s ease,
        transform .25s ease;
}

.lia-restart:hover {
    color: #fff;
    transform: rotate(-30deg);
}
