/* Style the message of form component */
.AppComponentMessage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    background: rgb(255, 255, 255);
    border-top: 1px solid rgb(237, 237, 237);
    border-left: 1px solid rgb(237, 237, 237);
    border-right: 1px solid rgb(237, 237, 237);

    position: relative;
    z-index: 1;

    width: 100%;

    transition: 0.2s;
}

@media screen and (max-width: 900px){
    .AppComponentMessage {
        display: none;
        
        border: unset;
        box-shadow: 0px -7px 47px rgba(57, 57, 57, 0.17);
    }
}

    @media screen and (max-width: 650px){
        .AppComponentMessage {
            border-top-left-radius: var(--size-07);
            border-top-right-radius: var(--size-17);
        }
    }

    .AppComponentMessage__Form {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;

        position: relative;
        z-index: 2;

        width: 100%;

        padding: var(--size-07);
    }

    @media screen and (max-width: 900px){
        .AppComponentMessage__Form {
            padding: 1.7vw;
        }
    }

        @media screen and (max-width: 650px){
            .AppComponentMessage__Form {
                position: static;
            }
        }

        .AppComponentMessage__Form > button {
            margin-left: var(--size-04);
        }

        .AppComponentMessageForm__Enter {
            display: flex;
            flex-direction: row;
            align-items: flex-end;
            justify-content: flex-start;

            background: rgb(245, 245, 245);
            border-radius: var(--size-07);

            width: 100%;

            position: relative;
            z-index: 1;
            
            padding: var(--size-07);
            transition: 0.4s;
        }

            .AppComponentMessageForm__Enter:hover {
                transition: 0.4s;
                background: rgb(240, 240, 240);
            }

            .AppComponentMessageForm__Enter > button:nth-of-type(1) {
                margin-right: var(--size-04);
                z-index: 1000;
            }

            .AppComponentMessageForm__Enter > button:nth-of-type(2) {
                margin-left: var(--size-04);
            }

            .AppComponentMessageFormEnter__Input {
                outline: unset;

                font-size: var(--font-size);
                text-align: left;

                word-break: break-all;
                white-space: pre-wrap;

                width: 100%;
                max-height: var(--size-10);

                overflow-y: auto;
                overflow-x: hidden;

                z-index: 2;

                padding: calc(var(--size-02) / 1.7);
                cursor: text;
            }

                .AppComponentMessageFormEnter__Input * {
                    cursor: text;
                }

                .AppComponentMessageFormEnterInput__Placeholder {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-start;

                    color: rgb(127, 127, 127);
                    text-align: left;

                    position: absolute;
                    left: calc( var(--icon-button-size) * 2.2 );
                    z-index: 1;

                    padding: calc(var(--size-02) / 1.7);
                }

        .AppComponentMessageForm__Emoji {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;

            background: rgb(255, 255, 255);
            border: 1px solid rgb(237, 237, 237);
            border-radius: var(--size-07);

            position: absolute;
            left: var(--size-07);
            bottom: calc(var(--size-27) * 1.4);
            z-index: 3;

            overflow-y: auto;

            width: 100%;
            max-height: var(--size-170);
            max-width: 65%;

            padding: var(--size-07);

            box-shadow: 0px -17px 77px rgba(57, 57, 57, 0.17);
        }

        @media screen and (max-width: 900px){
            .AppComponentMessageForm__Emoji {
                left: 1.7vw;
                bottom: calc(var(--size-27) * 1.3);
                max-width: 91.5%;
            }
        }

            @media screen and (max-width: 650px){
                .AppComponentMessageForm__Emoji {
                    border-radius: unset;

                    position: absolute;
                    left: 0px;
                    max-width: unset;

                    box-shadow: unset;
                }
            }

            .AppComponentMessageFormEmoji__Last,
            .AppComponentMessageFormEmoji__Default {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;

                width: 100%;
            }

                .AppComponentMessageFormEmoji__Last {
                    margin-bottom: var(--size-04);
                }

                .AppComponentMessageFormEmojiLast__Title,
                .AppComponentMessageFormEmojiDefault__Title {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-start;

                    color: rgba(127, 127, 127);
                    font-size: var(--font-size-context);

                    width: 100%;
                }

                .AppComponentMessageFormEmojiLast__List,
                .AppComponentMessageFormEmojiDefault__List {
                    display: grid;
                    align-items: flex-start;
                    justify-content: flex-start;

                    grid-template-columns: repeat(auto-fill, minmax( 10%, 1fr ));

                    width: 100%;

                    gap: var(--size-02);
                }

                @media screen and (max-width: 650px){
                    .AppComponentMessageFormEmojiLast__List,
                    .AppComponentMessageFormEmojiDefault__List {
                        grid-template-columns: repeat(auto-fill, minmax( 12%, 1fr ));
                        gap: var(--size-04);
                    }
                } 

                    .AppComponentMessageFormEmojiLast__List > button > img,
                    .AppComponentMessageFormEmojiDefault__List > button > img {
                        min-width: calc( var(--icon-button-size) * 1.5 );
                        max-width: calc( var(--icon-button-size) * 1.5 );

                        opacity: 1.0;
                        transition: 0.4s;
                    }

                        .AppComponentMessageFormEmojiLast__List > button:hover > img,
                        .AppComponentMessageFormEmojiDefault__List > button:hover > img {
                            transition: 0.2s;
                            opacity: 0.7;
                        }

    .AppComponentMessage__Files {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        background: rgb(255, 255, 255);
        border-top: 1px solid rgb(237, 237, 237);
        border-top-left-radius: var(--size-07);
        border-top-right-radius: var(--size-07);

        position: absolute;
        bottom: calc(var(--size-07) * 6);
        left: 0px;
        z-index: 1;

        width: 100%;

        padding: var(--size-07);
    }

    @media screen and (max-width: 900px){
        .AppComponentMessage__Files {
            border-bottom: 1px solid rgb(237, 237, 237);
            border-radius: unset;
        }
    }

        .AppComponentMessageFiles__Loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            background: rgba(255, 255, 255, 0.9);

            position: absolute;
            top: 0px;
            left: 0px;
            z-index: 2;

            width: 100%;
            height: 100%;

            padding: var(--size-07);
        }

            .AppComponentMessageFiles__Loading > img {
                width: 100%;
                height: auto;
                max-width: var(--icon-loading-size);
            }

        .AppComponentMessageFiles__Header {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

            width: 100%;

            margin-bottom: var(--size-07);
        }

            .AppComponentMessageFilesHeader__Icon {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;

                margin-right: var(--size-04);
            }

                .AppComponentMessageFilesHeader__Icon > img {
                    width: 100%;
                    height: auto;
                    max-width: var(--icon-button-size);

                    opacity: 0.7;
                    transition: 0.4s;
                }

                    .AppComponentMessage__Files:hover .AppComponentMessageFilesHeader__Icon > img {
                        transition: 0.2s;
                        opacity: 1.0;
                    }

            .AppComponentMessageFilesHeader__Title {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;

                text-align: left;

                width: 100%;
            }

        .AppComponentMessageFiles__List {
            display: grid;
            align-items: flex-start;
            justify-content: flex-start;

            grid-template-columns: repeat(auto-fill, minmax(17%, 1fr));

            width: 100%;

            overflow-y: auto;

            gap: var(--size-07);
        }

        @media screen and (max-width: 900px){
            .AppComponentMessageFiles__List {
                grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
            }
        }

            @media screen and (max-width: 650px){
                .AppComponentMessageFiles__List {
                    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
                }
            }

            .AppComponentMessageFilesList__Item {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;

                border: 1px solid rgb(237, 237, 237);
                border-radius: var(--size-07);

                height: 100%;

                padding: var(--size-04);
            }

                .AppComponentMessageFilesListItem__Functions {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-end;

                    width: 100%;

                    margin-bottom: var(--size-02);
                }

                .AppComponentMessageFilesListItem__Name {
                    display: block;

                    text-align: center;
                    word-break: break-all;
                    
                    width: 100%;
                    height: 100%;
                    min-height: var(--size-3);

                    padding: var(--size-02);
                    margin-bottom: var(--size-02);
                }

                .AppComponentMessageFilesListItem__Size {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;

                    color: rgb(127, 127, 127);
                    text-align: center;

                    width: 100%;
                }