/* ===================================
   NDP PREMIUM CHAT
=================================== */

:root{
    --ndp-gold:#d4af37;
    --ndp-gold-dark:#b8860b;
    --ndp-black:#111111;
    --ndp-gray:#f5f5f5;
    --ndp-border:#e5e5e5;
}

*{
    box-sizing:border-box;
}

/* ==========================
   CHAT ICON
========================== */

#ndp-chat-icon{
    position:fixed;
    right:25px;
    bottom:25px;
    width:70px;
    height:70px;
    border-radius:50%;
    background:linear-gradient(
        135deg,
        var(--ndp-gold),
        var(--ndp-gold-dark)
    );
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    z-index:999999;
    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
    transition:.3s ease;
    animation:ndpPulse 2s infinite;
}

#ndp-chat-icon:hover{
    transform:scale(1.08);
}

@keyframes ndpPulse{
    0%{
        box-shadow:
            0 0 0 0 rgba(212,175,55,.7);
    }

    70%{
        box-shadow:
            0 0 0 20px rgba(212,175,55,0);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(212,175,55,0);
    }
}

/* ==========================
   NOTIFICATION BADGE
========================== */

.ndp-notification{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:24px;
    height:24px;
    background:#ff3b30;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:12px;
    font-weight:700;
    border:2px solid #fff;
}

/* ==========================
   CHAT WINDOW
========================== */

#ndp-chat-window{
    display:none;
    position:fixed;
    right:25px;
    bottom:110px;
    width:380px;
    height:650px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    z-index:999999;
    box-shadow:
        0 20px 60px rgba(0,0,0,.18);
    border:1px solid rgba(0,0,0,.08);
}

/* ==========================
   HEADER
========================== */

.ndp-header{
    background:var(--ndp-black);
    color:#fff;
    padding:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.ndp-agent{
    display:flex;
    align-items:center;
    gap:12px;
}

.ndp-agent img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid var(--ndp-gold);
}

.ndp-agent strong{
    display:block;
    font-size:15px;
    color:#fff;
}

.ndp-agent span{
    display:block;
    font-size:12px;
    color:#ccc;
}

#ndp-close-chat{
    cursor:pointer;
    font-size:26px;
    line-height:1;
    transition:.3s;
}

#ndp-close-chat:hover{
    color:var(--ndp-gold);
}

/* ==========================
   CHAT BODY
========================== */

#ndp-chat-body{
    height:500px;
    overflow-y:auto;
    padding:15px;
    background:#fafafa;
}

/* custom scrollbar */

#ndp-chat-body::-webkit-scrollbar{
    width:6px;
}

#ndp-chat-body::-webkit-scrollbar-thumb{
    background:#d4af37;
    border-radius:20px;
}

/* ==========================
   MESSAGE BUBBLES
========================== */

.bot-message{
    background:#fff;
    padding:12px 15px;
    border-radius:18px 18px 18px 5px;
    margin-bottom:12px;
    max-width:85%;
    font-size:14px;
    line-height:1.6;
    box-shadow:
        0 2px 8px rgba(0,0,0,.06);
    border:1px solid #eee;
}

.user-message{
    background:linear-gradient(
        135deg,
        var(--ndp-gold),
        var(--ndp-gold-dark)
    );
    color:#fff;
    padding:12px 15px;
    border-radius:18px 18px 5px 18px;
    margin-bottom:12px;
    max-width:85%;
    margin-left:auto;
    font-size:14px;
    line-height:1.6;
}

/* ==========================
   QUICK REPLY BUTTONS
========================== */

.ndp-options{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.ndp-option{
    background:#fff;
    border:1px solid var(--ndp-gold);
    color:var(--ndp-black);
    border-radius:50px;
    padding:10px 15px;
    cursor:pointer;
    font-size:13px;
    transition:.3s;
}

.ndp-option:hover{
    background:var(--ndp-gold);
    color:#fff;
}

/* ==========================
   TYPING INDICATOR
========================== */

.typing{
    display:flex;
    gap:5px;
    align-items:center;
    margin-bottom:15px;
}

.typing span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#999;
    animation:typing 1.4s infinite;
}

.typing span:nth-child(2){
    animation-delay:.2s;
}

.typing span:nth-child(3){
    animation-delay:.4s;
}

@keyframes typing{
    0%,80%,100%{
        transform:scale(.8);
        opacity:.5;
    }

    40%{
        transform:scale(1.2);
        opacity:1;
    }
}

/* ==========================
   INPUT AREA
========================== */

.ndp-chat-input{
    height:70px;
    border-top:1px solid var(--ndp-border);
    display:flex;
    align-items:center;
    padding:10px;
    background:#fff;
}

#ndp-message{
    flex:1;
    height:50px;
    border:1px solid #ddd;
    border-radius:30px;
    padding:0 18px;
    outline:none;
    font-size:14px;
}

#ndp-message:focus{
    border-color:var(--ndp-gold);
}

#ndp-send{
    width:50px;
    height:50px;
    border:none;
    margin-left:10px;
    border-radius:50%;
    background:linear-gradient(
        135deg,
        var(--ndp-gold),
        var(--ndp-gold-dark)
    );
    color:#fff;
    cursor:pointer;
    font-size:18px;
    transition:.3s;
}

#ndp-send:hover{
    transform:scale(1.05);
}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    #ndp-chat-window{
        width:95%;
        right:2.5%;
        bottom:95px;
        height:80vh;
    }

    #ndp-chat-body{
        height:calc(80vh - 140px);
    }

    #ndp-chat-icon{
        right:15px;
        bottom:15px;
    }
}