﻿/* --- Modal Overlay --- */
.ai-chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}

/* --- Modal Container --- */
.ai-chat-modal {
    width: 75%;
    height: 85%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- Chat Header --- */
.ai-chat-modal-header {
    padding: 15px 20px;
    background: #03396c;
    color: #fff;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

/* --- Chat Body --- */
.ai-chat-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f8f8;
}

/* --- Chat Footer --- */
.ai-chat-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
}

.ai-chat-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.ai-chat-send {
    background: #03396c;
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-bubble.ai {
    background-color: #3D73A6;
    color: white;
    padding: 10px;
    margin: 5px 0px;
    border-radius: 6px;
    text-align: left;
}
.chat-bubble.ai p { color:#fff; }
.chat-bubble.ai div a { color: #7ef9ff; text-decoration:none; font-weight:normal; }
.chat-bubble.ai div a:hover { color: #7ef9ff; text-decoration:underline; font-weight: bold; }
.chat-bubble.user {
    padding: 10px;
    margin: 5px 0px;
    background: #e6f2ff;
    border-radius: 6px;
    text-align: left;
    padding-left: 30px;
}
.chat-bubble.ai, .why { color: white; margin-bottom:10px; }
.chat-bubble.ai .product-result .btn { background-color: #e6f2ff; color:#3D73A6; text-decoration:none; margin-bottom:5px; margin-top:5px; height:35px; display:inline-flex; border:0px; }
.chip { margin-right:25px; }
/* --- Chat Trigger Button --- */
/*#chat-open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #03396c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
}
*/
@media (max-width: 768px) {
    .ai-chat-modal {
        width: 95%;
        height: 90%;
    }
}