/* Colored (background) posts.
 *
 * WoWonder's style.css caps the text at 370px and scrolls it inside the box.
 * Here the box grows to fit the whole text instead; the admin word limit
 * (admin-cp/post-settings) is what keeps these posts short. */

.post .wo_actual_colrd_post {
    height: auto;
    text-align: center;
}
.post .wo_actual_colrd_post span {
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Composer: the textarea sits in the flow so the colored box grows with it
   (it was absolutely positioned and capped at 370px). */
.publisher-box.wo_pub_change_color textarea.postText {
    position: relative;
    width: 100%;
    max-height: none !important;
    overflow: hidden;
    padding-bottom: 44px;
}

.frepali-colored-counter {
    display: none;
}
.publisher-box.wo_pub_change_color .frepali-colored-counter:not(:empty) {
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
}
.publisher-box.wo_pub_change_color .frepali-colored-counter.over {
    background: #d93025;
}
