/* ── Основний блок ───────────────────────────────────────────────────────── */
.ai-summary {
    /* background, border, padding — overridden by dynamic CSS from settings */
    margin-bottom: 35px;
}

.ai-header {
    /* background, color, font-size, padding — overridden by dynamic CSS */
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ai-content {
    color: #10212b;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ── Варіанти (для залогінених) ─────────────────────────────────────────── */
.ai-variants {
    margin-top: 20px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

.ai-variants-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.ai-variant {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.ai-variant--active {
    border-color: #2a9d2a;
    background: #f6fff6;
}

.ai-variant-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ai-variant-num {
    font-weight: 700;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-variant-badge {
    font-size: 11px;
    color: #2a9d2a;
    font-weight: 600;
}

.ai-variant-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.ai-btn-select {
    font-size: 11px;
    padding: 3px 10px;
    background: #10212b;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-btn-select:hover {
    background: #e41e26;
}

.ai-btn-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    background: #10212b;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-btn-more:hover {
    background: #e41e26;
}

.ai-btn-more:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Статус і ліміт ─────────────────────────────────────────────────────── */
.ai-status {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}

.ai-limit-note {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* ── Редакторська панель варіантів — візуально відокремлена ─────────────── */
.ai-variants {
    margin-top: 20px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 14px 16px;
    background: #fffdf0;
}

.ai-variants-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-bottom: 12px;
}

/* Невеликий заголовок "тільки для редактора" */
.ai-variants::before {
    content: "🔒 Видно лише вам як редактору";
    display: block;
    font-size: 10px;
    color: #bbb;
    margin-bottom: 10px;
    font-style: italic;
}

/* ── RTL support (Arabic) ─────────────────────────────────────────────────── */
[dir="rtl"] .ai-summary,
html[lang="ar"] .ai-summary {
    direction: rtl;
    text-align: right;
}
html[lang="ar"] .ai-header {
    float: right;
    clear: right;
}
