/* Comment / reply composer: organize the INNER controls into a tidy grouped
   toolbar and a clear action footer. No background changes -- the box keeps the
   profile's own header and body styling (including a member's custom theme).
   Only the buttons/pills get fixed styling so they read clearly on any theme. */

.mbp-cmp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.mbp-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 30px;
    height: 28px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #33475b;
    font-family: inherit;
    font-size: 9pt;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.mbp-tool:hover {
    background: #eef5fb;
    border-color: #5b8fb9;
    color: #1f5c9e;
}
.mbp-tool-b { font-weight: bold; }
.mbp-tool-i { font-style: italic; }
.mbp-tool-u { text-decoration: underline; }
.mbp-tool-ico { font-size: 11pt; line-height: 1; }

/* Group divider */
.mbp-cmp-sep {
    width: 1px;
    height: 20px;
    margin: 0 3px;
    background: #cfd8e3;
    opacity: .6;
}

.mbp-cmp-color {
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
}

/* Font picker, styled to match the tool pills. Extra right padding so the native
   dropdown arrow never overlaps the label. */
.mbp-cmp-font {
    height: 28px;
    max-width: 150px;
    margin: 0;
    padding: 0 22px 0 9px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #33475b;
    font-family: inherit;
    font-size: 9pt;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}
.mbp-cmp-font:hover { border-color: #5b8fb9; }

.mbp-cmp-spacer { margin-left: auto; }

/* Revealed rows stay hidden until asked for (an explicit display: would
   otherwise beat the `hidden` attribute). */
.mbp-cmp-emojis {
    margin-top: 6px;
    line-height: 2;
}
.mbp-cmp-emojis[hidden] { display: none; }
.mbp-cmp-emojis a { display: inline-block; padding: 1px 2px; vertical-align: middle; }
.mbp-cmp-emojis a img { vertical-align: middle; }

.mbp-cmp-imgrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.mbp-cmp-imgrow[hidden] { display: none; }
.mbp-cmp-imgrow input[type="text"] {
    flex: 1 1 auto;
    min-width: 120px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    font-family: inherit;
    font-size: 9pt;
    box-sizing: border-box;
}

/* Preview panel (revealed on demand). Its own light card so the rendered
   comment is readable regardless of the profile theme. */
.mbp-cmp-preview {
    margin-top: 10px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    color: #22303c;
}
.mbp-cmp-preview[hidden] { display: none; }
.mbp-cmp-preview-head {
    padding: 5px 10px;
    background: #eef2f7;
    border-bottom: 1px solid #e2e8f1;
    font-size: 8pt;
    font-weight: bold;
    color: #5a6b7b;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.mbp-cmp-preview-body {
    padding: 10px;
    font-size: 10pt;
    min-height: 24px;
    word-wrap: break-word;
}
.mbp-cmp-preview-note {
    padding: 0 10px 8px;
    font-size: 8pt;
    color: #6b7c8f;
}

/* Footer actions */
.mbp-cmp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(150, 150, 150, .3);
}
.mbp-cmp-submit {
    padding: 8px 20px;
    border: 0;
    border-radius: 7px;
    background: #1f5c9e;
    color: #fff;
    font-family: inherit;
    font-size: 10pt;
    font-weight: bold;
    cursor: pointer;
    transition: background .12s ease;
}
.mbp-cmp-submit:hover { background: #17497f; }
