#ai-pms-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4d6d;
    color: #fff;
    font-size: 22px;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
}

#ai-pms-chat-toggle::after {
    content: "Hi 👋";
    position: absolute;
    top: -8px;
    right: -12px;
    background: #fff;
    color: #ff4d6d;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 12px;
    animation: pop 1.8s infinite;
}

@keyframes pop {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

#ai-pms-chat-box {
    position: fixed;
    bottom: -500px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    transition: bottom .35s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

#ai-pms-chat-box.open {
    bottom: 90px;
}

.chat-header {
    background: linear-gradient(135deg, #ff4d6d, #ff758f);
    color: #fff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

#ai-pms-messages {
    padding: 10px;
    height: 240px;
    overflow-y: auto;
    font-size: 14px;
}

.bot {
    background: #f3f3f3;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.user {
    background: #ff4d6d;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    text-align: right;
}

.typing {
    font-size: 12px;
    color: #888;
}

.chat-actions button {
    margin: 4px;
    padding: 6px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.chat-input {
    display: flex;
    padding: 8px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 6px;
}

.chat-input button {
    background: #ff4d6d;
    color: #fff;
    border: none;
    padding: 6px 12px;
}
