﻿/*#whatsappButton {
    position: fixed;
    left: 22px;*/ /* 22px | 150px */
    /*bottom: 25px;*/ /* 22px | 45px */
    /*background: #8DC80D;*/ /* #8DC80D  */
    /*color: white;
    border: none;*/
    /*border-radius: 50px;*/
    /*display: flex;*/
    /*padding: 10px 22px;*/ /* 15px 22px; */
    /*cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px #0003;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
}
.whatsappButton:hover {
    color: white;
    background: #17214f;
}*/

#whatsappButton {
    position: fixed;
    right: 22px; /* 22px */
    bottom: 100px;
    background: linear-gradient(135deg, #86be0c, #8DC80D); /* #b0d958 */
    color: white;
    border: none;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px #0003;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    /* Center icon */
    display: flex;
    align-items: center;
    justify-content: center;
}
    #whatsappButton i {
        font-size: 28px;
        line-height: 1;
    }
    #whatsappButton:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(23, 33, 79, 0.5);
    }
/*#chatButton {
    position: fixed;
    right: 22px;*/ /* 22px | 160px*/
    /*bottom: 22px;*/ /* 22px | 45px */
    /*background: #17214f;*/ /* #17214f | green: #8DC80D */
    /*color: white;
    border: none;*/
    /*width: 60px;
    height: 60px;*/
    /*border-radius: 50px;*/ /* */
    /*padding: 0;*/
    /*padding: 10px 22px;*/ /* 15px 22px; */
    /*cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px #0003;
}*/

#chatButton {
    position: fixed;
    right: 22px;
    bottom: 22px;
    /*background: #17214f;*/
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px #0003;
    background: linear-gradient(135deg, #17214f, #2f4db8);
    transition: all .3s ease;
}
    #chatButton i {
        font-size: 28px;
        line-height: 1;
    }

    #chatButton:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(23, 33, 79, 0.5);
    }

#chatWindow {
    display: none;
    position: fixed;
    right: 100px; /* 22px | 160px */
    bottom: 22px; /* 85px | 95px */
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 650px; /* 440px */
    max-height: 70vh;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 25px #0003;
    z-index: 9999;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#chatHeader {
    background: #17214f;
    color: white;
    padding: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

#chatMessages {
    height: calc(100% - 125px);
    overflow-y: auto;
    padding: 12px;
    background: #f5f7fb;
}

.chat-message {
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 10px;
    max-width: 88%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font-size: 14px;
}

.chat-user {
    background: #17214f;
    color: white;
    margin-left: auto;
}

.chat-bot {
    background: white;
    color: #222;
    border: 1px solid #e2e5ec;
    margin-right: auto;
}

#chatInputArea {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

#chatInput {
    min-width: 0;
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#chatSend {
    background: #17214f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

    #chatSend:disabled {
        opacity: .6;
        cursor: wait;
    }

@media (max-width: 480px) {
    #chatWindow {
        right: 12px;
        bottom: 78px;
        width: calc(100vw - 24px);
        height: 65vh;
    }

    #chatButton {
        right: 10px; /* 12px */
        bottom: 15px; /* 12px | 50px*/
    }

    #whatsappButton {
        left: 10px; /* 12px */
        bottom: 15px; /* 12px | 50px*/
    }
}
