.ai-agent-widget {
    z-index: 999999;
    font-family: inherit
}

.ai-agent-btn {
    background: 0 0 !important;
    border: 1px solid #dcdcdc;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 8%);
    transition: .2s ease
}

.ai-agent-btn:focus {
    color: #000
}

.ai-agent-btn:hover {
    background: 0 0 !important;
    border-color: #c8c8c8 !important;
    color: #000 !important
}

.ai-agent-btn img {
    width: 20px;
    height: 20px
}

.ai-agent-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 10px;
    width: 260px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 9%);
    padding: 8px 0
}

.ai-agent-item:hover .ai-agent-btn {
    color: #000 !important
}

.ai-agent-menu.show {
    display: block
}

.ai-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: .2s ease
}

.ai-agent-item:hover {
    background: #f7f7f7 !important;
    color: #000 !important
}

.ai-agent-item img {
    width: 24px;
    height: 24px
}

.ai-agent-item div b {
    font-size: 14px;
    font-weight: 600
}

.ai-agent-item div p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666
}

@media(max-width:771px) {
    .ai-agent-widget {
        top: 70px;
        right: 20px
    }

    body.admin-bar .ai-agent-widget {
        top: calc(32px + 20px);
        right: 20px
    }
}

@media(max-width:523px) {
    .ai-agent-widget {
        right: 65px
    }
}

@media(max-width:489px) {
    .ai-agent-widget {
        right: 60px
    }
}

@media(max-width:523px) {
    .btn-text {
        display: none
    }
}

