.pbs-ai-btn{
    position:fixed;
    right:22px;
    bottom:22px;
    width:64px;
    height:64px;
    border-radius:50%;
    border:0;
    background:linear-gradient(135deg,#0096c7,#48cae4);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    z-index:9999;
    box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.pbs-ai-box{
    position:fixed;
    right:22px;
    bottom:100px;
    width:380px;
    max-width:calc(100vw - 32px);
    height:560px;
    max-height:calc(100vh - 140px);
    background:#fff;
    border-radius:26px;
    overflow:hidden;
    display:none;
    flex-direction:column;
    z-index:9999;
    box-shadow:0 25px 80px rgba(0,0,0,.30);
    border:1px solid #dbeafe;
}

.pbs-ai-box.open{
    display:flex;
}

.pbs-ai-head{
    background:linear-gradient(135deg,#001a2c,#0096c7);
    color:#fff;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.pbs-ai-head strong{
    display:block;
    font-size:17px;
}

.pbs-ai-head small{
    opacity:.8;
}

.pbs-ai-close{
    background:rgba(255,255,255,.15);
    border:0;
    color:#fff;
    width:34px;
    height:34px;
    border-radius:50%;
    cursor:pointer;
}

.pbs-ai-body{
    flex:1;
    padding:16px;
    overflow-y:auto;
    background:#f8fafc;
}

.pbs-ai-msg{
    margin-bottom:14px;
    display:flex;
}

.pbs-ai-msg.bot{
    justify-content:flex-start;
}

.pbs-ai-msg.user{
    justify-content:flex-end;
}

.pbs-ai-bubble{
    max-width:86%;
    padding:13px 15px;
    border-radius:18px;
    font-size:14px;
    line-height:1.55;
    white-space:pre-line;
}

.pbs-ai-msg.bot .pbs-ai-bubble{
    background:#fff;
    color:#0f172a;
    border:1px solid #e2e8f0;
}

.pbs-ai-msg.user .pbs-ai-bubble{
    background:#0096c7;
    color:#fff;
}

.pbs-ai-actions{
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.pbs-ai-actions a,
.pbs-ai-chip{
    display:inline-block;
    padding:8px 12px;
    border-radius:999px;
    background:#e0f2fe;
    color:#0369a1;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    border:0;
    cursor:pointer;
}

.pbs-ai-quick{
    padding:12px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    border-top:1px solid #e2e8f0;
    background:#fff;
}

.pbs-ai-form{
    display:flex;
    gap:8px;
    padding:14px;
    border-top:1px solid #e2e8f0;
    background:#fff;
}

.pbs-ai-form input{
    flex:1;
    border:1px solid #dbe3ec;
    border-radius:999px;
    padding:12px 14px;
    outline:none;
}

.pbs-ai-form button{
    border:0;
    background:#0096c7;
    color:#fff;
    border-radius:999px;
    padding:0 18px;
    font-weight:900;
    cursor:pointer;
}

.pbs-ai-typing{
    font-size:13px;
    color:#64748b;
    margin-bottom:12px;
}

@media(max-width:520px){
    .pbs-ai-box{
        right:12px;
        bottom:90px;
        width:calc(100vw - 24px);
        height:70vh;
    }

    .pbs-ai-btn{
        right:16px;
        bottom:16px;
    }
}