/* Oiyaa FAB Chatbot Styles - Reference Design with Oiyaa Colors */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Oiyaa Brand Colors */
    --oiyaa-orange: #eb4d2b;
    --oiyaa-blue: #36b7bb;
    --oiyaa-white: #ffffff;
    --oiyaa-light-grey: #eaeaea;
    --oiyaa-text-dark: #4d494b;
    --oiyaa-text-light: #6c757d;
}

/* Floating Action Button (FAB) - Oiyaa Orange */
.oiyaa_bot_fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
    font-size: 24px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(235, 77, 43, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* FAB when user scrolls to bottom */
.oiyaa_bot_fab.at-bottom {
    bottom: 100px;
}

.oiyaa_bot_fab:hover {
    background-color: #d63916;
    transform: scale(1.05);
    box-shadow: 0px 6px 16px rgba(235, 77, 43, 0.4);
}

.oiyaa_bot_fab i {
    font-size: 30px;
}

/* Chat container styling */
.oiyaa_bot_container {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 450px;
    height: 575px;
    min-height: 575px;
    min-width: 450px;
    background-color: var(--oiyaa-white);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    font-family: "Montserrat", sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Chat container when FAB is at bottom */
.oiyaa_bot_container.at-bottom {
    bottom: 190px;
}

.oiyaa_bot_container.hidden {
    display: none !important;
}

.oiyaa_bot_container.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Chat header - Oiyaa Orange */
.oiyaa_bot_header {
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

/* Header content for chatbot.js */
.oiyaa_bot_header_content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oiyaa_bot_logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.oiyaa_bot_header_info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--oiyaa-white);
}

.oiyaa_bot_status {
    font-size: 12px;
    opacity: 0.9;
    color: var(--oiyaa-white);
}

/* Header controls */
.oiyaa_bot_header_controls {
    display: flex;
    align-items: center;
}

.oiyaa_bot_control_icon {
    font-size: 20px;
    color: var(--oiyaa-white);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.oiyaa_bot_control_icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Close button */
.oiyaa_bot_close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.2s ease;
}

.oiyaa_bot_close:hover {
    opacity: 0.8;
}

/* Chat body */
.oiyaa_bot_body {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto; /* Allows scrolling for long messages */
    background-color: #fafbfc;
    max-height: calc(100% - 180px); /* Adjusted to leave space for header, quick actions and input */
    scroll-behavior: smooth; /* Smooth scrolling for better UX */
    overscroll-behavior: contain; /* Prevents page scrolling when chat is scrolled to the bottom */
}

/* Hide the scrollbar */
.oiyaa_bot_body::-webkit-scrollbar {
    width: 4px;
}

.oiyaa_bot_body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.oiyaa_bot_body::-webkit-scrollbar-thumb {
    background: var(--oiyaa-orange);
    border-radius: 2px;
}

.oiyaa_bot_body::-webkit-scrollbar-thumb:hover {
    background: #d63916;
}

/* Common chat message style */
.oiyaa_bot_chat_message {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    margin-bottom: 12px;
    max-width: 85%;
    word-wrap: break-word;
    position: relative;
    gap: 10px;
}

/* Message bubble styling */
.oiyaa_bot_chat_message span {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

/* Bot message (aligned left) */
.oiyaa_bot_chat_message.bot {
    justify-content: flex-start;
    align-self: flex-start;
}

.oiyaa_bot_chat_message.bot span {
    background-color: var(--oiyaa-light-grey);
    color: var(--oiyaa-text-dark);
    border-radius: 16px 16px 16px 4px;
}

/* User message (aligned right) */
.oiyaa_bot_chat_message.user {
    justify-content: flex-end;
    align-self: flex-end;
    margin-left: auto;
    flex-direction: row-reverse;
}

.oiyaa_bot_chat_message.user span {
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
    border-radius: 16px 16px 4px 16px;
}

/* Avatar styles */
.oiyaa_bot_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oiyaa-light-grey);
    color: var(--oiyaa-text-dark);
    font-size: 20px;
    flex-shrink: 0;
}

/* Bot avatar (on the left side of message) */
.oiyaa_bot_chat_message.bot .oiyaa_bot_avatar {
    order: 0; /* Avatar appears before the message */
}

/* User avatar (on the right side of message) */
.oiyaa_bot_chat_message.user .oiyaa_bot_avatar {
    order: 1; /* Avatar appears after the message */
}

/* Chat footer (input and send button) */
.oiyaa_bot_footer {
    display: flex;
    align-items: center;
    padding: 14px 16px 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: var(--oiyaa-white);
    border-radius: 0 0 16px 16px;
    gap: 12px;
}

.oiyaa_bot_footer input {
    flex-grow: 1;
    border: none;
    padding: 12px 16px;
    border-radius: 24px;
    background-color: #f5f5f5;
    outline: none;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    color: var(--oiyaa-text-dark);
    transition: background-color 0.3s ease;
}

.oiyaa_bot_footer input:focus {
    background-color: #e9ecef;
}

.oiyaa_bot_footer input::placeholder {
    color: var(--oiyaa-text-light);
}

.oiyaa_bot_footer button {
    padding: 12px 16px;
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    min-width: 60px;
}

.oiyaa_bot_footer button:hover {
    background-color: #d63916;
    transform: translateY(-1px);
}

.oiyaa_bot_footer button i {
    font-size: 16px;
}

/* Message styling */
.oiyaa_bot_message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.oiyaa_bot_message.oiyaa_bot_message_user {
    flex-direction: row-reverse;
}

.oiyaa_bot_message.oiyaa_bot_message_bot {
    flex-direction: row;
}

.oiyaa_bot_message_avatar_container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.oiyaa_bot_message_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oiyaa-light-grey);
    color: var(--oiyaa-text-dark);
    font-size: 20px;
}

.oiyaa_bot_message.oiyaa_bot_message_bot .oiyaa_bot_message_avatar {
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
}

.oiyaa_bot_message_content {
    max-width: 75%;
    word-wrap: break-word;
}

.oiyaa_bot_message.oiyaa_bot_message_user .oiyaa_bot_message_content {
    background-color: var(--oiyaa-orange);
    color: var(--oiyaa-white);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
}

.oiyaa_bot_message.oiyaa_bot_message_bot .oiyaa_bot_message_content {
    background-color: var(--oiyaa-light-grey);
    color: var(--oiyaa-text-dark);
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
}

.oiyaa_bot_message_text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: pre-wrap;
}

.oiyaa_bot_message_time {
    font-size: 11px;
    opacity: 0.7;
    font-weight: bold;
    display: block;
}

.oiyaa_bot_message.oiyaa_bot_message_user .oiyaa_bot_message_time {
    color: var(--oiyaa-white);
    opacity: 0.8;
}

.oiyaa_bot_message.oiyaa_bot_message_bot .oiyaa_bot_message_time {
    color: var(--oiyaa-text-dark);
    opacity: 0.7;
}

/* Typing indicator */
.oiyaa_bot_typing_indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.oiyaa_bot_typing_text {
    font-size: 13px;
    color: var(--oiyaa-text-light);
    display: flex;
    align-items: center;
    font-weight: 900;
    gap: 5px;
}

.oiyaa_bot_typing_dots {
    display: flex;
    gap: 2px;
}

.oiyaa_bot_typing_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--oiyaa-orange);
    animation: oiyaa_bot_typingDots 1.5s infinite ease-in-out;
}

.oiyaa_bot_typing_dot:nth-child(1) {
    animation-delay: 0ms;
}

.oiyaa_bot_typing_dot:nth-child(2) {
    animation-delay: 300ms;
}

.oiyaa_bot_typing_dot:nth-child(3) {
    animation-delay: 600ms;
}

@keyframes oiyaa_bot_typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Welcome message styling */
.oiyaa_bot_welcome_container {
    padding: 16px;
    text-align: center;
    font-weight: bold;
    color: #000000;
    font-size: 15px;
    border-bottom: 1px solid var(--oiyaa-light-grey);
    margin-bottom: 16px;
}

/* Quick actions */
.oiyaa_bot_quick_actions {
    padding: 12px 16px;
    background-color: var(--oiyaa-white);
    border-top: 1px solid var(--oiyaa-light-grey);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oiyaa_bot_quick_btn {
    background-color: var(--oiyaa-light-grey);
    color: var(--oiyaa-text-dark);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.oiyaa_bot_quick_btn:hover {
    background-color: var(--oiyaa-blue);
    color: var(--oiyaa-white);
    transform: translateY(-1px);
}

.oiyaa_bot_quick_btn i {
    font-size: 10px;
}

/* Input container updates */
.oiyaa_bot_input_container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.oiyaa_bot_input_container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--oiyaa-light-grey);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 42px;
    box-sizing: border-box;
}

.oiyaa_bot_input_container input:focus {
    border-color: var(--oiyaa-orange);
    box-shadow: 0 1px 4px rgba(235, 77, 43, 0.1);
}


/* Animation for smooth appearance */
.oiyaa_bot_container:not(.hidden) {
    animation: oiyaa_bot_slideUp 0.3s ease-out;
}

/* Adding specificity for message avatars */
.oiyaa_bot_message_avatar i {
    font-size: 20px;
}

/* Ensure message text is properly styled */
.oiyaa_bot_message.oiyaa_bot_message_user .oiyaa_bot_message_text {
    color: var(--oiyaa-white);
}

.oiyaa_bot_message.oiyaa_bot_message_bot .oiyaa_bot_message_text {
    color: var(--oiyaa-text-dark);
}

@keyframes oiyaa_bot_slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media screen and (max-width: 767px) and (pointer: fine) {
    /* Small desktop/laptop screens - keep normal chat window */
    .oiyaa_bot_container {
        width: 380px;
        height: 500px;
        min-height: 500px;
        min-width: 380px;
        bottom: 90px;
        right: 15px;
    }

    .oiyaa_bot_container.at-bottom {
        bottom: 150px;
    }

    .oiyaa_bot_fab {
        bottom: 20px;
        right: 15px;
        width: 65px;
        height: 65px;
    }

    .oiyaa_bot_fab.at-bottom {
        bottom: 80px;
    }
}

@media screen and (max-width: 767px) and (pointer: coarse) {
    /* Only apply fullscreen on actual mobile devices with touch */
    .oiyaa_bot_container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: auto;
        min-width: auto;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
        z-index: 9999;
    }

    .oiyaa_bot_header {
        border-radius: 0;
        padding: 12px 16px;
    }

    .oiyaa_bot_footer {
        border-radius: 0;
        padding: 10px 12px 12px;
    }

    .oiyaa_bot_body {
        max-height: calc(100% - 160px);
    }

    .oiyaa_bot_message_content {
        max-width: 85%;
    }

    .oiyaa_bot_quick_actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .oiyaa_bot_quick_btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .oiyaa_bot_fab {
        bottom: 15px;
        right: 15px;
    }

    .oiyaa_bot_fab.at-bottom {
        bottom: 60px;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .oiyaa_bot_header_info h4 {
        font-size: 14px;
    }
    
    .oiyaa_bot_status {
        font-size: 10px;
    }
    
    .oiyaa_bot_logo {
        width: 28px;
        height: 28px;
    }
    
    .oiyaa_bot_message_content {
        max-width: 90%;
    }
    
    .oiyaa_bot_message_text {
        font-size: 13px;
    }
    
    .oiyaa_bot_footer button {
        min-width: 50px;
        padding: 10px 14px;
    }
}

/* Landscape mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .oiyaa_bot_container {
        height: 100%;
    }
    
    .oiyaa_bot_header {
        padding: 8px 12px;
    }
    
    .oiyaa_bot_quick_actions {
        padding: 8px;
    }
    
    .oiyaa_bot_footer {
        padding: 8px 12px;
    }
    
    .oiyaa_bot_body {
        max-height: calc(100% - 130px);
        padding: 12px;
    }
}

/* Animation adjustments for mobile */
@media screen and (max-width: 767px) {
    @keyframes oiyaa_bot_slideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* For fullscreen mobile view, use slide in from bottom */
    .oiyaa_bot_container.show {
        animation: oiyaa_bot_slideUp 0.4s ease-out;
    }
}

/* Touch Improvements for Mobile */
@media (pointer: coarse) {
    /* Larger touch targets for better usability on touch devices */
    .oiyaa_bot_quick_btn {
        padding: 10px 14px;
        min-height: 40px;
    }
    
    .oiyaa_bot_control_icon {
        padding: 8px;
        font-size: 22px;
    }
    
    .oiyaa_bot_footer button {
        min-height: 44px;
        border-radius: 22px;
    }
    
    .oiyaa_bot_input_container input {
        min-height: 44px;
        border-radius: 22px;
    }
    
    /* Better scrolling experience */
    .oiyaa_bot_body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on input focus on iOS */
    .oiyaa_bot_input_container input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Ensure the fixed positioning works well on iOS */
    .oiyaa_bot_container.show {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }
}

/* Improved Mobile Visual Adjustments */
@media screen and (max-width: 767px) {
    /* Fullscreen mode styling */
    body.oiyaa_bot_active {
        overflow: hidden; /* Prevent scrolling of page behind chat */
    }
    
    /* Adjust spacing for message bubbles on small screens */
    .oiyaa_bot_message {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    /* Reduce avatar size slightly on mobile */
    .oiyaa_bot_message_avatar_container,
    .oiyaa_bot_message_avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Ensure padding in message content is appropriate for mobile */
    .oiyaa_bot_message.oiyaa_bot_message_user .oiyaa_bot_message_content,
    .oiyaa_bot_message.oiyaa_bot_message_bot .oiyaa_bot_message_content {
        padding: 10px 14px;
    }
    
    /* Make the FAB button slightly larger for better touch target */
    .oiyaa_bot_fab {
        width: 65px;
        height: 65px;
    }
    
    /* Ensure the welcome message is properly sized */
    .oiyaa_bot_welcome_container {
        padding: 12px;
        font-size: 14px;
    }
}

/* Markdown-like Formatting Styles */
.oiyaa_bot_message_bot .oiyaa_bot_message_text h3.oiyaa_bot_heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: var(--oiyaa-orange);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(235, 77, 43, 0.2);
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text strong {
    font-weight: 600;
    color: #333;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text ul.oiyaa_bot_list {
    margin: 8px 0;
    padding-left: 20px;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text ul.oiyaa_bot_list li {
    margin-bottom: 6px;
    position: relative;
    list-style-type: none;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text ul.oiyaa_bot_list li:before {
    content: "•";
    color: var(--oiyaa-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2em;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list {
    margin: 8px 0;
    padding-left: 28px;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list li {
    margin-bottom: 6px;
    position: relative;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text a.oiyaa_bot_link {
    color: var(--oiyaa-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.oiyaa_bot_message_bot .oiyaa_bot_message_text a.oiyaa_bot_link:hover {
    color: var(--oiyaa-orange);
    text-decoration: underline;
}

/* Make sure markdown content looks good on mobile */
@media screen and (max-width: 767px) {
    .oiyaa_bot_message_bot .oiyaa_bot_message_text h3.oiyaa_bot_heading {
        font-size: 1.1rem;
        margin: 10px 0 6px;
    }
    
    .oiyaa_bot_message_bot .oiyaa_bot_message_text ul.oiyaa_bot_list {
        padding-left: 18px;
    }
    
    .oiyaa_bot_message_bot .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list {
        padding-left: 24px;
    }
}

/* Add duplicate styles for 'assistant' class to ensure compatibility */
.oiyaa_bot_message.oiyaa_bot_message_assistant {
    margin-bottom: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 90%;
    position: relative;
    gap: 12px;
}

.oiyaa_bot_message.oiyaa_bot_message_assistant .oiyaa_bot_message_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oiyaa-blue);
    color: var(--oiyaa-white);
    font-size: 18px;
    flex-shrink: 0;
}

.oiyaa_bot_message.oiyaa_bot_message_assistant .oiyaa_bot_message_content {
    background-color: var(--oiyaa-light-grey);
    padding: 12px 16px;
    border-radius: 0 16px 16px 16px;
    position: relative;
    flex-grow: 1;
    color: var(--oiyaa-text-dark);
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    max-width: calc(100% - 50px);
}

.oiyaa_bot_message.oiyaa_bot_message_assistant .oiyaa_bot_message_time {
    font-size: 11px;
    color: var(--oiyaa-text-light);
    display: block;
    margin-top: 4px;
    text-align: right;
}

/* Markdown formatting for assistant messages */
.oiyaa_bot_message_assistant .oiyaa_bot_message_text h3.oiyaa_bot_heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: var(--oiyaa-orange);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(235, 77, 43, 0.2);
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text strong {
    font-weight: 600;
    color: #333;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text ul.oiyaa_bot_list {
    margin: 8px 0;
    padding-left: 20px;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text ul.oiyaa_bot_list li {
    margin-bottom: 6px;
    position: relative;
    list-style-type: none;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text ul.oiyaa_bot_list li:before {
    content: "•";
    color: var(--oiyaa-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2em;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list {
    margin: 8px 0;
    padding-left: 28px;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list li {
    margin-bottom: 6px;
    position: relative;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text a.oiyaa_bot_link {
    color: var(--oiyaa-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.oiyaa_bot_message_assistant .oiyaa_bot_message_text a.oiyaa_bot_link:hover {
    color: var(--oiyaa-orange);
    text-decoration: underline;
}

/* Mobile responsive adjustments for assistant messages */
@media screen and (max-width: 767px) {
    .oiyaa_bot_message_assistant .oiyaa_bot_message_text h3.oiyaa_bot_heading {
        font-size: 1.1rem;
        margin: 10px 0 6px;
    }
    
    .oiyaa_bot_message_assistant .oiyaa_bot_message_text ul.oiyaa_bot_list {
        padding-left: 18px;
    }
    
    .oiyaa_bot_message_assistant .oiyaa_bot_message_text ol.oiyaa_bot_numbered_list {
        padding-left: 24px;
    }
}

/* Ensure assistant message text is properly styled */
.oiyaa_bot_message.oiyaa_bot_message_assistant .oiyaa_bot_message_text {
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* History Loading Indicator */
.oiyaa_bot_history_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.oiyaa_bot_history_loading_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(54, 183, 187, 0.1);
    border: 1px solid var(--oiyaa-blue);
    border-radius: 12px;
    padding: 16px;
    width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oiyaa_bot_history_loading_spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.oiyaa_bot_history_loading_spinner_dot {
    width: 10px;
    height: 10px;
    background-color: var(--oiyaa-blue);
    border-radius: 50%;
    margin: 0 4px;
    animation: oiyaa_bot_history_loading_pulse 1s infinite ease-in-out;
}

.oiyaa_bot_history_loading_spinner_dot:nth-child(2) {
    animation-delay: 0.2s;
    background-color: var(--oiyaa-orange);
}

.oiyaa_bot_history_loading_spinner_dot:nth-child(3) {
    animation-delay: 0.4s;
}

.oiyaa_bot_history_loading_text {
    font-size: 14px;
    font-weight: 600;
    color: var(--oiyaa-text-dark);
    margin-top: 8px;
    text-align: center;
}

.oiyaa_bot_history_loading_subtext {
    font-size: 12px;
    color: var(--oiyaa-text-light);
    margin-top: 5px;
    text-align: center;
}

@keyframes oiyaa_bot_history_loading_pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}
