:root{
    --ndp-primary:#caa64b;
    --ndp-primary-dark:#b48d2d;
    --ndp-bg:#ffffff;
    --ndp-border:#ececec;
    --ndp-text:#222;
}

/* Chat Icon */

#ndp-chat-icon{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    cursor:pointer;
    z-index:999999;
    box-shadow:0 10px 35px rgba(0,0,0,.20);
    transition:.3s;
}

#ndp-chat-icon:hover{
    transform:translateY(-3px);
}

#ndp-chat-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

/* Notification */

.ndp-notification{
    position:absolute;
    top:-5px;
    right:-5px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#ff3b30;
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
    animation:pulse 1.5s infinite;
}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.15);
    }

    100%{
        transform:scale(1);
    }
}

/* Chat Window */

#ndp-chat-window{
    display:none;
    position:fixed;
    right:25px;
    bottom:100px;
    width:350px;
    height:520px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    z-index:999999;
    border:1px solid #e7e7e7;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

/* Header */

.ndp-header{
    height:75px;
    background:#000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 15px;
}

.ndp-agent{
    display:flex;
    align-items:center;
    gap:10px;
}

.ndp-agent img{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,.5);
}

.ndp-agent strong{
    display:block;
    font-size:14px;
}

.ndp-agent span{
    display:block;
    font-size:11px;
    opacity:.9;
}

#ndp-close-chat{
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:22px;
    font-weight:600;
    transition:.3s;
}

#ndp-close-chat:hover{
    background:rgba(255,255,255,.35);
}

/* Body */

#ndp-chat-body{
    height:370px;
    overflow-y:auto;
    padding:15px;
    background:#f7f8fa;
}

#ndp-chat-body::-webkit-scrollbar{
    width:5px;
}

#ndp-chat-body::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:20px;
}

/* Messages */

.bot-message,
.user-message{
    max-width:85%;
    padding:12px 15px;
    margin-bottom:12px;
    font-size:14px;
    line-height:1.5;
    word-wrap:break-word;
}

.bot-message{
    background:#fff;
    border-radius:16px 16px 16px 5px;
    border:1px solid #e6e6e6;
    color:#222;
}

.user-message{
    background:linear-gradient(
        135deg,
        var(--ndp-primary),
        var(--ndp-primary-dark)
    );
    color:#fff;
    margin-left:auto;
    border-radius:16px 16px 5px 16px;
}

/* Options */

.ndp-options{
    margin-top:15px;
}

.ndp-option{
    width:100%;
    display:block;
    text-align:left;
    background:#fff;
    border:1px solid #e6e6e6;
    border-radius:12px;
    padding:12px 14px;
    margin-bottom:8px;
    cursor:pointer;
    transition:.3s;
    font-size:14px;
}

.ndp-option:hover{
    background:var(--ndp-primary);
    border-color:var(--ndp-primary);
    color:#fff;
}

/* Typing */

.typing{
    display:flex;
    align-items:center;
    gap:4px;
    margin-bottom:15px;
    padding:10px 14px;
    background:#fff;
    width:60px;
    border-radius:12px;
    border:1px solid #e8e8e8;
}

.typing span{
    width:7px;
    height:7px;
    background:#999;
    border-radius:50%;
    animation:typing 1s infinite;
}

.typing span:nth-child(2){
    animation-delay:.2s;
}

.typing span:nth-child(3){
    animation-delay:.4s;
}

@keyframes typing{

    0%{
        opacity:.3;
        transform:translateY(0);
    }

    50%{
        opacity:1;
        transform:translateY(-3px);
    }

    100%{
        opacity:.3;
        transform:translateY(0);
    }
}

/* Input Area */

.ndp-chat-input{
    height:75px;
    border-top:1px solid #ececec;
    background:#fff;
    padding:12px;
    display:flex;
    align-items:center;
    gap:10px;
}

#ndp-message{
    flex:1;
    height:48px;
    border:1px solid #ddd;
    border-radius:30px;
    padding:0 18px;
    outline:none;
    font-size:14px;
}

#ndp-message:focus{
    border-color:var(--ndp-primary);
}

#ndp-send{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    color:#fff;
    font-size:18px;
    background:linear-gradient(
        135deg,
        var(--ndp-primary),
        var(--ndp-primary-dark)
    );
}

/* Mobile */

@media(max-width:768px){

    #ndp-chat-window{
        width:95%;
        right:2.5%;
        bottom:95px;
        height:75vh;
    }

    #ndp-chat-body{
        height:calc(75vh - 150px);
    }

    #ndp-chat-icon{
        width:60px;
        height:60px;
        right:15px;
        bottom:15px;
    }
}