#n4y-ai-button {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3eadb;
    color: #b99655;
    border: 1px solid #c7a66a;
    border-radius: 999px;
    padding: 13px 20px;
    box-shadow: 0 10px 28px rgba(120, 90, 45, 0.16);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#n4y-ai-button:hover {
    transform: translateY(-2px);
    background: #fff7ec;
    box-shadow: 0 14px 34px rgba(120, 90, 45, 0.22);
}

.n4y-ai-icon {
    font-size: 18px;
    line-height: 1;
}

#n4y-ai-chat {
    position: fixed;
    bottom: 88px;
    width: 380px;
    height: 500px;
    max-height: calc(100vh - 120px);
    z-index: 999999;
    display: none;
    flex-direction: column;
    background: #fffaf3;
    border: 1px solid #d8c4a2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(120, 90, 45, 0.23);
    font-family: Arial, sans-serif;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

#n4y-ai-chat.n4y-ai-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.n4y-ai-header {
    background: linear-gradient(135deg, #f3eadb, #fff7ec);
    color: #b99655;
    border-bottom: 1px solid #c7a66a;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.n4y-ai-mark {
    width: 44px;
    height: 44px;
    border: 1px solid #c7a66a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #b99655;
    background: #fffaf3;
    flex: 0 0 auto;
}

.n4y-ai-heading {
    flex: 1;
}

.n4y-ai-title {
    font-size: 15px;
    font-weight: 700;
    color: #b99655;
}

.n4y-ai-subtitle {
    font-size: 12px;
    color: #c7a66a;
    margin-top: 2px;
}

#n4y-ai-close {
    border: 0;
    background: transparent;
    color: #b99655;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#n4y-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #fffaf3;
}

.n4y-ai-message {
    max-width: 84%;
    padding: 11px 13px;
    margin-bottom: 11px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.n4y-ai-bot {
    background: #f5ecdc;
    color: #7f6a48;
    border: 1px solid #e2d1b6;
    margin-right: auto;
}

.n4y-ai-user {
    background: #d6bf91;
    color: #ffffff;
    margin-left: auto;
}

.n4y-ai-loading {
    opacity: 0.85;
}

.n4y-ai-input-wrap {
    border-top: 1px solid #e5d8c5;
    display: flex;
    background: #ffffff;
}

#n4y-ai-input {
    flex: 1;
    border: 0;
    padding: 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    color: #6c5a3f;
}

#n4y-ai-send {
    border: 0;
    background: #c7a66a;
    color: #ffffff;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
}

#n4y-ai-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #n4y-ai-button {
        right: 16px !important;
        bottom: 16px;
        padding: 12px 16px;
    }

    #n4y-ai-chat {
        right: 12px !important;
        left: 12px;
        bottom: 76px;
        width: auto;
        height: 72vh;
        max-height: 560px;
    }
}
