/* Rich Text styles. Generated from main.css by tools/split-discovery-css.php. */

.serial-editor-field > textarea.serial-editor-source,
textarea.serial-editor-source {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.serial-editor-inline .ql-tooltip input[type="text"] {
    width: 170px;
    max-width: calc(100% - 24px);
    padding: 3px 5px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.serial-editor-field {
    position: relative;
    display: block;
}

.serial-editor-inline {
    background: #fffdf8;
    border: 1px solid #e7ddd1;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(47, 36, 31, 0.08);
    overflow: visible;
}

.serial-editor-inline > .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e7ddd1;
    border-radius: 12px 12px 0 0;
    background: rgba(246, 240, 234, 0.85);
    box-sizing: border-box;
    line-height: 1.4;
    padding: 8px;
    position: relative;
    z-index: 2;
}

.serial-editor-inline > .ql-container.ql-snow {
    border: 0;
    border-radius: 0 0 12px 12px;
    font-size: 1.02rem;
    line-height: 1.72;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f241f;
    overflow: hidden;
}

.serial-editor-inline .ql-container .ql-tooltip:not(.ql-editing) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-formats {
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.serial-editor-inline .ql-toolbar.ql-snow button {
    width: 28px;
    height: 24px;
    padding: 3px 5px;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker {
    display: inline-block;
    float: none;
    height: 24px;
    vertical-align: middle;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 24px;
    padding: 2px 8px;
    color: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker:not(.ql-expanded) .ql-picker-options {
    display: none;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-options {
    z-index: 3;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-fill {
    fill: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow button:hover,
.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label:hover {
    color: var(--blue);
}

.serial-editor-inline .ql-toolbar.ql-snow button.ql-active,
.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: var(--blue);
}

.serial-editor-inline .ql-editor {
    min-height: inherit;
    padding: 16px 18px 20px;
}

.serial-editor-inline .ql-editor p {
    margin: 0 0 0.95em;
}

.serial-editor-inline .ql-toolbar .ql-sceneBreak {
    font-size: 1rem;
    line-height: 1;
}

.managed-rich-text {
    font-size: 1.05rem;
    line-height: 1.75;
}

.managed-rich-text > *:first-child {
    margin-top: 0;
}

.managed-rich-text > *:last-child {
    margin-bottom: 0;
}

.message-compose input[type="text"],
.message-compose textarea:not(.serial-editor-source) {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.message-compose textarea:not(.serial-editor-source) {
    padding: 12px;
    resize: vertical;
}

.chapter-reader-body .ql-align-center,
.chapter-reader-body p[style*="text-align: center"],
.chapter-reader-body h1[style*="text-align: center"],
.chapter-reader-body h2[style*="text-align: center"],
.chapter-reader-body h3[style*="text-align: center"] {
    text-align: center;
}

.chapter-reader-body .ql-align-right,
.chapter-reader-body p[style*="text-align: right"],
.chapter-reader-body h1[style*="text-align: right"],
.chapter-reader-body h2[style*="text-align: right"],
.chapter-reader-body h3[style*="text-align: right"] {
    text-align: right;
}

.chapter-reader-body .ql-align-justify,
.chapter-reader-body p[style*="text-align: justify"],
.chapter-reader-body h1[style*="text-align: justify"],
.chapter-reader-body h2[style*="text-align: justify"],
.chapter-reader-body h3[style*="text-align: justify"] {
    text-align: justify;
}
