
.ai-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-chatbot-toggle-button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.ai-chatbot-toggle-button:hover {
    transform: scale(1.1);
}

.ai-chatbot-window {
    width: 370px;
    height: 550px;
    background-color: #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 10px;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

.ai-chatbot-window.is-open {
    transform: translateY(0);
    opacity: 1;
}

.ai-chatbot-header {
    background-color: #005A8C;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-chatbot-close-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}


.ai-chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chatbot-message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    white-space: pre-wrap;
    line-height: 1.4;
}

.ai-chatbot-message.user {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
}

.ai-chatbot-message.bot {
    background-color: #ffffff;
    color: #333;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.ai-chatbot-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.ai-chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 18px;
    margin-right: 10px;
    font-size: 14px;
}

.ai-chatbot-input-area input:focus {
    outline: none;
    border-color: #0073aa;
}

.ai-chatbot-input-area button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.ai-chatbot-input-area button:hover {
    background-color: #005A8C;
}

.ai-chatbot-input-area button:disabled {
    background-color: #a0a5aa;
}

.typing-indicator {
    font-style: italic;
    color: #666;
    padding: 10px 20px;
}

.ai-chatbot-products-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-chatbot-product-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    gap: 15px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-chatbot-product-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.ai-chatbot-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-chatbot-product-info h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.ai-chatbot-product-info p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
}

.ai-chatbot-product-info a {
    font-size: 14px;
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.ai-chatbot-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: flex-start;
    width: 100%;
    margin-top: 5px;
}

.ai-chatbot-option-button {
    background-color: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
    border-radius: 20px;
    padding: 12px 18px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.ai-chatbot-option-button:hover {
    background-color: #0073aa;
    color: #fff;
}
