.modal:not(.o_legacy_dialog) .o_select_media_dialog {
    $min-row-height: 128;

    .o_we_existing_attachments {
        min-height: $min-row-height + px;

        .o_we_attachment_placeholder {
            flex-grow: $min-row-height;
            flex-basis: $min-row-height + px;
        }

        .o_existing_attachment_cell.o_we_image {
            transition: opacity 0.5s ease 0.5s;

            .o_we_media_dialog_img_wrapper {
                @extend %o-preview-alpha-background;
            }
        }

        .o_existing_attachment_remove {
            border-radius: 0 0 0 $o-we-item-border-radius;

            &:hover {
                color: $o-we-color-danger;
            }
        }
    }

    .o_we_attachment_selected {
        @include o-we-active-wrapper($top: 5px, $left: 5px);
    }

    .o_we_load_more {
        scroll-margin: $modal-inner-padding;
    }

    .font-icons-icons > span {
        width: 50px;
    }

    .o_video_dialog_form textarea {
        min-height: 95px;
    }

    .o_video_preview {
        @include o-we-preview-box();

        .media_iframe_video {
            width: 100%;
        }
    }
}
