#ip-ai-chatbot-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #1e1b4b, #4F46E5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 18px 45px rgba(79,70,229,0.45);
    font-size: 24px;
}

#ip-ai-chat-window {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 390px;
    height: 590px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: none;
    overflow: hidden;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 24px 80px rgba(15,23,42,0.28);
}

.ip-chat-header {
    height: 78px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.ip-chat-avatar {
    width: 42px;
    height: 42px;
    background: #ffffff;
    color: #4F46E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.ip-chat-title {
    font-size: 17px;
    font-weight: 800;
}

.ip-chat-status {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
}

#ip-ai-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
}

#ip-ai-messages {
    height: 360px;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

.ip-bot-message,
.ip-user-message {
    max-width: 82%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.ip-bot-message {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-top-left-radius: 6px;
}

.ip-user-message {
    margin-left: auto;
    background: #0f172a;
    color: #ffffff;
    border-top-right-radius: 6px;
}

.ip-chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.ip-chat-suggestions button {
    white-space: nowrap;
    border: 1px solid #dbeafe;
    background: #eef2ff;
    color: #4F46E5;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ip-chat-form {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

#ip-ai-input {
    flex: 1;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
}

#ip-ai-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

#ip-ai-send {
    width: 48px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: #4F46E5;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 480px) {
    #ip-ai-chat-window {
        width: calc(100% - 24px);
        right: 12px;
        bottom: 90px;
        height: 580px;
    }

    #ip-ai-chatbot-button {
        right: 16px;
        bottom: 18px;
    }
}