:root {
    --bubble-agent-color: #FCE5BE;
}

.mistral-form {
    input, button {
        font-size: 1.125rem;

        border: none;
        outline: none;
    }

    input {
        background-color: transparent;

        width: 100%;
        height: 100%;

        font-weight: 500;
    }

    button {
        display: flex;
        align-content: center;
        padding: 16px 24px;
        font-weight: 800;

        background-color: transparent;
        color: var(--wp--preset--color--white);

        border-radius: 28px;
        cursor: pointer;

        transition: background-color .3s ease;

        @media screen and (min-width: 768px) {
            background-color: var(--wp--preset--color--primary);
            color: var(--wp--preset--color--white);
        }

        &:hover {
            @media screen and (min-width: 768px) {
                background-color: #000000;
            }
        }

        span {
            @media screen and (max-width: 767px) {
                display: none;
            }
        }

        svg {
            height: 22px;
            width: 22px;

            @media screen and (min-width: 768px) {
                display: none;
            }
        }

        @media screen and (min-width: 1024px) {
            padding: 16px 32px;
        }
    }

    input {
        &:not(:placeholder-shown) {
            + button {
                @media screen and (min-width: 768px) {
                    background-color: var(--wp--preset--color--primary);
                }
            }
        }
    }
}

mistral-input-hero {
    display: block;

    .mistral-form__wrapper {
        position: relative;

        display: flex;
        align-items: center;

        @media screen and (min-width: 768px) {
            padding-right: 0;
        }

        input {
            border: 2px solid #E7E7E7;
            background-color: #F6F6F6;

            padding-left: 24px;
            padding-right: var(--btn-width);

            height: 96px;

            border-radius: 48px;

            transition: background-color .3s ease, width .3s ease;

            @media screen and (min-width: 768px) {
                padding-left: 96px;
                padding-right: 16px;

                width: calc(100% - var(--btn-width));

                background-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="%23000000"><path d="M17 17L21 21" stroke="%238F8F8F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z" stroke="%238F8F8F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
                background-repeat: no-repeat;
                background-size: 24px 24px;
                background-position: 48px center;
            }
        }

        &.active {
            input {
                background-color: var(--wp--preset--color--white);
                width: 100%;

                @media screen and (min-width: 768px) {
                    padding-right: calc(var(--btn-width) - 32px);
                }
            }

            button {
                @media screen and (min-width: 768px) {
                    margin-right: 24px;

                    height: 56px;
                    padding: 0 32px;
                }
            }
        }

        button {
            position: absolute;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            height: 56px;

            padding: 0 24px;
            margin-right: 16px;

            background-color: var(--wp--preset--color--black);

            border-radius: 48px;

            transition: height .3s ease, padding .3s ease, margin-right .3s ease;

            @media screen and (min-width: 768px) {
                padding: 0 64px;

                height: 96px;

                margin-right: 0;
            }

            &:hover {
                background-color: var(--wp--preset--color--primary);
            }
        }

    }
}

mistral-chat {
    display: block;

    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--border-color);

    border-radius: 0 0 32px 32px;

    box-shadow: -9px 11px 38px rgba(0, 0, 0, 0.05);

    @media screen and (min-width: 768px) {
        border-radius: 50px;
    }

    ul, ol {
        padding-left: 16px;

        @media screen and (min-width: 768px) {
            padding-left: 32px;
        }
    }

    .chat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        overflow: hidden scroll;

        padding: 24px;

        .page-template-page-ai & {
            max-height: 70vh;

            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        &::-webkit-scrollbar {
            display: none;
        }

        @media screen and (min-width: 768px) {
            padding: 40px;
        }

        @media screen and (min-width: 1280px) {
            padding: 80px;
        }

        .bubble {
            position: relative;

            padding: 16px;
            margin-top: 40px;

            font-size: 1rem;
            line-height: 1.6;
            color: #2D2D2D;
            font-weight: 500;

            border-radius: 12px;

            max-width: 90%;

            transition: color .3s ease, background-color .3s ease;

            &::after {
                content: "";

                height: 48px;
                width: 48px;

                position: absolute;
                top: 8px;

                background-repeat: no-repeat;
            }

            @media screen and (min-width: 768px) {
                padding: 24px;

                max-width: 85%;
            }

            @media screen and (min-width: 1280px) {
                max-width: 75%;
            }

            &.agent {
                background-color: var(--bubble-agent-color);

                margin-left: 40px;

                @media screen and (min-width: 1280px) {
                    margin-left: 24px;
                }

                &::after {
                    left: -56px;

                    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><style>.cls-3{fill:%23fff}.cls-4{fill:none;stroke:%23373a3a;stroke-linecap:round;stroke-linejoin:round}.cls-6,.cls-7{fill:%23373a3a}</style></defs><g style="isolation:isolate"><g id="text"><circle cx="24" cy="26" r="20" style="fill:%23fcbd57"/><path d="M10.81 34.11c-.1.55.09 1.13.52 1.5 2.5 2.2 5.33 3.41 9.65 2.85 2.41-.31 4.73-1.13 6.84-2.35l4.22-2.43c-.91-2.03-2.38-3.59-3.61-6.28-.1.16-.2.31-.28.45-.63 1.09-.85 2.21-.93 3.06-3.14-.75-7.15-2.07-9.38-4.79-2.26 2.19-5.36 2.71-6.65 6.54-.15.43-.27.91-.37 1.43Z" class="cls-3"/><path d="M11.17 32.68c1.29-3.83 4.4-4.35 6.65-6.54.78-.76 1.47-1.73 1.93-3.11.31-.91.52-1.99.61-3.31-.85-.25-1.64-.98-2.09-1.91l.12-.21c.32-.55.62-.97.94-1.3-.56-2.85.86-8.78 4.41-11.92-1.41.02-2.68.25-3.62.79-5.29 3.05-3.23 7.45-3.8 8.92-.91 2.34-2.75.8-2.08 5.12.53 3.44-5.05 3.63-3.31 6.65.26.45.67.83.94 1.31 1.3 2.26-2.24 2.89-.89 5.23 0 0 .01.02.02.03.06.1.11.18.17.26Z" class="cls-7"/><path d="m18.4 17.59-.12.21c.45.93 1.25 1.66 2.09 1.91.23.07.46.1.69.1.26 0 .5-.06.71-.16.88-.39 1.33-1.5 1.03-2.79-.15-.64-.46-1.22-.86-1.69-.45.05-.85.12-1.22.24 0 .32 0 .64.03.95 0 .02.53 2.08-.6 1.42-.4-.23-.67-.76-.82-1.49-.32.33-.62.75-.94 1.3ZM19.76 23.03c-.47 1.38-1.15 2.34-1.93 3.11 2.22 2.71 6.24 4.04 9.38 4.79.08-.85.29-1.97.93-3.06.09-.15.18-.3.28-.45-.02-.03-.03-.06-.04-.09-2.77-.36-6.14-1.59-8.61-4.28Z" class="cls-3"/><path d="M20.72 15.41c.37-.12.77-.2 1.22-.24 1.03-.11 2.33-.1 4.08-.34 1.12-.18 2.17-.46 2.83-.84 1.56-.9 2.6-2.66 4.18-3.58.11-.06.22-.12.34-.18.88 1.69 1.16 2.75 1.19 5.04.88-2.48 1.21-5.18-.04-7.35-.33-.58-1.26-1.2-2.52-1.77-1.6-.72-3.73-1.34-5.82-1.63-3.01 2.07-5.41 6.77-5.46 10.87Z" class="cls-7"/><path d="M26.62 23.21c-.66.38-.88 1.22-.5 1.87.38.66 1.22.88 1.88.5.66-.38.88-1.22.5-1.87-.38-.66-1.22-.88-1.87-.5Z" class="cls-6"/><path d="M28.46 27.32s-.04.05-.05.08c1.23 2.69 2.71 4.25 3.61 6.28l4.51-2.61c.52-.3.8-.89.7-1.48-.17-.98-.39-1.93-.87-2.76-.94-1.62-2.67-2.45-4.47-2.99l-.02-.03c-.47.36-.99.58-1.52.7.96 2.21 1.38 4.64 1.38 4.64l-3.28-1.83Z" class="cls-3"/><path d="M20.37 19.72c-.09 1.32-.31 2.4-.61 3.31-.47 1.38-1.15 2.34-1.93 3.11-2.26 2.19-5.36 2.71-6.65 6.54-.15.43-.27.91-.37 1.43-.1.55.09 1.13.52 1.5 2.5 2.2 5.33 3.41 9.65 2.85 2.41-.31 4.73-1.13 6.84-2.35l8.73-5.04c.52-.3.8-.89.7-1.48-.17-.98-.39-1.93-.87-2.76-.94-1.62-2.67-2.45-4.47-2.99l-11.52-4.13Z" class="cls-4"/><path d="M27.99 25.59c.66-.38.88-1.22.5-1.87-.38-.66-1.22-.88-1.87-.5-.66.38-.88 1.22-.5 1.87.38.66 1.22.88 1.88.5Zm2.37-1.07c-.32.07-.64.11-.96.11.67 2.25-.83 2.65-.94 2.69-.03 0-.06 0-.1-.01-2.77-.36-6.14-1.59-8.61-4.28.31-.91.52-1.99.61-3.31.23.07.46.1.69.1.26 0 .5-.06.71-.16.88-.39 1.33-1.5 1.03-2.79-.15-.64-.46-1.22-.86-1.69 1.03-.11 2.33-.1 4.08-.34 1.12-.18 2.17-.46 2.83-.84 1.56-.9 2.6-2.66 4.18-3.58.11-.06.22-.12.34-.18.88 1.69 1.16 2.75 1.19 5.04 0 4.84-1.14 7.38-2.7 8.54-.47.36-.99.58-1.52.7Z" style="fill:%23dae0e5"/><path d="M28.46 27.32s-.06 0-.1-.01c.02.03.03.06.04.09.02-.03.04-.05.05-.08ZM28.46 27.32l3.28 1.83s-.43-2.43-1.38-4.64c-.32.07-.64.11-.96.11.67 2.25-.83 2.65-.94 2.69Z" class="cls-3"/><path d="M25.98 24.04c-2.47-.91-4.09-3.18-4.21-4.38" class="cls-4"/><path d="M28.49 23.72c-.38-.66-1.22-.88-1.87-.5-.66.38-.88 1.22-.5 1.87.38.66 1.22.88 1.88.5.66-.38.88-1.22.5-1.87ZM34.57 15.29c.88-2.48 1.21-5.18-.04-7.35-.33-.58-1.26-1.2-2.52-1.77-1.6-.72-3.73-1.34-5.82-1.63" class="cls-4"/><path d="M23.77 4.38h-.02c-1.41 0-2.68.25-3.62.79-5.29 3.05-3.23 7.45-3.8 8.92-.91 2.34-2.75.8-2.08 5.12.53 3.44-5.05 3.63-3.31 6.65.26.45.67.83.94 1.31 1.3 2.26-2.24 2.89-.89 5.23 0 0 .01.02.02.03.06.1.11.18.17.26" class="cls-7"/><path d="M19.34 16.3c-.32.33-.62.75-.94 1.3l-.12.21c.45.93 1.25 1.65 2.09 1.91.23.07.46.1.69.1.26 0 .5-.06.71-.16.88-.4 1.33-1.5 1.03-2.79-.15-.64-.46-1.22-.86-1.69M33.54 14.38c-.5.34-.89.78-1.17 1.28-1.74 3.1.71 4 .29 4.76-.13.24-.45.57-.75.64M29.66 16.39c-.84-.1-1.59-.11-2.35.28M29.58 18.15c-.49.3-1.14.58-1.71.55" class="cls-4"/><path d="M33.97 16.23c-.33.28-.68.61-1.09.75M17.82 26.14c2.22 2.71 6.24 4.04 9.38 4.79.08-.85.29-1.97.93-3.06.09-.15.18-.3.28-.45.02-.03.04-.05.05-.08-.03 0-.06 0-.1-.01-2.77-.36-6.14-1.59-8.61-4.28" class="cls-4"/><path d="M30.36 24.52c.96 2.21 1.38 4.64 1.38 4.64l-3.28-1.83c.11-.04 1.6-.44.94-2.69.32 0 .64-.04.96-.11.53-.12 1.04-.35 1.52-.7 1.55-1.16 2.69-3.7 2.7-8.53h0c-.04-2.3-.31-3.35-1.19-5.04-.12.06-.23.12-.34.18-1.58.92-2.62 2.67-4.18 3.58-.66.38-1.71.66-2.83.84-1.76.24-3.05.23-4.08.34-.45.05-.85.12-1.22.24" class="cls-4"/><path d="M23.75 4.38c-3.54 3.14-4.97 9.06-4.41 11.92.14.73.41 1.26.82 1.49 1.14.66.6-1.4.6-1.42a7.48 7.48 0 0 1-.03-.95c.05-4.11 2.46-8.8 5.46-10.87.16-.11.33-.22.5-.32 1.48-.85 2.83-.91 3.86-.32l-1.51-.87c-1.04-.6-2.39-.54-3.87.31-.51.29-.98.64-1.42 1.03Z" class="cls-3"/><path d="M26.69 4.22c-.17.1-.34.2-.5.32 2.09.28 4.22.91 5.82 1.63-.31-1.09-.96-1.98-1.46-2.26-1.04-.59-2.39-.53-3.86.32Z" class="cls-6"/><path d="M30.55 3.91c-1.04-.59-2.39-.53-3.86.32-.17.1-.34.2-.5.32h0c-3.01 2.07-5.41 6.77-5.46 10.87 0 .32 0 .64.03.95 0 .02.53 2.08-.6 1.42-.4-.23-.67-.76-.82-1.49-.56-2.85.86-8.78 4.41-11.92.44-.39.92-.74 1.42-1.03 1.48-.85 2.84-.91 3.87-.31l1.51.87Z" class="cls-4"/><path d="M30.55 3.91c.5.28 1.15 1.17 1.46 2.26" class="cls-4"/></g></g></svg>');

                    @media screen and (min-width: 1280px) {
                        left: -72px;
                    }
                }

                &.choice {
                    width: 100%;

                    margin-top: 8px;

                    &::after {
                        content: none;
                    }
                }

                p, li {
                    color: #2D2D2D;

                    font-size: inherit;
                    font-weight: inherit;
                    line-height: inherit;

                    a {
                        text-decoration: underline;
                        color: #2D2D2D;
                    }
                }

                p {
                    margin-bottom: 0;
                    text-align: left;
                }

                ul, ol {
                    margin: 16px 0;

                    li {
                        margin-bottom: 8px
                    }
                }

                p, a {
                    transition: color .3s ease
                }
            }

            &.user {
                align-self: flex-end;

                word-wrap: break-word;
                text-wrap: pretty;

                margin-right: 32px;

                background-color: #F6F6F6;

                @media screen and (min-width: 1280px) {
                    margin-right: 24px;
                }

                &::after {
                    right: -56px;

                    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><style>.cls-5{fill:none;stroke:%23373a3a;stroke-linecap:round;stroke-linejoin:round}</style></defs><g style="isolation:isolate"><g id="text"><circle cx="24" cy="26" r="20" style="fill:%23e7e7e7"/><path d="M16.64 20.05c-4.12 1.1-5.85 2.17-6.04 8.55 0 0 7.87 6.59 13.32 8.58 5.45 1.98 12.26 2.42 12.42-.39s1.1-7.82-5.07-13c-2.78-2.33-4.16-2.15-4.16-2.15" style="stroke:%23373a3a;stroke-linecap:round;stroke-linejoin:round;fill:%23fff"/><path d="M31.66 9.38c.34 2.1-.39 4.51-1.73 6.36a5.14 5.14 0 0 0-.95 2.38c-.69-.56-.97-1.27-.97-1.27 1.23-2.15.39-3.93-.46-3.8-.59.1-1.02.82-1.39 1.43-.22-2.89-1.91-4.27-3.49-4.27-1.17 0-4.1 1.11-5.95 1.11-.29 0-.57-.02-.86-.07-.3-.8-.53-1.66-.53-2.49 0-3.65 5.99-5.9 7.8-6.18 3-.48 6.05.36 6.63 3.48 1.1.86 1.7 2.03 1.9 3.32Z" style="fill:%23373a3a"/><path d="M31.18 23.06c-1.14 2.14-2.53 4.05-4.26 5.75-.13-1.31-.92-3.1-2.24-3.16 1.51-.89 3.29-1.64 4.88-4.27.22.41.52.78.86 1.09 0 0 .3.24.75.58Z" style="fill:%23fff"/><path d="M16.63 20.05c-.31-.83-.57-1.83-.76-3.02-.31-1.92-.32-3.86-.01-5.78.28.05.56.07.86.07 1.85 0 4.78-1.11 5.95-1.11 1.59 0 3.27 1.38 3.49 4.27.37-.61.8-1.33 1.39-1.43.85-.13 1.68 1.65.46 3.8 0 0 .27.71.97 1.27-.13.95-.01 1.93.39 2.83.01.03.02.06.04.09.05.12.1.23.16.34-1.58 2.63-3.37 3.38-4.88 4.27-1.38.81-2.52 1.74-3.05 4.34v-1.63c0-.9-.03-2.25-.54-2.98-.22-.31-.52-.51-.94-.51-.7 0-1.25.38-1.65.77.44-.75.92-1.49 1.42-2.2-1.29-.24-2.48-1.22-3.3-3.39Z" style="fill:%23dae0e5"/><path d="M24.72 21.69c-.87.74-1.9 1.36-2.95 1.64-.62.17-1.24.22-1.84.1-1.29-.24-2.48-1.22-3.3-3.39-.31-.83-.57-1.83-.76-3.02-.31-1.92-.32-3.86-.01-5.78h0c-.3-.8-.53-1.66-.53-2.49 0-3.65 5.99-5.9 7.8-6.18 3-.48 6.05.36 6.63 3.48 1.1.86 1.7 2.03 1.9 3.32.34 2.1-.39 4.51-1.73 6.36a5.14 5.14 0 0 0-.95 2.38c-.13.95-.01 1.93.39 2.83.01.03.02.06.04.09.05.12.1.23.16.34.22.41.52.78.86 1.09 0 0 .3.24.75.58" class="cls-5"/><path d="M24.69 25.66c1.51-.89 3.29-1.64 4.88-4.27M21.64 29.99c.53-2.6 1.67-3.52 3.05-4.34M21.33 33.4c.02-1.39.12-2.5.31-3.41" class="cls-5"/><path d="M31.18 23.06c-1.14 2.14-2.53 4.05-4.26 5.75-.13-1.31-.92-3.1-2.24-3.16M21.64 29.99v-1.63c0-.9-.03-2.25-.54-2.98-.22-.31-.52-.51-.94-.51-.7 0-1.25.38-1.65.77.44-.75.92-1.49 1.42-2.2M15.86 11.25c.28.05.56.07.86.07 1.85 0 4.78-1.11 5.95-1.11 1.59 0 3.27 1.38 3.49 4.27.37-.61.8-1.33 1.39-1.43.85-.13 1.68 1.65.46 3.8 0 0 .27.71.97 1.27M17.34 13.31c.47.32.84.73 1.11 1.21 1.64 2.93-.68 3.78-.27 4.5.13.23.43.54.71.61M21.02 15.21c.79-.1 1.5-.11 2.22.26M21.09 16.88c.46.28 1.07.55 1.62.52" class="cls-5"/><path d="M16.93 15.06c.32.26.64.58 1.04.71" class="cls-5"/></g></g></svg>');

                    @media screen and (min-width: 1280px) {
                        right: -72px;
                    }
                }
            }

            &.choice {
                position: relative;

                padding: 8px 24px;

                display: flex;
                align-items: center;
                gap: 8px;

                @media screen and (min-width: 768px) {
                    gap: 16px;
                }

                &:not(.disabled) {
                    cursor: pointer;

                    &:hover {
                        p, a {
                            color: #FFFFFF;
                        }
                    }
                }

                &:before {
                    content: '';

                    width: 16px;
                    height: 16px;
                    flex: 0 0 16px;

                    background-color: var(--wp--preset--color--white);

                    border-radius: 50%;

                    @media screen and (min-width: 768px) {
                        width: 24px;
                        height: 24px;

                        flex: 0 0 24px;

                    }
                }

                &:not(.active, .disabled) {
                    &:hover {
                        background-color: #000000;
                        color: var(--wp--preset--color--white);
                    }
                }

                &.active {
                    background-color: #000000;
                    color: var(--wp--preset--color--white);

                    p {
                        color: var(--wp--preset--color--white);

                        a {
                            color: var(--wp--preset--color--paragraph-color);
                        }
                    }
                }
            }

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

        .suggestions {
            margin-top: 40px;

            width: 100%;

            h2 {
                display: flex;
                align-items: center;
                gap: 16px;

                font-size: var(--wp--preset--font-size--large);
                font-weight: 900;

                margin-bottom: 24px;

                @media screen and (min-width: 768px) {
                    gap: 32px;
                }

                &:before {
                    display: block;
                    content: '';
                    width: 35px;
                    height: 40px;

                    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 75.935 80.519"><defs><clipPath id="a"><path fill="none" d="M0 0h75.935v80.519H0z"/></clipPath></defs><g clip-path="url(%23a)"><image xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAAA3CAYAAADt2n/EAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAbqADAAQAAAABAAAANwAAAABB7JY5AAAEdklEQVR4Ae1X25JUIQx0LH/UBx/8Ia3SKv3U0XbsqR424ZIDnMsyVbuBDkmHBDhwu9/vH2b+vv/8/ST8+uXzbSb3lbhuswt3peTtOZdPs8ix03SH6c5DDJZOsVlxnoXn48xAWSxK5SZGCR3a7FOqzXtuT9lxvZKuft79bsQ3bvTftx+//lK85QGe07XaWOOvig29nGCH6M7I7RhP5+E8SnlcKg+xK8vhhUPykFQtABPKZHs6D4e9p0txcpDzKnLY5SRN4F4JYxyQbO8VS0/eoTuuZ6DL12sGut8qsar1eNJV7uEIydN5eMSm1tdrio7ZG3JUsliUnDr7lMQhiVFSxz4l8YgNfVDW+NIxR2p3LZyVkCNNtjYWzOPwc+n5zun5Jsv5yums+eTG53SWr6NgXS4nWJ3e96MGx07QFT7KxuOI8tfu4BHjuh2VTAolg2WfMsXR93QeHrHp6cviBzbzt/lWmSZkZvB7c+nc9ZSYEVeXo3JGoIvjNQObdxzdeauvBocPXbGjbDyOkfzMT28Z/sYhuUwwJYNjn7KEQ8+xlCNs6JuSHCP5LS7lDbcj19vWK3RufE5nxYbxEZuevnrxWzHVYpu+cbqavGOoBtcVj/YoGy/e2fw6P3BHfuHCaRJIjIBacdjOsPE4jsDP/LXIpm+cNfkWsjW2XwbCO65fCMtTJANNz4F0x+lZrbpWHIHPsPE4jsZfU8jqo1ILQ8fEKKM47OiDsuQrYkPflOSI+IrYkJfS47f0OhbtYuFqnKROV397Bop5r303cNyV3lHRufR6x0X4WYfi5UQrr98IrClP14pHfEVsvLgiviI2W/jT3GePSiVKA/V0rXjqV/ueLx2DNn4cS/lAy7jajrTx4qrlT+3NwqWDOKEl982A1qV4VO4b6mL3MmC+47SyerYqDoeerhWP+IrYeHFFfEVsevHDz5sdlxaHAVp4Tgfnlo2HR3xFbC7Dz+tlKnNX3pwu9YN+bnxO5/mK2PT0dQT+547T3YFVidWMn4fndJ6Nh0d8RWyuxP/vVqkT0oR4uI5BGz+OpXygZVxtR9p4cZ2V33wOMIFLHjcDz6PyuCGuyKwMrOfA/6zUfNfT47bVxhuPEDydhxePSgZLqdUnRkkd+5QlHHqOpRxhQ9+U5DgbP4pp7jivyjrR1d45A9b7JofhDXOEd4wVYySuWTZevK389LPpcqJHjrdLa3A9qtAeZePFewZ+zQni3VQ4OMCPCYFzth+ax/8crvYjbby4zsCfFg0xm984TWBN23JcY7fG5DOQy2uXHZenX9oRGeiy42oCw1GlKyg9ujydh4PT07XiEV8RGy+u1Bf6pV/xHVdyUKvXoC0bFpKSY9inJA5JjJI69ilLeMRXxIbxUDKuUm44TuW0HaekaGuw6UTSsVftaw6a58h3wdFk7n2T01nzyI3P6TxfERvL1xbsFJcT7sh0hRLHalVdKw77WTbg6vE7ReGsiWqiqUfxWnHY9rbRRcTYesvdvnFbJ+IlxyveVj7PPo0j7Xt2W/E/w6lO1mailV0AAAAASUVORK5CYII=" width="55" height="27.5" transform="translate(21 53.02)"/><path fill="%23dae0e5" d="M43.816 54.521c-7.984-4.609-20.929-4.609-28.913 0s-7.984 12.083 0 16.693 20.929 4.609 28.914 0 7.984-12.084 0-16.693"/><path fill="none" stroke="%23373a3a" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M43.816 54.521c-7.984-4.609-20.929-4.609-28.913 0s-7.984 12.083 0 16.693 20.929 4.609 28.914 0 7.983-12.079-.001-16.693Z"/><path fill="%23373a3a" d="M14.231 53.663c.324 1.959 1.788 3.866 4.379 5.365 5.938 3.423 15.559 3.423 21.5 0 2.7-1.558 4.155-3.559 4.409-5.6v6.162h.029c.147 2.349-1.334 4.722-4.438 6.516-5.938 3.429-15.559 3.429-21.5 0-2.591-1.493-4.055-3.4-4.379-5.353Z"/><path fill="%23fdbe57" d="M14.231 34.961a15.5 15.5 0 0 1 4.379-12.389 15.061 15.061 0 0 1 21.5 0 15.462 15.462 0 0 1 4.409 11.976V53.44c-.254 2.036-1.711 4.037-4.409 5.6-5.938 3.423-15.559 3.423-21.5 0-2.591-1.5-4.055-3.405-4.379-5.365Z"/><path fill="%23fff" d="M14.231 59.061v1.694a5.1 5.1 0 0 1 0-1.694M14.231 53.666a5.1 5.1 0 0 1 0-1.694Z"/><path fill="none" stroke="%23373a3a" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M14.231 60.755a5.1 5.1 0 0 1 0-1.694M44.546 59.601c.147 2.349-1.334 4.722-4.439 6.516-5.937 3.429-15.559 3.429-21.5 0-2.591-1.493-4.055-3.4-4.379-5.353M14.231 34.961a15.5 15.5 0 0 1 4.379-12.389 15.061 15.061 0 0 1 21.5 0 15.462 15.462 0 0 1 4.409 11.976c0 .118-.012.242-.024.36M14.231 60.761V32.618M44.517 59.686V32.617"/><path fill="none" stroke="%23373a3a" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M44.539 52.308a4.35 4.35 0 0 1 0 1c0 .041-.012.089-.017.13-.272 2.034-1.712 4.037-4.409 5.6-5.938 3.423-15.559 3.423-21.5 0-2.591-1.5-4.052-3.406-4.38-5.365a5.123 5.123 0 0 1 0-1.694M21.828 40.893c1.458-.844 1.458 9.279 2.916 8.435s1.463-10.967 2.921-11.805 1.458 9.279 2.916 8.435 1.464-10.967 2.928-11.811 1.457 9.278 2.921 8.434M6.906 29.36H.75M9.911 18.127l-5.33-3.075M18.133 9.911l-3.081-5.33M29.36 6.906V.75M40.586 9.911l3.081-5.33M48.808 18.127l5.33-3.075M51.813 29.36h6.156"/></g></svg>');
                    background-repeat: no-repeat;

                    @media screen and (min-width: 768px) {
                        width: 75px;
                        height: 80px;
                    }
                }
            }

            .discussion-ended & {
                .card {
                    box-shadow: none;
                    cursor: default;

                    h3 {
                        background: none;
                    }
                }
            }
        }
    }

    .actions {
        position: relative;

        display: flex;
        flex-direction: column;

        padding: 24px;

        border-radius: 0 0 32px 32px;

        @media screen and (min-width: 768px) {
            padding: 40px;

            border-radius: 0 0 50px 50px;
            border-top: 1px solid var(--wp--preset--color--border-color);

            background-color: var(--wp--preset--color--base);
        }

        .input-container {

            padding-right: 0;

            transition: background-color .3s ease;

            @media screen and (max-width: 767px) {
                height: 60px;
            }

            @media screen and (min-width: 768px) {
                padding-right: 24px;
            }

            &.disabled {
                cursor: not-allowed;
                background-color: #F6F6F6
            }

            button {
                svg {
                    color: var(--wp--preset--color--black);
                }
            }
        }
    }

    + .reset {
        display: inline-block;

        margin-top: 16px;

        cursor: pointer;

        text-decoration: underline;

        transition: color .3s ease;

        &:hover {
            color: var(--wp--preset--color--primary);
        }
    }
}

.alert {
    padding: 1rem;
    color: var(--wp--preset--color--paragraph-color-secondary);
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border-color);
}

mistral-input-widget {
    &.is-visible {
        #open {
            visibility: visible;
            opacity: 1;

            transform: translateY(0);
        }
    }

    &.chat-dialog {
        #open, #close {
            display: flex;
            justify-content: center;
            align-items: center;

            cursor: pointer;
        }

        &.open {
            .chat-dialog__wrapper {
                visibility: visible;
                opacity: 1;

                z-index: 1000;
            }
        }

        .chat-dialog__wrapper {
            display: flex;
            flex-direction: column;

            position: fixed;
            right: 0;
            bottom: 0;

            z-index: 999;

            opacity: 0;
            visibility: hidden;

            box-shadow: rgba(0, 0, 0, 0.2) -9px 11px 38px 0;

            transition: opacity .3s ease, visibility .3s ease;

            @media screen and (max-width: 767px) {
                left: 0;
                top: 0;
            }

            @media screen and (min-width: 768px) {
                right: 16px;
                bottom: 16px;
                top: 20vh;
                max-width: 65vw;
                border-radius: 20px;

                border: 1px solid var(--wp--preset--color--border-color);
            }

            @media screen and (min-width: 1024px) {
                max-width: 55vw;
            }

            @media screen and (min-width: 1280px) {
                max-width: 35vw;
            }
        }

        .chat-dialog__wrapper--header {
            display: flex;
            align-items: center;
            justify-content: space-between;

            background-color: var(--wp--preset--color--primary);

            padding: 16px 24px;

            @media screen and (min-width: 768px) {
                border-radius: 20px 20px 0 0;
            }

            .title-header {
                display: flex;
                gap: 8px;

                .sesame {
                    font-size: 22px;
                    font-weight: 600;
                    line-height: 38px;

                    @media screen and (min-width: 768px) {
                        font-size: 28px;
                    }
                }

                .status {
                    display: flex;
                    gap: 4px;
                    align-items: center;

                    font-size: 14px;
                    font-weight: 500;
                    line-height: 19px;


                    &::before {
                        display: block;

                        content: '';

                        height: 8px;
                        width: 8px;

                        border-radius: 50%;

                        background-color: #32F567;
                        border: 1px solid #FFFFFF;
                    }
                }

                svg {
                    width: 48px;

                    @media screen and (min-width: 768px) {
                        width: 60px;
                    }
                }
            }

            #close {
                color: #000000;

                padding: 0;

                border: none;
                border-radius: 50%;

                height: 40px;
                width: 40px;

                background-color: transparent;

                transition: background-color .3s ease;

                svg {
                    height: 24px;
                    width: 24px;
                }

                &:hover {
                    background-color: var(--wp--preset--color--primary);
                }
            }
        }

        mistral-chat {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;

            background-color: #FFFFFF;

            border-radius: 0;

            @media screen and (min-width: 768px) {
                border-radius: 0 0 20px 20px;
            }

            .chat {
                overflow-y: auto;
                overflow-x: hidden;

                display: flex;
                flex-direction: column;

                padding: 24px;
                height: 100%;

                -ms-overflow-style: none;
                scrollbar-width: none;

                &::-webkit-scrollbar {
                    display: none;
                }

                @media screen and (min-width: 768px) {
                    padding: 32px;
                }

                .bubble {
                    @media screen and (min-width: 1280px) {
                        max-width: 80%;
                    }

                    &::after {
                        height: 40px;
                        width: 40px;

                        background-size: 40px 40px;

                        @media screen and (max-width: 767px) {
                            display: none;
                        }
                    }

                    &.agent {
                        margin-left: 0;

                        @media screen and (min-width: 768px) {
                            margin-left: 56px;

                            &::after {
                                left: -56px;
                            }
                        }
                    }

                    &.user {
                        margin-right: 0;

                        @media screen and (min-width: 768px) {
                            margin-right: 56px;

                            &::after {
                                right: -56px;
                            }
                        }
                    }
                }

                .suggestions {
                    h2 {
                        font-size: 24px;

                        @media screen and (min-width: 768px) {
                            gap: 24px;
                        }

                        &::before {
                            @media screen and (min-width: 768px) {
                                width: 55px;
                                height: 60px;
                            }
                        }
                    }

                    .card {
                        @media screen and (min-width: 768px) {
                            --card-padding: 48px;
                        }

                        h3 {
                            font-size: 24px;
                        }
                    }
                }
            }

            .actions {
                padding-bottom: 24px;

                background-color: #FFFFFF;
                border-top: none;

                @media screen and (min-width: 768px) {
                    padding-bottom: 32px;
                    border-radius: 0 0 20px 20px;
                }

                .input-container {
                    height: 60px;

                    padding-right: 0;

                    @media screen and (min-width: 768px) {
                        padding: 0 8px 0 32px;
                    }

                    button {
                        background-color: transparent;

                        &:hover {
                            background-color: transparent;

                            svg {
                                color: var(--wp--preset--color--primary);
                            }
                        }

                        svg {
                            display: block;

                            color: var(--wp--preset--color--black);

                            height: 20px;
                            width: 20px;

                            transition: color .3s ease;
                        }
                    }
                }
            }
        }
    }

    #open {
        position: fixed;
        bottom: 16px;
        right: 16px;
        z-index: 97;

        padding: 0;

        background-color: var(--wp--preset--color--primary);

        height: 80px;
        width: 80px;

        opacity: 0;
        visibility: hidden;

        transform: translateY(64px);

        border: 3px solid #FFFFFF;
        border-radius: 60px;

        box-shadow: rgba(0, 0, 0, 0.2) -9px 11px 38px 0px;

        transition: background-color .3s ease, opacity .3s ease, visibility .3s ease, transform .3s ease;

        cursor: pointer;

        @media screen and (min-width: 768px) {
            height: 96px;
            width: 96px;
        }

        @media screen and (min-width: 1280px) {
            height: 120px;
            width: 120px;
        }

        &:hover {
            background-color: var(--wp--preset--color--black);
        }

        svg {
            max-width: 48px;

            @media screen and (min-width: 768px) {
                max-width: 56px;
            }

            @media screen and (min-width: 1280px) {
                max-width: 68px;
            }
        }
    }
}
