/* =========================
   CHAT BUTTON
========================= */

#fenix-chat-button{

    position:fixed;

    right:20px;
    bottom:170px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:
    radial-gradient(
        circle at 30% 30%,
        #e9b518,
        #df0a0a
    );

    color:#fff;

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

    font-size:14px;
    font-weight:700;

    cursor:pointer;

    z-index:999999;

    box-shadow:
        0 0 20px rgba(227,161,39,.6),
        0 0 40px rgba(227,161,39,.3);

    transition:.3s;
}

#fenix-chat-button:hover{

    transform:scale(1.05);
}

/* =========================
   CHAT WINDOW
========================= */

#fenix-chat-window{

    position:fixed;

    bottom:85px;
    right:20px;

    width:340px;
    height:500px;

    background:#fff;

    border:1px solid #e6e6e6;

    border-radius:16px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    z-index:999999;

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

/* =========================
   HEADER
========================= */

.fenix-header{

    background:#e3a127;

    color:#fff;

    padding:12px 15px;

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

    flex-shrink:0;
}

.fenix-header h5{

    margin:0;

    font-size:15px;

    font-weight:600;
}

.fenix-header small{

    display:block;

    font-size:11px;

    opacity:.9;
}

#fenix-close{

    border:none;

    background:none;

    color:#fff;

    font-size:18px;

    cursor:pointer;
}

/* =========================
   MESSAGES
========================= */

#fenix-messages{

    flex:1;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    padding:12px;

    background:#f8f8f8;
}

#fenix-messages::-webkit-scrollbar{

    width:5px;
}

#fenix-messages::-webkit-scrollbar-thumb{

    background:#e3a127;

    border-radius:10px;
}

.bot-message{

    background:#fff;

    color:#333;

    border:1px solid #ececec;

    border-left:4px solid #e3a127;

    padding:10px;

    border-radius:10px;

    margin-bottom:10px;

    font-size:14px;

    word-wrap:break-word;
}

.user-message{

    background:#e3a127;

    color:#fff;

    padding:10px;

    border-radius:10px;

    margin-bottom:10px;

    margin-left:40px;

    font-size:14px;

    word-wrap:break-word;
}

/* =========================
   QUICK BUTTONS
========================= */

.fenix-quick-buttons{

    padding:10px;

    display:flex;

    flex-wrap:wrap;

    gap:6px;

    background:#fff;

    flex-shrink:0;
}

.quick-btn{

    background:#f5f5f5;

    color:#333;

    border:1px solid #ddd;

    padding:6px 10px;

    border-radius:8px;

    cursor:pointer;

    font-size:12px;

    transition:.2s;
}

.quick-btn:hover{

    background:#e3a127;

    color:#fff;
}

/* =========================
   INPUT
========================= */

.fenix-input{

    display:flex;

    border-top:1px solid #eee;

    background:#fff;

    flex-shrink:0;
}

#fenix-input{

    flex:1;

    border:none;

    background:#fff;

    color:#333;

    padding:12px;

    font-size:14px;
}

#fenix-input:focus{

    outline:none;
}

#fenix-send{

    background:#e3a127;

    color:#fff;

    border:none;

    padding:0 15px;

    font-weight:600;

    cursor:pointer;
}

/* =========================
   TABLET
========================= */

@media (max-width:992px){

    #fenix-chat-window{

        width:330px;

        height:480px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    #fenix-chat-window{

        width:calc(100vw - 20px);

        height:70vh;

        left:10px;
        right:10px;

        bottom:85px;

        border-radius:14px;
    }

    #fenix-chat-button{

        width:60px;
        height:60px;

        right:15px;
        bottom:170px;

        font-size:13px;
    }

    .fenix-header h5{

        font-size:14px;
    }

    .bot-message,
    .user-message{

        font-size:13px;
    }

    #fenix-input{

        font-size:16px;
    }
}