/* ✅ Основное исправление выравнивания */
.cf-complex__tabs--tabbed-horizontal {
    display: block !important; /* ⛔️ отключаем flex, чтобы избежать переполнения */
}

.cf-complex__inserter {
    display: block !important;
    text-align: left !important;
    width: 150px !important;
    margin: 8px 0 16px 0;
    margin-bottom: 19px !important;
}

/* ✅ Остальной стиль кнопки */
.cf-complex__inserter-button {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    font-size: 14px;
    color: #1d2327;
    cursor: pointer;
    transition: background 0.2s;
}

.cf-complex__inserter-button:hover {
    background: #f0f0f0;
}
.cf-complex__tabs-item--current {
    background-color: #4e4c4c !important;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: default !important;
    box-shadow: inset 0 0 0 1px #3a3a3a;

}
.cf-complex__tabs-item--current .cf-complex__tabs-title {
    font-weight: 600;
    color: #f0f0f0;
}
/* Подсветка места вставки */

.cf-sortable-placeholder {
    background-color: #95eae6 !important;
    border: 2px dashed #1e615f;
    border-radius: 6px;
    min-height: 34px;
    min-width: 150px;
    box-sizing: border-box;
    margin: 0 4px;
    position: relative;
}
.cf-sortable-placeholder::after {
    content: "Replace here";
    color: #2e7d32;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
}
.cf-complex__tabs-title {
    width: 120px;
    white-space: normal;
    word-break: break-word;
}
.move-buttons {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.move-buttons button {
    background: #eee;
    border: none;
    color: #333;
    font-size: 16px;
    padding: 4px 6px;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.move-buttons button:hover {
    background: #ccc;
}
.sort-buttons {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.sort-buttons button {
    background: #eee;
    border: none;
    color: #333;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-buttons button:hover {
    background: #ccc;
}

.ai-checker-question-content {
    margin-bottom: 12px;
}

.ai-checker-question-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.ai-checker-question-content a {
    overflow-wrap: anywhere;
}
