﻿.conny-assistant {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1090;
}


/* =========================
   PULSANTE FLOTTANTE
   ========================= */

.conny-launcher {
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background: #087a50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}


    .conny-launcher:hover {
        transform: translateY(-5px) scale(1.04);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .23);
    }


.conny-launcher-img {
    width: 72px;
    height: auto;
    margin-top: -14px;
}


/* =========================
   PANEL
   ========================= */

.conny-panel {
    position: absolute;
    right: 0;
    bottom: 85px;
    width: 410px;
    max-height: 80vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.conny-body {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}
    .conny-body::-webkit-scrollbar {
        width: 6px;
    }

    .conny-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .conny-body::-webkit-scrollbar-thumb {
        background: #cfd8d4;
        border-radius: 10px;
    }

        .conny-body::-webkit-scrollbar-thumb:hover {
            background: #9eaaa5;
        }
    .conny-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }


/* =========================
   HEADER
   ========================= */

.conny-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #00794f, #00a870);
    color: #fff;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


    .conny-header strong {
        display: block;
        font-size: 18px;
    }


    .conny-header small {
        display: block;
        font-size: 12px;
        opacity: .8;
    }


.conny-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}


/* =========================
   BODY
   ========================= */

.conny-body {
    padding: 20px;
}


/* =========================
   INTRO
   ========================= */

.conny-intro {
    display: flex;
    align-items: center;
    gap: 15px;
}


.conny-character {
    width: 125px;
    height: auto;
    animation: connyFloat 3s ease-in-out infinite;
}


@keyframes connyFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


.conny-message {
    flex: 1;
}


    .conny-message strong {
        font-size: 17px;
        color: #123f35;
    }


    .conny-message p {
        margin-top: 8px;
        margin-bottom: 0;
        font-size: 13px;
        color: #68747a;
        line-height: 1.5;
    }



/* =========================
   AZIONI
   ========================= */

.conny-actions {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}


.conny-action {
    width: 100%;
    border: none;
    border-radius: 9px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}


    .conny-action:hover {
        transform: translateX(3px);
        filter: brightness(1.04);
    }


    .conny-action i {
        font-size: 20px;
    }


.conny-action-help {
    background: #25b85a;
}

.conny-action-problem {
    background: #ffffff;
    color: #1A5B3D;
    border: 1.5px solid #49C192;
    box-shadow: 0 4px 12px rgba(26, 91, 61, .08);
}

    .conny-action-problem i {
        color: #1A5B3D;
    }

    .conny-action-problem:hover {
        background: #EAF6F1;
        border-color: #1A5B3D;
        color: #1A5B3D;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(26, 91, 61, .14);
    }

.conny-action-agent {
    background: #067348;
}


.conny-action-whatsapp {
    background: #25d366;
}


/* =========================
   RISPOSTA CONNY
   ========================= */

.conny-response {
    margin-top: 15px;
    padding: 14px;
    border-radius: 10px;
    background: #f5f7f8;
    font-size: 13px;
    line-height: 1.5;
    color: #405057;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 575px) {

    .conny-assistant {
        right: 12px;
        bottom: 12px;
    }


    .conny-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 100px;
        width: auto;
    }


    .conny-character {
        width: 100px;
    }


    .conny-launcher {
        width: 68px;
        height: 68px;
    }
}
