.chat-notification-badge {
    animation: notification-pulse 2s infinite;
    box-shadow: 0 0 0 rgba(255, 68, 68, 0.4);
    transition: all 0.3s ease;
}

@keyframes notification-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}




/* Email Blocker Styles */
.email-blocker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 30px 20px;
    max-width: 100%;
    margin: auto;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.email-blocker-header {
    margin-bottom: 20px;
}

.email-blocker-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.email-blocker h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.email-blocker p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.email-blocker input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.email-blocker input[type="email"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
    outline: none;
}

.email-blocker button {
    background-color: #0073aa;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

.email-blocker button:hover {
    background-color: #005177;
    transform: translateY(-2px);
}

.email-blocker-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #888888;
}

/* Accessibility: Hidden screen-reader label */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide chatbot until email is provided */
#mxchat-chatbot-wrapper {
    display: none;
}




.chatbot-title-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.wp-admin .mxchat-search-results,
.wp-content .mxchat-search-results,
.site-content .mxchat-search-results,
.mxchat-search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0;
    font-size: 14px !important;
}

.mxchat-search-intro {
    font-size: 16px !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
}

.mxchat-search-item {
    padding: 15px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.mxchat-search-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.bot-message .chat-heading {
color: inherit;
}

div.bot-message h1.chat-heading {
    font-size: 24px;
}

div.bot-message h2.chat-heading {
    font-size: 20px;
}

div.bot-message h3.chat-heading {
    font-size: 18px;
}

div.bot-message h4.chat-heading {
    font-size: 16px;
}

div.bot-message h5.chat-heading {
    font-size: 12px;
}


.mxchat-site-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

.mxchat-site-url {
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1 !important;
}

.mxchat-search-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.mxchat-search-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
}

.mxchat-search-title a {
    text-decoration: none !important;
    color: #000 !important;
}

.mxchat-search-title a:hover {
    text-decoration: underline !important;
}

.mxchat-search-thumbnail {
    max-width: 200px !important;
    margin: 10px 0 !important;
}

.mxchat-search-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
}

.mxchat-search-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media screen and (max-width: 782px) {
    .mxchat-search-results {
        gap: 15px !important;
    }

    .mxchat-search-intro {
        font-size: 15px !important;
    }

    .mxchat-search-title {
        font-size: 15px !important;
    }

    .mxchat-search-description {
        font-size: 13px !important;
    }
}











.active-pdf-container {
    display: inline-flex;
    align-items: center;
    max-width: 200px;
    margin: 0px;
    padding: 0px;
    line-height: 13px;
}

.active-pdf-name {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-pdf-btn, .toolbar-perplexity {
    background: 0 0;
    border: none;
    padding: 2px;
    margin-left: 4px;
    cursor: pointer;
    transition: opacity .2s;
    line-height: 13px;
}

.remove-pdf-btn:hover, .toolbar-perplexity:hover {
    opacity: 1;
    background: none;
}




#mxchat-chatbot .chat-toolbar {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-top: 1px solid #e5e5e5;
    background: none;
    align-items: end;
}

#mxchat-chatbot .toolbar-btn {
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin: 0;
    min-width: 0;
    box-shadow: none;
}

#mxchat-chatbot .toolbar-btn svg {
    width: 100%;
    height: 100%;
}

#mxchat-chatbot .toolbar-btn:hover {
    opacity: 1;
    background: none;
    border: none;
    box-shadow: none;
}

#mxchat-chatbot .toolbar-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: none;
    border: none;
}

/* Add this to your plugin's CSS */
.toolbar-btn.active {
    background-color: rgba(120, 115, 245, 0.2);
    box-shadow: 0 0 0 2px rgba(120, 115, 245, 0.4);
}


.system-message {
    padding: 8px 12px;
    margin: 8px 0;
    background-color: rgba(120, 115, 245, 0.1);
    border-radius: 8px;
    color: #555;
    font-style: italic;
    font-size: 14px;
    text-align: center;
}

#mxchat-chatbot .spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

#mxchat-chatbot .spinner circle {
    stroke: #212121;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}




.mxchat-code-block-container {
    position: relative;
    margin: 20px 0;
    font-family: monospace;
}

.chatbot-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.chatbot-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}


.chat-mode-indicator {
    font-size: 12px;
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

#mxchat-chatbot #chat-container #chat-box .agent-message {
    text-align: left;
    float: left;
    clear: both;
    border: 1px solid rgba(226, 232, 255, .2);
    border-radius: 0 18px 18px;
    background: #212121;
    color: #fff;
    overflow-x: hidden;
    margin-bottom: 15px;
    padding: 10px;
    display: inline-block;
    max-width: 85%;
    font-size: 14px;
    line-height: 24px;
    box-shadow: -2px 2px rgba(250, 115, 230, 0.6), -4px 4px rgba(120, 115, 245, 0.6);
}

.mxchat-code-block {
    background-color: #212121;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap; /* Maintain formatting */
    overflow: auto; /* Enable scrolling for long content */
    font-family: monospace;
}

.mxchat-code-block code {
    display: block;
    white-space: pre-wrap;
}

/* Copy button styling */
.mxchat-copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Ensure the button is on top */
}

.mxchat-copy-button:hover {
    background-color: #005177;
    transform: translateY(-1px);
}

.mxchat-copy-button:active {
    transform: translateY(1px);
}

.mxchat-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mxchat-image-item {
    text-align: center;
    overflow: hidden;
    word-wrap: break-word;
}

.mxchat-image-title {
    display: block;
    font-size: 14px;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mxchat-image-link {
    text-decoration: none;
}

.mxchat-image-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
}

.mxchat-image-thumbnail:hover {
    transform: scale(1.05);
}
.mxchat-generated-image {
    max-width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px;
}


/* MxChat Product Card Styling */
.mxchat-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    background-color: inherit;
}

.mxchat-product-card img.mxchat-product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
    border-radius: 4px;
}

.mxchat-product-card h3.mxchat-product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
    color: inherit;
}

.mxchat-product-card .mxchat-product-price {
    color: inherit;
    font-weight: bold;
    margin-bottom: 5px;
}

.mxchat-product-card .mxchat-product-description {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    color: inherit;
}

.mxchat-product-card .mxchat-add-to-cart-button {
    background-color: #212121;
    color: #fff;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.mxchat-product-card .mxchat-add-to-cart-button:hover {
    background-color: #212121;
}





#mxchat-popular-questions {
    padding: 10px;
}

.mxchat-popular-questions-title {
    font-size: 14px;
    line-height: 24px;
    font-weight: bold;
    color: #212121;
    margin-bottom: 10px;
}

.mxchat-popular-questions-container {
    position: relative; /* Make it the parent for positioning */
    display: flex;
    flex-direction: column;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #212121 #f1f1f1; /* Thumb and track colors */
}


/* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
.mxchat-popular-questions-container::-webkit-scrollbar {
    width: 8px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    border-radius: 4px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
}

/* For Firefox */
.mxchat-popular-questions-container {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #212121 #f1f1f1; /* Thumb color and track color */
}

/* For Edge and other modern browsers */
.mxchat-popular-questions-container {
    -ms-overflow-style: none; /* Removes the default scrollbars for Edge */
    scrollbar-gutter: stable; /* Prevent layout shifting */
}

/* For a more uniform cross-browser look */
.mxchat-popular-questions-container {
    overflow: auto;
    overscroll-behavior: contain;
}

.mxchat-popular-question {
    padding: 12px 20px;
    background-color: #f5f5f5; /* Darker background for better contrast */
    border: 1px solid #bbb; /* Darker border for better visibility */
    border-radius: 8px;
    color: #212121;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
    text-align: initial;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.mxchat-popular-question:hover {
    background-color: #eaeaea; /* Slightly darker on hover */
    border-color: #999; /* Darker border on hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
    color: #212121;
}

.mxchat-popular-question:focus {
    outline: none;
    background-color: #e0e0e0; /* Darker background on focus */
    border-color: #777; /* More prominent focus border */
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5); /* Subtle focus ring */
    color: #212121;
}

.mxchat-popular-question:active {
    background-color: #d8d8d8; /* Darker pressed background */
    border-color: #666; /* Darker border when pressed */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly darker pressed effect */
    color: #212121;
}


#widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 {
    padding: 10px;
}

#widget_icon_10 {
    fill: #fff;
}

.invisible {
    display: none;
    opacity: 0;
    pointer-events: none;
}

#mxchat-chatbot {
    background: #fff;
}

#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice {
    font-size: 12px;
    margin: 0;
    color: #71717a;
}

#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a {
    color: #0073aa; /* You can specify the color for the link */
    text-decoration: underline;
    font-size: 12px;
}

#mxchat-chatbot #chat-container #input-container #send-button, .copy-btn {
    transition: background-color .3s;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 10px;
}

#mxchat-chatbot {
    max-width: 800px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 500px;
    box-sizing: border-box;
    flex-grow: 1;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 0;
    font-size: 1rem;
}

#chat-box::-webkit-scrollbar {
    width: 5px;
}

#chat-box::-webkit-scrollbar-thumb {
    background-color: #212121;
    border-radius: 20px;
}

.bot-message, .user-message {
    margin-bottom: 15px;
    padding: 10px;
    display: inline-block;
    max-width: 85%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    font-size: 14px;
    line-height: 24px;
}

.user-message {
  background: #fff;
  color: #212121;
  text-align: left;
  float: right;
  clear: both;
  border-radius: 18px 0 18px 18px;
  border: 1px solid #e2e8ff;
    word-wrap: break-word;
}

#mxchat-chatbot #chat-container #chat-box .bot-message {
      float: left;
      clear: both;
      border: 1px solid rgba(226, 232, 255, .2);
      border-radius: 0 18px 18px;
      background: #212121;
      color: #fff;
      overflow-x: hidden;
}

#mxchat-chatbot-wrapper {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#mxchat-chatbot #chat-container #input-container {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
}

#mxchat-chatbot #chat-container #input-container #chat-input {
    flex-grow: 1;
    color: #212121;
    line-height: 24px;
    background: 0 0;
    margin-bottom: 0px;
    width: 100%;
    min-height: 20px;
    max-height: 65px;
    resize: none;
    overflow-y: auto;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0.4em 0.5em;
    outline: none;
}

/* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
#chat-input::-webkit-scrollbar {
    width: 8px; /* Set the scrollbar width */
}

#chat-input::-webkit-scrollbar-track {
    background: #f1f1f1; /* Scrollbar track background */
    border-radius: 4px; /* Round the corners */
}

#chat-input::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient scrollbar thumb */
    border-radius: 4px; /* Round the corners */
}

#chat-input::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8); /* Hover effect */
}

/* Optional: Ensure consistent styling for other modern browsers using scrollbars */
#chat-input {
    scrollbar-width: thin; /* For Firefox: sets scrollbar width to thin */
    scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1; /* For Firefox: color for thumb and track */
}


#mxchat-chatbot #chat-container #input-container #send-button {
    position:absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 0 0!important;
    padding: 5px;
    margin: 0px 0px 0px 0px;
}

#mxchat-chatbot #chat-container #input-container #send-button .fa-paper-plane {
    font-size: 1.3rem;
}

#mxchat-chatbot #chat-container #input-container #send-button svg {
    width: 25px;
    height: 25px;
    pointer-events: none; /* Add this to prevent touch event issues */
}

#send-button:hover, .copy-btn:hover {
    opacity: .8;
}

#mxchat-chatbot:after {
    content: "";
    display: table;
    clear: both;
}

pre {
    background-color: #000;
    border: 1px solid #ddd;
    border-radius: 20px;
    border-left: 3px solid #9e7aff;
    color: #fff;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}

.copy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #9e7aff;
}

#floating-chatbot {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 375px;
    height: 625px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    z-index: 100000;
    transition: transform .3s ease-in-out, opacity .3s ease-in-out;
    transform: translateY(20%);
    opacity: 0;
    pointer-events: none;
}

#floating-chatbot.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#floating-chatbot-button.hidden, .exit-chat span {
    display: none!important;
}

.visible {
    display: flex;
}

#floating-chatbot-button {
    transition: opacity 1s ease-in-out;
    font-size: 1.25rem;
    position: fixed;
    bottom: 30px;
    right: 25px;
    background-color: #212121;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .3s;
    z-index: 100000;
        display: flex;
}

#floating-chatbot-button img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

#mxchat-chatbot-wrapper.active+#floating-chatbot-button {
    bottom: 530px;
    width: 100%;
}

.chatbot-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background: 0 0;
    cursor: pointer;
    font-size: 20px;
    color: #f0f0f1;
}

.chatbot-top-bar {
    background: #212121;
}

#mxchat-chatbot-wrapper .chatbot-top-bar {
    cursor: pointer;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

#mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title {
    font-size: 16px;
    line-height: 25px;
    padding: 10px;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: bold;
}

#mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title span {
    font-weight: 700;
}

#mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat {
    background: 0 0;
    border: none;
    opacity: .8;
    padding: 0px;
}

.exit-chat {
    border: none;
    background: 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-left: auto;
}

.exit-chat svg {
    fill: white;
    width: 24px;
    height: 24px;
    transform: rotate(270deg);
}

#mxchat-chatbot-wrapper .chatbot-footer {
    text-align: center;
    padding-bottom: 10px;
    font-size: .85em;
}

#mxchat-chatbot-wrapper .chatbot-footer .powered-by {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

#mxchat-chatbot-wrapper .chatbot-footer .powered-by span {
    text-decoration: underline;
}

#chat-box .bot-message.temporary-message .thinking-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 20px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

#chat-box .bot-message.temporary-message .thinking-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    gap: 5px;
    flex-shrink: 0;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot {
    height: 6px;
    width: 6px;
    margin: 0 3px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    position: static;
    right: auto;
    top: auto;
    text-align: initial;
    color: transparent;
    font-size: 0;
    font-weight: normal;
    line-height: normal;
    font-style: normal;
    animation: bounce 1.4s ease-in-out infinite both;
    -webkit-animation: bounce 1.4s ease-in-out infinite both;
    -moz-animation: bounce 1.4s ease-in-out infinite both;
    -o-animation: bounce 1.4s ease-in-out infinite both;
    vertical-align: middle;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot:first-child {
    animation-delay: -0.32s;
    -webkit-animation-delay: -0.32s;
    -moz-animation-delay: -0.32s;
    -o-animation-delay: -0.32s;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
    -webkit-animation-delay: -0.16s;
    -moz-animation-delay: -0.16s;
    -o-animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 100%, 80% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
    }
    40% {
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        -moz-transform: scale(1.5);
        -o-transform: scale(1.5);
    }
}


#pre-chat-message {
    position: fixed;
    bottom: 85px;
    right: 30px;
    background-color: #fff;
    color: #212121;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.3);
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
    max-width: 325px;
    font-size: 14px;
    display: none;
    background: #fff;
    margin-bottom: 10px;
}

#pre-chat-message .close-pre-chat-message {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ccc;
    border: none;
    color: #212121;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    display: flex; /* Show the close button on hover */
}



@media (max-width: 550px) {

    #pre-chat-message {
        bottom: 70px; /* Adjust this value as needed */
        right: 15px; /* Adjust this value as needed */
    }

    #chat-input {
        width: calc(100% - 70px);
    }
    .bot-message, .user-message {
        padding: 10px;
        max-width: 95%;
    }
    #floating-chatbot-button {
        bottom: 15px;
        right: 10px;
    }
    #floating-chatbot {
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100);
        margin: 0;
        padding: 0;
        position: fixed;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
    #mxchat-chatbot-wrapper .chatbot-top-bar {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}


.bot-message p {
    margin: 0 0 1em 0;
}

.bot-message p:last-child {
    margin-bottom: 0;
}

.bot-message {
    white-space: pre-line;
}



/* Simplified styles for Perplexity status indicator */
#active-perplexity-container {
    display: flex;
    align-items: center;
    margin-left: 8px;
    font-size: 12px;
}

#perplexity-search-btn {
    display: none;
}

#perplexity-search-btn.active {
    opacity: 1;
}


