#chatbot-container .chatbot-widget:not(.open) .chatbot-window{
    height: 0;
    z-index: -1;
}
.custom-markdown-editor .CodeMirror-scroll {
    min-height: 100px !important;
}
.initial-css, .initial-css *{
    all:revert !important;
}

.fi-ta-record > .flex > button.fi-icon-btn {
    align-self: flex-start !important;
    display: block;

    svg {
        width: 36px !important;
        height: 36px !important;
    }
}

.message-content {
    all: initial;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
    zoom: 1;

    img {
        max-width: 200px !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 8px auto !important;
        display: block !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    ul {
        list-style: disc !important;
    }

    p {
        margin: 0;

        &:first-child {
            margin-top: 0;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    a {
        color: blue;
        text-decoration: underline;

        img {
            text-decoration: none;
            transition: transform 0.2s ease !important;
            cursor: pointer !important;

            &:hover {
                transform: scale(1.02) !important;
            }
        }
    }

    ul, ol {
        margin: 0;
        padding-left: 18px;
        list-style-type: disc;
    }

    li {
        padding: 0;
        margin: 0;
    }

    code {
        font-family: monospace;
        background-color: rgba(0, 0, 0, 0.1);
        padding: 2px 4px;
        border-radius: 3px;
    }

    pre {
        background-color: #f6f8fa;
        padding: 12px;
        border-radius: 4px;
        overflow-x: auto;
        margin: 10px 0;
    }
}
