
  .whatsapp-arrow {
        position: absolute;
        bottom: -10px;
        right: 20px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid white;
    }

    .whatsapp-popup {
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .whatsapp-popup.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }


    .chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;  /* PALING ATAS */
}

/* bubble button */
.chat-bubble {
    background: #2A3A56;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

/* chatbox */
.chat-box {
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* header chat */
.chat-header {
    background: #2A3A56;
    color: white;
    padding: 12px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
}

/* tombol exit */
.exit-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* body chat */
.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

/* input */
.chat-input {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

/* whatsapp button */
.wa-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
}

#chatBox {
    animation: fadeInUp .3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.userMsg {
    align-self: flex-end;
    background: linear-gradient(135deg, #DCF8C6, #cdeeb3);
    color: #1f2937;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    margin: 6px 0;
    max-width: 100%;
    font-size: 14px;
    animation: msgInRight .25s ease;
}

.botMsg {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1f2937;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    margin: 6px 0;
    max-width: 90%;
    font-size: 14px;
    animation: msgInLeft .25s ease;
}

@keyframes msgInLeft {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes msgInRight {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.actionBtn,
.quickReply {
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-align: left;
    border: none;
    cursor: pointer;
    width: fit-content;
    transition: all .2s ease;
}

.actionBtn:hover,
.quickReply:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}


/* CHAT ICON naik ke atas */
#chatToggle {
    bottom: 90px !important; /* naik dari WA bubble */
    right: 20px !important;
    z-index: 999;
}
/* WHATSAPP BUBBLE di paling bawah */
#whatsapp-bubble {
    bottom: 20px !important;
    right: 20px !important;
    z-index: 998;
}

@keyframes floatUpDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

#chatToggle,
#whatsapp-bubble {
    animation: floatUpDown 3.5s ease-in-out infinite;
}


@keyframes softPulse {
    0%   { box-shadow: 0 0 0 0 rgba(42,58,86,0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(42,58,86,0); }
    100% { box-shadow: 0 0 0 0 rgba(42,58,86,0); }
}

#chatToggle {
    animation: floatUpDown 3.5s ease-in-out infinite,
               softPulse 4s ease-in-out infinite;
}

