/* CKEditor 5 — TarabarBazaar (RTL + Vazirmatn) */

.ck.ck-editor {
    width: 100%;
}

.ck.ck-toolbar {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.ck.ck-editor__main > .ck-editor__editable,
.ck.ck-editor__editable,
.ck-content {
    font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif !important;
    direction: rtl;
    text-align: right;
    line-height: 1.9;
    min-height: 12rem;
}

.ck.ck-editor__editable_inline {
    border-radius: 0 0 0.5rem 0.5rem !important;
}

.ck.ck-dropdown__panel,
.ck.ck-balloon-panel,
.ck.ck-list,
.ck.ck-button {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.ck-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
}

.ck-content table td,
.ck-content table th {
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.6rem;
    min-width: 2rem;
}

.ck-content table th {
    background: #f1f5f9;
    font-weight: 600;
}

.ck-content img {
    max-width: 100%;
    height: auto;
}

.ck-content blockquote {
    border-right: 3px solid #94a3b8;
    border-left: 0;
    margin: 0.75rem 0;
    padding: 0.25rem 0.9rem 0.25rem 0;
    color: #475569;
}

.cms-builder__field .ck.ck-editor__main > .ck-editor__editable {
    min-height: 140px;
    font-size: 0.8125rem;
}

.cms-builder__ck-host {
    width: 100%;
}

.rich-text-field .ck.ck-editor {
    border-radius: 0.5rem;
}
