/*
 * brc-richtext.css
 *
 * 1. How rich post content looks when rendered on the site.
 * 2. How the editor fits inside the existing form cards.
 */

/* ---------- 1. rendered content ---------- */

.brc-richtext p {
    margin: 0 0 1em 0;
}

.brc-richtext p:last-child {
    margin-bottom: 0;
}

.brc-richtext ul,
.brc-richtext ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

.brc-richtext ul {
    list-style: disc;
}

.brc-richtext ol {
    list-style: decimal;
}

.brc-richtext li {
    margin-bottom: 0.25em;
}

.brc-richtext a {
    color: #5454D4;
    text-decoration: underline;
    word-break: break-word;
}

.brc-richtext strong {
    font-weight: 700;
}

.brc-richtext u {
    text-decoration: underline;
}

/* ---------- 2. the editor ---------- */

.brc-editor-group {
    margin-bottom: 20px;
    text-align: left;
}

.brc-editor-label {
    display: block;
    color: #696871;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 8px;
}

.brc-editor-group .ql-toolbar.ql-snow {
    border: 1px solid #e5e5e5;
    border-radius: 10px 10px 0 0;
    background: #fafafa;
}

.brc-editor-group .ql-container.ql-snow {
    border: 1px solid #e5e5e5;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    height: 180px;
    font-family: inherit;
    font-size: 16px;
}

.brc-editor-group .ql-editor {
    min-height: 100%;
    color: #19191b;
    line-height: 1.5;
}

.brc-editor-group .ql-editor.ql-blank::before {
    color: #9a9a9a;
    font-style: normal;
}

.brc-editor-group .ql-editor a {
    color: #5454D4;
}

.brc-editor-group .brc-editor-invalid .ql-container.ql-snow,
.brc-editor-group .ql-container.ql-snow.brc-editor-invalid {
    border-color: #9b2828;
}

.brc-editor-group .brc-editor-error {
    display: none;
    color: #9b2828;
    font-size: 14px;
    margin: 6px 0 0 0;
}

/* The theme sets every input inside the form card to 100% width and
   height. Keep Quill's link tooltip input its normal size. */
.brc-editor-group .ql-snow .ql-tooltip input[type="text"] {
    width: 170px;
    height: 26px;
    padding: 3px 5px;
    font-size: 13px;
}

.brc-editor-group .ql-snow .ql-tooltip {
    z-index: 10;
}

/* Quill's own list markers inside the editor */
.brc-editor-group .ql-editor ul,
.brc-editor-group .ql-editor ol {
    padding-left: 1.5em;
}