/*
 * ============================================================
 * xMAFIA R3.72 — ORIGINAL CHAT SMILES
 * ============================================================
 *
 * Original SmileReplacer places the smile so that its bottom
 * coincides with the bottom of the TextField character bounds:
 *
 *   smile.y =
 *       charBounds.y +
 *       charBounds.height -
 *       smile.getHeight()
 *
 * Inline-block + vertical-align:text-bottom is the browser
 * structural equivalent while retaining each original asset's
 * native dimensions.
 */

.xmafia-chat-original-smile {
    display: inline-block;

    width: auto;
    height: auto;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    border: 0;

    vertical-align: text-bottom;

    object-fit: none;

    image-rendering: auto;

    user-select: none;

    pointer-events: auto;
}


/*
 * Do not clip tall original smile animations.
 */

.original-chat-message,
.original-chat-text,
.original-chat-textformat {
    overflow: visible;
}


/*
 * Keep original chat text wrapping.
 *
 * Large smile assets increase only their own message line;
 * adjacent accumulated message blocks remain independent.
 */

.original-chat-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
