.page_content_part{
    position: relative;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

.page_content_part.edit_topic_form_wrap,
.page_content_part.add_topic_form_wrap{
    width: 100%;
}

.page_content_part.forum_rule_wrap{
    width: 420px;
    margin-left: 16px;
    position: sticky;
    top: 120px;
}

.editor_form .field_item{
    margin-bottom: 16px;
    font-weight: var(--p-font-weight-semibold);
}

.editor_form .field_item.author_select .field_label,
.editor_form .field_item.author_select .field_input,
.editor_form .field_item.group_select .field_input,
.editor_form .field_item.group_select .field_label{
    display: inline-block;
    vertical-align: middle;
}

.editor_form .field_item.author_select .field_label{
    border-right: 1px solid var(--contentTextColorLight);
    padding-right: 10px;
    margin-bottom: 0;
    line-height: 1;
    margin-right: 2px;
}

#id_add_post_form .field_item.author_select .field_label{
    margin-left: 0;
}


.editor_form .field_item .field_error{
    
}

.editor_form .field_item .field_attachment{
    
}

.editor_form .field_item .tox-tinymce,
.editor_form .field_item input{
    background-color: var(--contentBackgroundColor);
    border: none;
    border-radius: 10px;
}

.tox-tinymce .tox-edit-area__iframe,
.tox-tinymce .tox-editor-header,
.tox-tinymce .tox-toolbar-overlord,
.tox-tinymce .tox-toolbar__primary,
.tox-tinymce .tox-toolbar--scrolling{
    background-color: transparent !important;
}


.editor_form .field_item .field_label{
    margin-left: 10px;
    margin-bottom: 4px;
}

.editor_form .form_submit_element_wrap{
    padding-top: 20px;
}

.editor_form .form_submit_element_wrap input{
    width: 100%;
}

.post_submit_button_wrap{
    text-align: right;
}

.post_submit_button_wrap a.button.ow_hidden{
    display: none;
}

.simplified .tox-editor-header{
    order: 2;
}

.simplified .tox-editor-header .tox-tbtn{
    background-color: transparent;
    cursor: pointer;
}

.simplified .tox-editor-header .tox-tbtn:hover{
    background-color: transparent;
}

.simplified .tox-sidebar-wrap{
    order: 1;
}


.add_topic_form_cmp_modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    background-color: #00000082;
    display: flex;
    align-items: center;
}

.topic_editor_cmp_content {
    margin: auto;
    width: 100%;
    max-width: 1314px;
    box-sizing: border-box;
    background-color: var(--bodyBackgroundColor);
    border-radius: 36px;
    padding: 40px;
    padding-bottom: 20px;
}

.field_item.topic_subject input[name="title"] {
    padding: 0 14px;
}

@media screen and (max-width: 1334px){
    .topic_editor_cmp_content{
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (max-width: 840px){
    .page_content_part.edit_topic_form_wrap,
    .page_content_part.add_topic_form_wrap,
    .page_content_part.forum_rule_wrap{
        width: 100%;
    }
    
    .page_content_part.forum_rule_wrap{
        margin-left: 0;
        padding-top: 30px;
        border-top: 1px solid var(--boxBorderColor);
        margin-top: 30px;
    }
}

@media screen and (max-width: 640px){
    .topic_editor_cmp_content{
        padding: 20px;
        border-radius: 20px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        position: absolute;
        bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .field_item.topic_body .tox-tinymce{
        height: 260px !important;
    }
}