/* Quill rich text — Zerti admin (matches product-edit form-control styling). */
#zertiAdmin .zerti-rich-editor {
    --zerti-quill-radius: 0.5rem;
    --zerti-quill-focus-border: color-mix(in srgb, var(--zerti-brand) 55%, var(--zerti-docs-border));
    --zerti-quill-focus-ring: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-brand) 22%, transparent);
    --zerti-quill-hover-border: color-mix(in srgb, var(--zerti-brand) 35%, var(--zerti-docs-border));
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: var(--zerti-quill-radius);
    box-shadow: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    overflow: visible;
}

/* Stretch inside flex column card bodies */
#zertiAdmin .zerti-main-content .card .card-body > .zerti-rich-editor,
#zertiAdmin .zerti-wc-postbox > .card-body > .zerti-rich-editor,
#zertiAdmin .zerti-wc-postbox > .zerti-wc-postbox__body > .zerti-rich-editor {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-rich-editor__quill {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    direction: rtl;
}

#zertiAdmin .zerti-rich-editor:hover {
    border-color: var(--zerti-quill-hover-border);
}

#zertiAdmin .zerti-rich-editor:focus-within {
    border-color: var(--zerti-quill-focus-border);
    box-shadow: var(--zerti-quill-focus-ring);
    outline: 0;
}

#zertiAdmin .zerti-rich-editor:has(.zerti-rich-editor__source[readonly]),
#zertiAdmin .zerti-rich-editor:has(.zerti-rich-editor__source:disabled),
#zertiAdmin .zerti-rich-editor[data-zerti-rich-editor-readonly='1'] {
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 82%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-rich-editor:has(.zerti-rich-editor__source[readonly]):focus-within,
#zertiAdmin .zerti-rich-editor:has(.zerti-rich-editor__source:disabled):focus-within,
#zertiAdmin .zerti-rich-editor[data-zerti-rich-editor-readonly='1']:focus-within {
    border-color: var(--zerti-docs-border);
    box-shadow: none;
}

#zertiAdmin .zerti-rich-editor__source {
    display: none !important;
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow,
#zertiAdmin .zerti-rich-editor .ql-container.ql-snow {
    border: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow {
    border-radius: var(--zerti-quill-radius) var(--zerti-quill-radius) 0 0;
    width: 100%;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, var(--zerti-docs-bg));
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 85%, transparent);
    padding: 0.35rem 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    row-gap: 0.28rem;
    column-gap: 0.05rem;
    overflow: visible;
}

/* Row 1: icon buttons + color/background/align; row 2: font/size/header dropdowns only */
#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow::before {
    content: '';
    flex-basis: 100%;
    width: 0;
    height: 0;
    order: 10;
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats {
    order: 0;
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats:has(.ql-font),
#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats:has(.ql-size),
#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats:has(.ql-header) {
    order: 11;
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    margin-inline-end: 0.35rem;
    padding-inline-end: 0.35rem;
    border-inline-end: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-rich-editor .ql-toolbar.ql-snow .ql-formats:last-child {
    margin-inline-end: 0;
    padding-inline-end: 0;
    border-inline-end: none;
}

#zertiAdmin .zerti-rich-editor .ql-container.ql-snow {
    border-radius: 0 0 var(--zerti-quill-radius) var(--zerti-quill-radius);
    background: var(--zerti-docs-subtle-bg);
    width: 100%;
}

#zertiAdmin .zerti-rich-editor .ql-editor {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.55;
    color: var(--zerti-docs-text);
    min-height: inherit;
    padding: 0.4rem 0.5rem;
}

#zertiAdmin .zerti-rich-editor .ql-editor.ql-blank::before {
    right: 0.5rem;
    left: auto;
    text-align: right;
    color: var(--zerti-docs-muted);
    font-style: normal;
    font-weight: 400;
    opacity: 1;
}

/* Toolbar controls — match Zerti inputs (override Snow float layout for flex + RTL) */
#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.55rem;
    padding: 0.15rem;
    border-radius: 0.35rem;
    border: 1px solid transparent;
    background: transparent;
    transition:
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button svg,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button svg {
    float: none;
    display: block;
    width: 1rem;
    height: 1rem;
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar .ql-picker,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar .ql-picker {
    float: none;
    display: inline-flex;
    align-items: center;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-picker,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-icon-picker {
    width: auto;
    min-width: 1.65rem;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-picker .ql-picker-label,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-icon-picker .ql-picker-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    min-width: 1.65rem;
    min-height: 1.55rem;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-picker .ql-picker-label svg,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-icon-picker .ql-picker-label svg {
    position: static;
    margin: 0;
    width: 1rem;
    height: 1rem;
    display: block;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-label.ql-stroke {
    stroke: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-label.ql-fill {
    fill: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-transparent {
    opacity: 1;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-direction svg {
    display: block;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-direction svg:last-child {
    display: none;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-direction.ql-active svg:first-child {
    display: none;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-direction.ql-active svg:last-child {
    display: block;
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button:hover,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button:hover {
    background: color-mix(in srgb, var(--zerti-brand) 10%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--zerti-brand) 22%, transparent);
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button.ql-active,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button.ql-active {
    background: color-mix(in srgb, var(--zerti-brand) 16%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--zerti-brand) 38%, var(--zerti-docs-border));
    color: var(--zerti-brand);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-stroke {
    stroke: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-fill {
    fill: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button:hover .ql-stroke,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button:hover .ql-stroke,
#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--zerti-brand);
}

#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button:hover .ql-fill,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button:hover .ql-fill,
#zertiAdmin .zerti-rich-editor .ql-snow.ql-toolbar button.ql-active .ql-fill,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: var(--zerti-brand);
}

/* Dropdowns — form-select-like (chevron on physical left, label RTL) */
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker {
    color: var(--zerti-docs-text);
    height: 1.55rem;
    font-weight: 500;
    direction: rtl;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-label {
    padding-inline-start: 1.35rem;
    padding-inline-end: 0.4rem;
    text-align: right;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    transition:
        background-color 0.12s ease,
        border-color 0.12s ease;
}

/* Farsi labels for font / size / header dropdowns (override Quill Snow English) */
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item::before {
    content: 'سانس' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value='serif']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {
    content: 'سریف' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value='monospace']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {
    content: 'تک‌فاصله' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item::before {
    content: 'معمولی' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label[data-value='small']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {
    content: 'کوچک' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label[data-value='large']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {
    content: 'بزرگ' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label[data-value='huge']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {
    content: 'بسیار بزرگ' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before {
    content: 'معمولی' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='1']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {
    content: 'عنوان ۱' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='2']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {
    content: 'عنوان ۲' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='3']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {
    content: 'عنوان ۳' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='4']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {
    content: 'عنوان ۴' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='5']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {
    content: 'عنوان ۵' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value='6']::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {
    content: 'عنوان ۶' !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before {
    content: attr(data-label) !important;
}

/* Snow theme puts the arrow SVG on the right; Zerti RTL selects use the left */
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
    right: auto !important;
    left: 0 !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-picker .ql-picker-label svg,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-icon-picker .ql-picker-label svg {
    right: auto !important;
    left: 4px !important;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-label:hover {
    background: color-mix(in srgb, var(--zerti-brand) 8%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--zerti-brand) 18%, transparent);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker.ql-expanded .ql-picker-label {
    border-color: var(--zerti-quill-focus-border);
    background: var(--zerti-docs-subtle-bg);
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-options {
    background: var(--zerti-docs-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--zerti-docs-text) 12%, transparent);
    z-index: 100070;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.25rem;
    direction: rtl;
    text-align: right;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-item {
    border-radius: 0.35rem;
    padding: 0.2rem 0.45rem;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-item:hover {
    background: color-mix(in srgb, var(--zerti-brand) 10%, var(--zerti-docs-subtle-bg));
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-item.ql-selected {
    background: color-mix(in srgb, var(--zerti-brand) 18%, var(--zerti-docs-subtle-bg));
    color: var(--zerti-brand);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-label:hover,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-picker-label.ql-active {
    color: var(--zerti-docs-text);
}

/* Color pickers */
#zertiAdmin .zerti-rich-editor .ql-snow .ql-color-picker .ql-picker-item {
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
    border-radius: 0.2rem;
}

/* Link / video tooltip */
#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip {
    z-index: 100071;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    background: var(--zerti-docs-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    color: var(--zerti-docs-text);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--zerti-docs-text) 12%, transparent);
    padding: 0.35rem 0.45rem;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip::before {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip input[type='text'] {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    min-height: 1.55rem;
    padding: 0.12rem 0.45rem;
    background: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    color: var(--zerti-docs-text);
    box-shadow: none;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip input[type='text']:focus {
    border-color: var(--zerti-quill-focus-border);
    box-shadow: var(--zerti-quill-focus-ring);
    outline: 0;
}

#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip a.ql-action,
#zertiAdmin .zerti-rich-editor .ql-snow .ql-tooltip a.ql-remove {
    color: var(--zerti-brand);
}

/* Editor content */
#zertiAdmin .zerti-rich-editor .ql-editor h1,
#zertiAdmin .zerti-rich-editor .ql-editor h2,
#zertiAdmin .zerti-rich-editor .ql-editor h3,
#zertiAdmin .zerti-rich-editor .ql-editor h4,
#zertiAdmin .zerti-rich-editor .ql-editor h5,
#zertiAdmin .zerti-rich-editor .ql-editor h6 {
    font-weight: 700;
    color: var(--zerti-docs-text);
    margin: 0.55em 0 0.35em;
}

#zertiAdmin .zerti-rich-editor .ql-editor p {
    margin: 0 0 0.45em;
}

#zertiAdmin .zerti-rich-editor .ql-editor blockquote {
    border-inline-start: 3px solid color-mix(in srgb, var(--zerti-brand) 45%, var(--zerti-docs-border));
    padding-inline-start: 0.75rem;
    margin: 0.5em 0;
    color: var(--zerti-docs-muted);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 65%, var(--zerti-docs-bg));
    border-radius: 0 0.35rem 0.35rem 0;
}

#zertiAdmin .zerti-rich-editor .ql-editor pre.ql-syntax {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 8.5pt;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 90%, var(--zerti-docs-bg));
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
}

#zertiAdmin .zerti-rich-editor .ql-editor a {
    color: var(--zerti-brand);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

#zertiAdmin .zerti-rich-editor .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 75%, transparent);
}

#zertiAdmin .zerti-rich-editor .ql-editor .ql-video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    border: 1px solid var(--zerti-docs-border);
    overflow: hidden;
}

#zertiAdmin .zerti-rich-editor .ql-editor ul,
#zertiAdmin .zerti-rich-editor .ql-editor ol {
    padding-inline-start: 1.35rem;
    margin: 0.35em 0 0.55em;
}

/* WordPress media toolbar button — match 1rem SVG icon box */
#zertiAdmin .zerti-rich-editor button.ql-zertiMedia::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    width: 0.85rem;
    height: 0.85rem;
    line-height: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    content: '\f03e';
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-rich-editor button.ql-zertiMedia:hover::before,
#zertiAdmin .zerti-rich-editor button.ql-zertiMedia.ql-active::before {
    color: var(--zerti-brand);
}

#zertiAdmin .zerti-rich-editor--short .ql-editor,
#zertiAdmin .zerti-rich-editor--long .ql-editor {
    min-height: 14rem;
}

/* Flat product postbox editors (short / full description) — match product name card */
#zertiAdmin .zerti-inventory-product-edit .zerti-wc-postbox--editor > .zerti-wc-postbox__body {
    align-items: stretch;
}

#zertiAdmin .zerti-inventory-product-edit .zerti-wc-postbox--editor .zerti-rich-editor {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    background-color: var(--zerti-docs-bg);
    box-shadow: none;
}

#zertiAdmin .zerti-inventory-product-edit .zerti-wc-postbox--editor .zerti-rich-editor:focus-within {
    border-color: transparent;
    box-shadow: var(--zerti-quill-focus-ring);
}

#zertiAdmin .zerti-inventory-product-edit .zerti-wc-postbox--editor .zerti-rich-editor .ql-toolbar.ql-snow {
    border-radius: 0;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 72%, var(--zerti-docs-bg));
}

#zertiAdmin .zerti-inventory-product-edit .zerti-wc-postbox--editor .zerti-rich-editor .ql-container.ql-snow {
    border-radius: 0 0 var(--zerti-wc-postbox-radius, 0.5rem) var(--zerti-wc-postbox-radius, 0.5rem);
    background: var(--zerti-docs-bg);
}

/* Legacy card-wrapped editors (sidebar etc.) */
#zertiAdmin .zerti-wc-postbox.card .zerti-rich-editor {
    width: 100%;
    max-width: 100%;
    background-color: var(--zerti-docs-bg);
}

#zertiAdmin .zerti-wc-postbox.card .zerti-rich-editor .ql-toolbar.ql-snow {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 72%, var(--zerti-docs-bg));
}

#zertiAdmin .zerti-wc-postbox.card .zerti-rich-editor .ql-container.ql-snow {
    background: var(--zerti-docs-bg);
}
