.o_form_view .o_form_sheet .o_notebook .tab-content .tab-pane .o_mail_body {
    // cancel padding of form_sheet
    margin-top: -$o-sheet-cancel-tpadding;
    margin-left: -$o-sheet-cancel-hpadding;
    margin-right: -$o-sheet-cancel-hpadding;
    margin-bottom: -$o-sheet-cancel-bpadding;
}

.o_mail_theme_selector {
    > a {
        @include o-position-absolute(0, 0, auto, 0);
        height: $o-wysiwyg-toolbar-height;
        line-height: $o-wysiwyg-toolbar-height;
        border-radius: 0;
        background-color: $o-wysiwyg-bg-color;
        color: $o-wysiwyg-color;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: none !important;

        &:hover, &:focus, &:active {
            color: $o-wysiwyg-color-light;
        }

        i {
            margin-right: 10px;
        }
    }

    &.show > a {
        color: white;
        background-color: $o-wysiwyg-color;
    }

    .dropdown-menu {
        position: absolute;
        bottom: -1px;
        top: -3px !important;
        left: -5px !important;
        right: 3px !important;
        margin: 0;
        border-radius: 0;
        overflow: auto;
        background-color: $o-wysiwyg-bg-color;
        z-index: 1050;

        .dropdown-item { 
            padding: 10px 10px;
            &:first-child {
                display: none;
            }

            .o_thumb {
                display: none;
                background-size: cover;
                padding-top: 50%;
                border: 1px solid $o-wysiwyg-border-color;


                &.logo {
                    display: block;
                }
            }


            &:hover {
                background-color: $o-wysiwyg-bg-color;

                .o_thumb {
                    border: 1px solid black;
                }
            }

            &.selected .o_thumb {
                border: 2px solid $o-brand-odoo;
                background-color: $o-wysiwyg-bg-color;
            }
        }
    }
}

body.o_force_mail_theme_choice {
    #oe_snippets {
        width: 100%;

        .o_mail_theme_selector {
            .dropdown-toggle {
                display: none;
            }

            .dropdown-menu {
                display: block;

                .dropdown-item {
                    margin: 0;
                    float: left;
                    clear: none;
                    width: 100%;
                    max-width: 25%;
                    transition: all 0.3s ease 0s;

                    &:first-child {
                        display: block;
                    }

                    .o_thumb {
                        display: none;
                        padding-top: 107%;
                        border: 1px solid $o-wysiwyg-color-light;
                        border-top: 1px solid $o-wysiwyg-border-color;
                        box-shadow: 0 5px 10px rgba(black, 0.8);
                        will-change: transform;
                        backface-visibility: hidden;
                        transition: all 0.3s ease 0s;

                        &.small {
                            display: block;
                        }

                        @media screen and (min-width: 900px) {
                            &.small {
                                display: none;
                            }
                            &.large {
                                display: block;
                            }
                        }
                    }

                    &:hover {
                        background-color: $o-wysiwyg-color;

                        .o_thumb {
                            box-shadow: 0 5px 30px 1px rgba(black, 0.6);
                        }
                    }

                    &.o_mass_mailing_themes_upgrade .o_thumb {
                        position: relative;
                        display: block;
                        border: 1px dashed white;
                        opacity: 0.2;

                        > .fa {
                            @include o-position-absolute(0, 0, 0, 0);
                            text-align: center;
                            font-size: 50px;
                            color: white;

                            &::before {
                                vertical-align: middle;
                            }
                            &::after {
                                content: "";
                                display: inline-block;
                                height: 100%;
                                vertical-align: middle;
                            }
                        }
                    }
                }
            }
        }
    }
    .note-editor {
        display: none;
    }
}

.o_basic_theme.o_in_iframe {
    padding-left: 0px !important;
    #oe_snippets {
        display: none;
    }
    .note-editor.o_snippets_loaded {
        padding-left: 0px!important;
    }
}

.note-editable .o_layout {
    overflow: initial;
}

.oe_structure {
    width: 100%;
}

:root {
    font-size: 14px;
}
