/* ============================================================
   Banner Maker – Frontend / Public Styles  (mobile-first)
   ============================================================ */

.bm-generator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    color: #1d2327;
    box-sizing: border-box;
    width: 100%;
}
.bm-generator *,
.bm-generator *::before,
.bm-generator *::after { box-sizing: inherit; }

/* ============================================================
   CONTROLS
   ============================================================ */
.bm-generator__controls {
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Mobile: 1 coloana / Desktop: grid auto */
.bm-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
@media (min-width: 600px) {
    .bm-controls-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 14px;
        margin-bottom: 14px;
    }
}

.bm-control-group { display: flex; flex-direction: column; gap: 5px; }

.bm-label {
    font-size: 12px;
    font-weight: 600;
    color: #3c434a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Input & select – tap targets mari pe mobil */
.bm-select,
.bm-input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    font-size: 15px;
    color: #1d2327;
    background: #fff;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.bm-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23646970' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.bm-select:focus,
.bm-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.18);
}

.bm-editable-fields {
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    margin-top: 4px;
}
.bm-section-title {
    font-size: 11px; font-weight: 700; color: #646970;
    text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px;
}
.bm-editable-fields__inner { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 600px) {
    .bm-editable-fields__inner {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
}

/* ============================================================
   CANVAS PREVIEW  – simplu si scalabil
   Canvasul mentine rezolutia nativa (calitate download).
   CSS max-width:100% + height:auto il face responsive automat.
   ============================================================ */
.bm-generator__preview { width: 100%; }

.bm-canvas-wrapper {
    position: relative;
    width: 100%;
    background: #1c1e2a;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;             /* fara padding – canvas umple tot */
}

/* Placeholder – inainte de selectia template-ului */
.bm-canvas-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #a7aaad;
    text-align: center;
    width: 100%;
    min-height: 180px;
}
.bm-canvas-placeholder .dashicons {
    font-size: 48px; width: 48px; height: 48px;
    margin-bottom: 12px; color: #646970;
}
.bm-canvas-placeholder p { margin: 0; font-size: 14px; line-height: 1.5; }

/* *** CHEIA SCALARII ***
   Canvas pastreaza rezolutia nativa (canvas.width / canvas.height).
   CSS il scaleza vizual sa incapa in container, fara scroll. */
.bm-main-canvas {
    display: block;
    max-width: 100%;
    height: auto;           /* pastreaza aspect ratio la orice latime */
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

/* Loader overlay */
.bm-canvas-loader {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; color: #fff; font-size: 14px; border-radius: 12px;
}
.bm-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: bm-spin 0.7s linear infinite;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* ============================================================
   BUTOANE ACTIUNI – mobile-first, full-width pe mobil
   ============================================================ */
.bm-generator__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
@media (min-width: 480px) {
    .bm-generator__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}
.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: all 0.15s; text-decoration: none;
    width: 100%;              /* full-width pe mobil */
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 480px) { .bm-btn { width: auto; } }
.bm-btn .dashicons { font-size: 18px; width: 18px; height: 18px; flex-shrink: 0; }
.bm-btn--primary { background: #2271b1; color: #fff; border-color: #2271b1; }
.bm-btn--primary:hover  { background: #135e96; border-color: #135e96; color: #fff; }
.bm-btn--secondary { background: #3c434a; color: #fff; border-color: #3c434a; }
.bm-btn--secondary:hover { background: #1d2327; border-color: #1d2327; color: #fff; }
.bm-btn--outline { background: transparent; color: #2271b1; border-color: #2271b1; }
.bm-btn--outline:hover { background: #f0f6fd; }

/* ============================================================
   MODAL – bottom sheet pe mobil, centrat pe desktop
   ============================================================ */
.bm-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 600px) { .bm-modal { align-items: center; } }
.bm-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.bm-modal__box {
    position: relative; background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
}
@media (min-width: 600px) {
    .bm-modal__box {
        border-radius: 12px; width: 90%; max-width: 560px;
        max-height: 80vh; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
}
/* Drag handle vizual pe mobil */
.bm-modal__box::before {
    content: ''; display: block;
    width: 40px; height: 4px;
    background: #e0e0e0; border-radius: 2px;
    margin: 12px auto 0;
}
@media (min-width: 600px) { .bm-modal__box::before { display: none; } }
.bm-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #e0e0e0;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.bm-modal__header h3 { margin: 0; font-size: 16px; }
.bm-modal__close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: #646970; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.bm-modal__close:hover { color: #d63638; background: #fef2f2; }
.bm-modal__body { padding: 20px; }
.bm-modal__body p { margin: 0 0 14px; font-size: 14px; }
.bm-modal__body .bm-label { display: block; margin-bottom: 6px; }
.bm-code-block {
    display: flex; align-items: center;
    background: #f6f7f7; border: 1px solid #e0e0e0;
    border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; gap: 10px;
}
.bm-code-block code { flex: 1; font-size: 12px; color: #3c434a; word-break: break-all; }
.bm-copy-code {
    background: #2271b1; color: #fff; border: none; border-radius: 6px;
    padding: 6px 14px; cursor: pointer; font-size: 13px;
    white-space: nowrap; flex-shrink: 0; min-height: 36px;
}
.bm-copy-code:hover { background: #135e96; }

/* ============================================================
   EMBED MODE
   ============================================================ */
.bm-generator--embed .bm-generator__controls,
.bm-generator--embed .bm-generator__actions { display: none; }
.bm-generator--embed .bm-canvas-wrapper { border-radius: 0; background: transparent; }

/* ============================================================
   AI ASSISTANT SECTION  (în generator frontend)
   ============================================================ */
.bm-ai-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.bm-ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bm-ai-icon {
    font-size: 16px;
    color: #2271b1;
    flex-shrink: 0;
}
.bm-ai-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2271b1;
}
.bm-ai-hint {
    font-size: 12px;
    color: #646970;
}
.bm-ai-input-row {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
@media (min-width: 480px) {
    .bm-ai-input-row { flex-direction: row; align-items: center; }
    .bm-ai-input-row .bm-input { flex: 1; }
}
.bm-btn--ai {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    padding: 12px 18px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}
.bm-btn--ai:hover, .bm-btn--ai:active {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}
.bm-btn--ai:disabled {
    opacity: 0.65;
    cursor: wait;
}
.bm-ai-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bm-spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
.bm-ai-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #d63638;
}

/* ── AI Multi-Language ── */
.bm-ai-multilang {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f0f6fd;
    border: 1px solid #c2d5f0;
    border-radius: 8px;
}
.bm-ai-ml-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bm-ai-ml-tab  { font-weight: 600 !important; transition: all .15s; }

/* ==============================================
   ============================================== */

/* ==============================================
   ============================================== */
/* ==============================================

/* ===============================================
@media (max-width: 768px) {
@media (max-width: 768px) {

/* ===============================================
}

/* ===============================================
}

@media (max-width: 768px) {
        flex-wrap: wrap;
    }
}
/* ===============================================
   TEXT EDITOR - CLEAN BUILD
   =============================================== */

    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 15px;
}

/* Toolbar */
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

/* Buttons */
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    background: #f0f0f0;
    border-color: #999;
}

    background: #000 !important;
    border-color: #000 !important;
}

    color: #fff !important;
}

    color: #fff !important;
}

    font-size: 18px;
    color: #555;
}

/* Color Picker Button */
    width: 34px !important;
    height: 34px !important;
}

    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    left: 0;
    top: 0;
}

    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: #000;
}

/* Erase Button */
    width: auto !important;
    padding: 0 12px !important;
    gap: 5px;
}

    font-size: 12px;
    font-weight: 600;
    color: #555;
}

/* Separator */
    width: 1px;
    height: 24px;
    background: #ccc;
    margin: 0 5px;
}

/* CONTENTEDITABLE - THE MOST IMPORTANT PART */
    display: block !important;
    width: 100% !important;
    min-height: 130px !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: #fff !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

    background: #fffef5 !important;
}

/* Make formatting visible */
    font-weight: bold !important;
}

    font-style: italic !important;
}

    text-decoration: underline !important;
}

    text-decoration: line-through !important;
}

/* ===============================================
   FORCE TEXT AREA VISIBLE - MAXIMUM PRIORITY
   =============================================== */

/* Multiple selectors for maximum specificity */
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 140px !important;
    max-height: 350px !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #222 !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    outline: none !important;
}

    background: #fffef0 !important;
    border-color: #3182ce !important;
}

    content: attr(data-placeholder) !important;
    color: #aaa !important;
    font-style: italic !important;
}

/* Force color picker to work */
    position: relative !important;
    width: 34px !important;
    height: 34px !important;
}

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 999 !important;
}

    display: block !important;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #ccc !important;
    border-radius: 3px !important;
    background: #000000 !important;
    pointer-events: none !important;
}


/* ===============================================
   FINAL FIXES
   =============================================== */

/* 1. MARGIN TOP 10px pentru content */
    margin-top: 10px !important;
}

/* 2. COLOR BOX VIZIBIL - arată ca un buton negru normal */
    position: relative !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    background: #f0f0f0 !important;
    border-color: #999 !important;
}

/* Color input - transparent peste preview */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Color preview - pătrat colorat VIZIBIL */
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #999 !important;
    border-radius: 3px !important;
    background-color: #000000 !important;
    pointer-events: none !important;
    display: block !important;
    z-index: 1 !important;
}


/* ===============================================
   BUTTONS FIX - Icons visible, color working
   =============================================== */

/* RESET all buttons to normal state */
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

    background: #f5f5f5 !important;
    border-color: #999 !important;
}

/* Icons - VISIBLE by default */
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #333 !important;
}

/* ACTIVE state - ONLY when active */
    background: #000000 !important;
    border-color: #000000 !important;
}

    color: #ffffff !important;
}

    color: #ffffff !important;
}

/* Color button - normal background */
    background: #ffffff !important;
    border: 1px solid #ccc !important;
}

    background: #f5f5f5 !important;
}

/* Color input - transparent overlay */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Color preview square - VISIBLE */
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #999 !important;
    border-radius: 3px !important;
    background-color: #000000 !important;
    display: block !important;
    pointer-events: none !important;
}

/* Erase button */
    width: auto !important;
    padding: 0 12px !important;
    gap: 5px !important;
}

    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Separator */
    width: 1px !important;
    height: 24px !important;
    background: #ccc !important;
    margin: 0 6px !important;
}


/* ===============================================
   EDITOR BUTTONS - FINAL VERSION
   White by default, black when active
   =============================================== */

/* ALL BUTTONS - WHITE by default */
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

    background: #f5f5f5 !important;
    border-color: #999 !important;
}

/* ICONS - BLACK by default */
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #333333 !important;
}

/* ACTIVE STATE - BLACK background, WHITE icons */
    background: #000000 !important;
    border-color: #000000 !important;
}

    color: #ffffff !important;
}

    color: #ffffff !important;
}

/* COLOR BUTTON */
    background: #ffffff !important;
}

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

    width: 20px !important;
    height: 20px !important;
    border: 2px solid #999 !important;
    border-radius: 3px !important;
    background-color: #000000 !important;
    display: block !important;
    pointer-events: none !important;
}

/* ERASE BUTTON */
    width: auto !important;
    min-width: auto !important;
    padding: 0 12px !important;
    gap: 5px !important;
}

    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* SEPARATOR */
    width: 1px !important;
    height: 24px !important;
    background: #ccc !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
}


/* ===============================================
   TEXT EDITOR - SINGLE CLEAN VERSION
   =============================================== */

/* Container */
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 15px;
}

/* Toolbar */
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

/* Buttons */
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    background: #f0f0f0;
    border-color: #999;
}

    background: #000;
    border-color: #000;
}

    color: #fff;
}

    font-size: 18px;
    color: #333;
}

/* Color button */
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 3px;
    background: #000;
}

/* Erase button */
    width: auto;
    padding: 0 12px;
    gap: 5px;
}

    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Separator */
    width: 1px;
    height: 24px;
    background: #ccc;
    margin: 0 5px;
}

/* CONTENTEDITABLE - MOST IMPORTANT */
    display: block;
    width: 100%;
    min-height: 140px;
    max-height: 350px;
    padding: 18px 22px;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
    border: none;
    outline: none;
    overflow-y: auto;
    box-sizing: border-box;
}

    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

    background: #fffef5;
}

/* Make formatting visible */
    font-weight: bold;
}

    font-style: italic;
}

    text-decoration: underline;
}

    text-decoration: line-through;
}


/* ===============================================
   TEXT EDITOR - FIREFOX COMPATIBLE
   =============================================== */

.bm-text-editor {
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 15px;
}

.bm-text-editor__toolbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.bm-text-editor__btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
}

.bm-text-editor__btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.bm-text-editor__btn--active {
    background: #000;
    border-color: #000;
}

.bm-text-editor__btn--active .dashicons,
.bm-text-editor__btn--active .bm-text-editor__btn-text {
    color: #fff;
}

.bm-text-editor__btn .dashicons {
    font-size: 18px;
    color: #333;
}

/* Color button */
.bm-text-editor__btn-color .bm-text-editor__color-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.bm-text-editor__btn-color .bm-text-editor__color-preview {
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 3px;
    background: #000;
}

/* Erase button */
.bm-text-editor__btn-erase {
    width: auto;
    padding: 0 12px;
    gap: 5px;
}

.bm-text-editor__btn-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Separator */
.bm-text-editor__separator {
    width: 1px;
    height: 24px;
    background: #ccc;
    margin: 0 5px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* CONTENTEDITABLE - FIREFOX COMPATIBLE */
.bm-text-editor__content {
    display: block;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    width: 100%;
    min-height: 140px;
    max-height: 350px;
    padding: 18px 22px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
    border: none;
    outline: none;
    overflow-y: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.bm-text-editor__content:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

.bm-text-editor__content:focus {
    background: #fffef5;
}

.bm-text-editor__content strong,
.bm-text-editor__content b {
    font-weight: bold;
}

.bm-text-editor__content em,
.bm-text-editor__content i {
    font-style: italic;
}

.bm-text-editor__content u {
    text-decoration: underline;
}

.bm-text-editor__content s {
    text-decoration: line-through;
}


/* FORCE HIDE title/subtitle sections when disabled */
.bm-field-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

