/*Контейнер редатора*/
.blog-details-page .ckeditor-content {
    all: revert;
	margin: 0px 50px 0px 50px;
}
.ckeditor-content img {
	height: auto;
}
.ckeditor-content figure {
    margin: 0px 0px 0px 0px;
	width: 100%;
    height: auto;
}

.ckeditor-content figure.image-style-block-align-center {
    margin-left: auto;
    margin-right: auto;
}

.ckeditor-content figure.image_resized {
    margin-left: auto;
    margin-right: auto;
}

.ckeditor-content figure.image-style-block-align-left {
    margin-left: 0px;
    margin-right: auto;
}

.ckeditor-content figure.image-style-block-align-right {
    margin-left: auto;
    margin-right: 0px;
}

.ckeditor-content figure img {
    max-width: 100%;
    height: auto;
	margin-left: auto;
    margin-right: auto;
	display: block;
}

.ckeditor-content figure.image-style-align-center {
    margin-left: 20px 20px;
	margin-top: 5px;
    margin-right: auto;
}

.ckeditor-content figure.image-style-align-left {
    margin-left: 0px;
    margin-right: 20px;
	margin-top: 5px;
	float: left;
}

.ckeditor-content figure.image-style-align-right {
    margin-right: 0px;
	margin-left: 20px;
	margin-top: 5px;
	float: right;
}

.ckeditor-content figure.table {
    margin: 20px 0;
    overflow-x: auto; /* чтобы не ломало мобильную версию */
}

.ckeditor-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

/* ячейки */
.ckeditor-content th,
.ckeditor-content td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

/* заголовки таблицы */
.ckeditor-content th {
    background: #f5f5f5;
    font-weight: 600;
}

/* полосатость строк (красиво читается) */
.ckeditor-content tr:nth-child(even) td {
    background: #fafafa;
}

/* hover эффект */
.ckeditor-content tr:hover td {
    background: #f0f7ff;
}

.ckeditor-content ul {
    margin: 15px 0 15px 25px;
    padding-left: 20px;
    list-style-type: circle;
}

.ckeditor-content ol {
    margin: 15px 0 15px 25px;
    padding-left: 20px;
}

.ckeditor-content li {
    margin: 6px 0;
}

/* убираем влияние CKEditor paragraph внутри li */
.ckeditor-content li p {
    margin: 0;
    display: inline;
}

/* текст внутри списка */
.ckeditor-content li span {
    font-size: 18px;
}

.editor-box {
    min-height: 450px;
    border: 1px solid #d0d0d0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* CKEditor toolbar container */
.editor-toolbar {
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 8px 8px 0 0;
}

/* make CKEditor content area feel alive */
.ck-editor__editable {
    min-height: 350px !important;
}