#ai-chat-widget-container {
    position: fixed;
    z-index: 999999;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column-reverse; /* Makes button appear below chat */
    gap: 15px; /* Space between chat and button */
}

#ai-chat-widget-container.ai-chat-widget-bottom-right {
    bottom: 20px;
    right: 20px;
}

#ai-chat-widget-container.ai-chat-widget-bottom-left {
    bottom: 20px;
    left: 20px;
}

#ai-chat-widget-container.ai-chat-widget-top-right {
    top: 20px;
    right: 20px;
}

#ai-chat-widget-container.ai-chat-widget-top-left {
    top: 20px;
    left: 20px;
}

#ai-chat-widget-button {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-self: flex-start; /* Aligns button to left */
}

#ai-chat-widget-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#ai-chat-widget {
    width: 350px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background: white;
    display: none; /* Hidden by default */
    flex-direction: column;
}

.ai-chat-widget-header {
    background: #3a7bd5;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-widget-header h3 {
    margin: 0;
    font-size: 16px;
}

.ai-chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ai-chat-widget-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.ai-chat-widget-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: white;
}

.ai-chat-widget-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.ai-chat-widget-input button {
    padding: 10px 15px;
    background: #3a7bd5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ai-chat-widget-input button:hover {
    background: #2c5fb3;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}

.user-message {
    background: #3a7bd5;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-message {
    background: #e9e9e9;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}