.listing-inquiry__form {
    display: none !important;
}


#gemini-chatbot {
    width: 300px;
    height: 400px;
    border: 2px solid #007bff;
    border-radius: 10px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    font-family: Arial, sans-serif;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#chatbox {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.user-message {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 0;
    text-align: right;
}

.bot-message {
    background: #eee;
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 0;
    text-align: left;
}

.error {
    color: red;
    font-style: italic;
}

#chat-input {
    width: calc(100% - 80px);
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#send-btn {
    width: 70px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

#send-btn:hover {
    background: #0056b3;
}
#chatbot-container {
    display: none;
    /* Initially hidden */
    position: fixed;
    bottom: 100px;
    /* Adjusted position slightly above the button */
    right: 20px;
    width: 400px;
    max-width: 90%;
    /* Ensure it fits on smaller screens */
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    z-index: 9998;
    /* Below the launcher button, but above most content */
    box-sizing: border-box;
    /* Include padding in width */
}

#chat-box {
    font-size: 12px !important;
    height: 360px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f4f6f8;
    border-radius: 8px;
    margin-bottom: 10px;
    /* Add space before input */
}

.chat-message {
    font-size: 13px !important;
    margin: 8px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    clear: both;
    /* Ensure messages don't overlap floats */
    word-wrap: break-word;
    /* Prevent long words from overflowing */
}

.chat-user {
    background-color: #5DAAD5;
    color: white;
    float: right;
    text-align: right;
    margin-left: auto;
    /* Push to right */
    margin-right: 0;
}

.chat-ai {
    background-color: #e2e3e5;
    color: #333;
    float: left;
    text-align: left;
    margin-right: auto;
    /* Push to left */
    margin-left: 0;
}

#user-input {
    width: calc(100% - 22px);
    /* Account for padding */
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
    box-sizing: border-box;
}

#send-btn {
    /* Target the specific button ID */
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    background-color: #5DAAD5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

#send-btn:hover {
    /* Target the specific button ID */
    background-color: #4F8EB3;
}

/* Removed redundant .chatbot-modal styles */
.listing-inquiry__form-modal {
    display: none !important;
}

/* Make inventory listings more readable */
.chat-inventory br {
    display: block;
    content: "";
    margin-bottom: 8px;
}
/* Ensure this is in your chatbot.css file */
.typing-container {
    display: flex;
    align-items: center;
    /* Removed fixed height and padding as message height will vary */
    gap: 5px; /* Add gap between text and dots */
}

.typing-dots {
    display: flex;
    gap: 4px; /* Spacing between dots */
    /* No height needed, dots define it */
    margin-left: 3px; /* Small space after the text */
    align-items: center; /* Vertically align dots if needed */
}

.typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #5d5d5d; /* Slightly adjusted color, change as needed */
    animation: typing-animation 1.4s infinite ease-in-out both; /* Added 'both' */
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-4px); /* Slightly less jump */
        opacity: 1;
    }
}
/* Chat Container */
#chatbot-container {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    max-width: 90%;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    z-index: 9998;
    box-sizing: border-box;
}

/* Chat Box */
#chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f4f6f8;
    border-radius: 8px;
    margin-bottom: 10px;
}


/* Chat Messages */
.chat-message {
    margin: 8px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    clear: both;
    word-wrap: break-word;
}

.chat-user {
    background-color: #5DAAD5;
    color: white;
    float: right;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.chat-ai {
    background-color: #e2e3e5;
    color: #333;
    float: left;
    text-align: left;
    margin-right: auto;
    margin-left: 0;
}
/* Launcher Button */
#chat-launcher-button {
    position: fixed;
    bottom: 30px;
    right: 30px !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #58aad4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-launcher-button img {
    width: 60%;
    height: auto;
}
/* Input Container */
#user-input-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

/* Input Field */
#user-input {
    width: 100%;
    padding: 12px 50px 12px 15px; /* Right padding for button space */
    border: 1px solid #ddd;
    border-radius: 25px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Send Button */
#send-btn {
    position: absolute;
    right: 6px; /* Adjusted from 5px */
    top: 7px; /* Changed from translateY(-50%) for better visual alignment */
    background-color: #58aad4;
    border: none;
    border-radius: 50%;
    width: 40px; /* Slightly smaller */
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

#send-btn:hover {
    background-color: #3d8cb3;
}

#send-btn svg {
    width: 18px; /* Slightly smaller */
    height: 18px;
    fill: white;
    margin-left: 2px; /* Adjusts the arrow position within circle */
}
/* Chatbot Header */
#chatbot-container h3 {
    background-color: #58aad4; /* Galati's dark blue color */
    color: white;
    padding: 12px 15px;
    margin: -15px -15px 15px -15px; /* Negative margins to stretch to container edges */
    border-radius: 12px 12px 0 0; /* Rounded top corners only */
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

/* Optional: Add the "Powered by AI" subtitle */
#chatbot-container h3::after {
    content: "Powered by AI";
    display: block;
    font-size: 11px;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 3px;
}
.chat-options-button {
    background-color: #58aad4;
    /* Indigo */
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    /* 6px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
    margin: 0.25rem;
    /* Add some margin */
    border: none;
    cursor: pointer;
}

.chat-message .chat-options-button:hover {
    background-color: #58aad4;
    /* Darker Indigo */
}

.chat-message-options-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow buttons to wrap */
    justify-content: flex-start;
    /* Align buttons to the start */
    margin-top: 0.5rem;
}