/* AI Sales Agent Chat Widget Styles */
#ai-sales-agent-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ai-sales-agent-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ai-sales-agent-toggle:hover {
    background-color: #005a87;
}

.ai-sales-agent-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-sales-agent-header {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-sales-agent-header h3 {
    margin: 0;
    font-size: 16px;
}

.ai-sales-agent-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.ai-sales-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

.ai-sales-agent-message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.ai-sales-agent-user {
    background-color: #0073aa;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-sales-agent-assistant {
    background-color: #e9e9eb;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-sales-agent-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.ai-sales-agent-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.ai-sales-agent-send {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
}

.ai-sales-agent-send:hover {
    background-color: #005a87;
}

.ai-sales-agent-media {
    margin-top: 10px;
}

.ai-sales-agent-pdf-link {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
    margin-top: 5px;
}

.ai-sales-agent-message img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
}