
#contentEditableField {
    width: 96%;
    min-height: 45px;
    margin: 7px 3px auto 6px;
    border-radius: 4px;
    padding: 5px 20px 5px 5px;
    /* max-height: 170px; */
    /* overflow-y: auto; */
    font-size: 18px;
    display: block !important;
    border: 1px solid #cccc;
    color: #000;
    font-family: arial;
    /* font-family: 'TikTok Display', sans-serif; */
    font-weight: 400;
}

#contentEditableField .hashtag {
    /* font-weight: 500; */
    font-weight: 600;
}
#contentEditableField br {
    display: inline;
}

#contentEditableField p br {

}

.wrapper-caption {
    position: relative;
    /* flex: 1; */
    /* max-height: 190px; */
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.emojiPicker {
    /* height: 450px; */
    /* width: 350px; */
    float: right;
    position: absolute;
    z-index: 10;
    right: -252px;
    top: -4px;
}

.wrapper-caption .img-emoji {
    width: 24px;
}

.wrapper-caption .btn-opent-emoji {
    width: 26px;
    height: 26px;
    float: right;
    margin-right: 16px;
    margin-top: 5px;
    background: url(../images/emoji.png);
    background-position: 0 -59px;
    border: none;
    cursor: pointer;
    outline: none;
    position: absolute;
    right: 2px;
    bottom: 4px;
}

.box-text-add-mediafile .chunk-loading {
    position: absolute;
    top: 0;
    width: 100%;
    height: 30px;
    background: #5d5b5bc4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-text-add-mediafile .chunk-loading .chunk-loading-process{
    position: absolute;
    height: 30px;
    bottom: 0;
    background: #c9c7c7c7;
    left: 0;
}
.box-text-add-mediafile .chunk-loading span{
    color: #fe2c55;
    position: absolute;
    width: 100%;
    height: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.wrapper-caption #contentEditableField::-webkit-scrollbar {
    width: 8px;
    display: block !important;

}

/* Track */
.wrapper-caption #contentEditableField::-webkit-scrollbar-track {
    background: #fff !important;
    border-radius: 0 3px 3px 0
}

/* Handle */
.wrapper-caption #contentEditableField::-webkit-scrollbar-thumb {
    background: rgb(57 57 57 / 51%) !important;
    cursor: pointer;

}

.wrapper-caption #contentEditableField:empty:before {
    content: attr(placeholder);
    color: #858484;
    display: block;
    position: absolute;
    font-size: 22px;
}

.box-text-add-mediafile {
    /* border: 1px solid #cccccc96; */
    width: 96%;
    /* display: flex; */
    align-items: center;
    justify-content: space-around;
    margin: 10px auto;
    border-radius: 3px;
    /* padding: 7px; */
    min-height: 200px;
    position: relative;
    /* margin-top: 40px; */
    flex: 1;
    /* overflow-y: auto; */
    /* background: #f00; */
    max-height: calc(100dvh - 190px);
    display: table;
}

.box-text-add-mediafile .box-icon-empty {
    position: absolute;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    cursor: pointer;
    border-radius: 3px;
    flex-direction: column;
}


.box-text-add-mediafile .list-mediafile { /* display: flex; */
    justify-content: space-evenly;
    height: 100%;
    width: 100%;
    position: relative; /* background: #f00; */
    overflow-y: auto;
    flex: 1; /* max-height: 100px; *//* position: absolute; *//* position: relative; */
}

.box-text-add-mediafile .list-mediafile .mediafile-item {
    width: auto;
    height: auto;
    float: left;
    border: 1px solid;
    padding: 4px;
    overflow: hidden;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    max-width: 222px;
    max-height: 130px;
    align-items: center;
}

.box-text-add-mediafile .list-mediafile .mediafile-item img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

.box-text-add-mediafile .list-mediafile .mediafile-item video {
    width: 100%;
    height: auto;
}

.box-text-add-mediafile .box-icon-empty:hover {
    background: #e6e8eb94;
}

.box-text-add-mediafile .box-icon-empty p {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.box-text-add-mediafile .box-icon-empty .icon-img-empty {
    padding: 10px;
    border-radius: 50%;
    background: #e4e6eb;
    /* width: 25px; */
    /* height: 25px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-text-add-mediafile .box-icon-empty .icon-img-empty i {
    background-image: url('../images/fc-icon-add.png');
    background-position: 0 -233px;
    background-size: auto;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    display: inline-block;
}

.create-new-feeds {

    /* background: #f00; */

    height: 100%;

    /* position: absolute; */

    width: 100%;

    display: flex;

    flex-direction: column;

    margin-bottom: 10px;

}

.create-new-feeds .create-new-feeds-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    overflow-y: scroll;

    max-height: calc(100dvh - 110px);
}

.create-new-feeds .create-new-feeds-content::-webkit-scrollbar {
    width: 8px;
    display: block !important;

}

/* Track */
.create-new-feeds .create-new-feeds-content::-webkit-scrollbar-track {
    background: #fff !important;
    border-radius: 0 3px 3px 0
}

/* Handle */
.create-new-feeds .create-new-feeds-content::-webkit-scrollbar-thumb {
    background: rgb(57 57 57 / 51%) !important;
    cursor: pointer;

}

.wrapper-caption #contentEditableField:empty:before {
    content: attr(placeholder);
    color: #858484;
    display: block;
    position: absolute;
    font-size: 22px;
}


.create-new-feeds .btn-post {
    background-color: rgb(254, 44, 85);
    color: #fff;
    width: calc(100% - 20px);
    /* width: 93%; */
    /* padding: 7px; */
    margin: auto;
    height: 43px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    outline: none;
    box-shadow: 0 0 1px 1px #ccc;
    /* margin-top: 10px; */
}

.create-new-feeds .btn-post:disabled {
    border: none;
    color: rgba(22, 24, 35, 0.34);
    background-color: rgba(22, 24, 35, 0.06);
    pointer-events: none;
}

.wrapper-create-post-container {
    .create-post-container {
        max-width: 500px;
        height: auto;
        min-height: auto;
        max-height: 100dvh;

        .modal-content {
            overflow: unset;
            max-height: 100dvh;
        }
    }
}

.box-text-add-mediafile .mediafile-action {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    padding: 14px;
}

.mediafile-action button {
    border: 0;
    padding: 5px 10px;
    float: left;
    margin-right: 10px;
    border-radius: 3px;
    box-shadow: 0 0 1px 1px #ccccccc4;
    font-size: 14px;
    background: #fff;
    display: none;
    line-height: 18.6px;
}

.box-text-add-mediafile:hover .mediafile-action button {
    display: flex;
}

.mediafile-action .edit-media {
}

.mediafile-action .edit-media i {
    background-image: url('../images/fc-icon-add.png');
    background-position: 0 -141px;
    background-size: 25px;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 5px;
}

.mediafile-action .add-media {
}

.mediafile-action .add-media i {
    background-image: url('../images/fc-icon-add.png');
    background-position: 0 -156px;
    background-size: 25px;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 5px;
}

.mediafile-action .clear-media {
    float: right;
    border-radius: 50%;
    padding: 5px;
    margin-right: 0;
    margin-top: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}

.mediafile-action .clear-media svg {
}

.wrapper-create-post-container {
    .create-post-container {
        max-width: 500px;
        height: auto;
        min-height: auto;
        max-height: 100dvh;

        .modal-content {
            overflow: unset;
            max-height: 100dvh;
        }
    }
}
.edit-file-post-container {
    z-index: 999999;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #5d585880;
    left: 0;
    top: 0;

    .modal-container {
        .modal-content {
            max-height: unset;
        }

        height: unset;
        max-height: unset;
    }

    .edit-file-list-container {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 20px);
        /* padding: 5px; */

        .list-file-edit {
            flex: 1;
            overflow-y: auto;
            display: grid;
            grid-template-columns:repeat(2, 1fr);
            grid-auto-rows: 200px;
            grid-gap: 5px;
            margin-right: 2px;
            padding: 5px;


            &::-webkit-scrollbar {
                width: 8px;
                display: block !important;

            }

            /* Track */

            &::-webkit-scrollbar-track {
                background: #fff !important;
                border-radius: 0 3px 3px 0
            }

            /* Handle */

            &::-webkit-scrollbar-thumb {
                background: rgb(57 57 57 / 51%) !important;
                cursor: pointer;

            }

            .list-file-edit-item {
                height: 200px;
                border: 1px solid #cccc;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #a59a9ad1;
                border-radius: 5px;
                position: relative;

                img {
                    overflow: hidden;
                    cursor: pointer;
                    object-fit: cover;
                    max-width: 100%;
                    max-height: 100%;
                    height: auto;
                    width: auto;
                }

                video {
                    overflow: hidden;
                    cursor: pointer;
                    object-fit: cover;
                    max-width: 100%;
                    max-height: 100%;
                    height: auto;
                    width: auto;
                }

                .fa-play {
                    position: absolute;
                    font-size: 14px;
                    color: #fff;
                    border: 1px solid;
                    padding: 5px 5px 5px 8px;
                    border-radius: 50%;
                }

                .icon-remove {
                    float: right;
                    border-radius: 50%;
                    padding: 3px;
                    margin-right: 0;
                    margin-top: 0;
                    align-items: center;
                    justify-content: center;
                    display: flex;
                    position: absolute;
                    top: 7px;
                    right: 7px;
                    border: none;
                }

                &:hover .icon-remove, &:focus {
                    /*display: none;*/
                }
            }

        }

        .list-file-edit-action {
            height: 61px;
            display: flex;
            align-items: center;

            bottom {
                border: none;
            }

            .add-media {

                .add {
                    background-image: url(../images/fc-icon-add.png);
                    background-position: 0 -233px;
                    background-size: auto;
                    width: 20px;
                    height: 20px;
                    background-repeat: no-repeat;
                    display: inline-block;
                    -webkit-filter: brightness(0) saturate(100%) invert(100%) sepia(4%) saturate(2883%) hue-rotate(198deg) brightness(120%) contrast(100%);
                    filter:  brightness(0) saturate(100%) invert(100%) sepia(4%) saturate(2883%) hue-rotate(198deg) brightness(120%) contrast(100%);
                    margin-right: 10px;
                }

                display: flex;
                align-items: center;

            }

            .list-file-edit-done {
                padding: 10px 30px;
                margin-right: 10px;
            }

            justify-content: flex-end;
            padding: 10px;
            border-top: 1px solid #ccc;
            margin-top: 10px;
        }

        /* padding: 10px; */
    }
}

.list-file-edit-action button {
    background-color: rgb(254, 44, 85);
    color: #fff;
    height: 43px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    outline: none;
    box-shadow: 0 0 1px 1px #ccc;
}

@media screen and (max-width: 932px) {
    .wrapper-create-post-container {
        .create-post-container {
            max-width: 100%;
            height: 100% !important;
            min-height: auto;
            max-height: 100dvh;

            .modal-content {
                overflow: unset;
                max-height: 100dvh;
            }
        }
    }

    .edit-file-post-container .edit-file-list-container {
        display: flex;
        flex-direction: column;
        height: 100dvh;
    }
    .mediafile-action button {
        display: flex;
    }

    .emojiPicker {
        top: unset !important;
        z-index: 11;
        right: 0;
        width: 100%;
        bottom: 0;
    }
    .emojiPicker aside {
        width: 100% !important;
        max-height: 284px;
    }
}
