.room-msg-theme-bubble {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 3px 0 !important;
    margin: 0 0 1px 0 !important;
    border-radius: 0 !important;
}

.room-msg-theme-bubble .room-msg-theme-bubble-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    direction: ltr !important;
}

.room-msg-theme-bubble .room-msg-theme-bubble-body-row {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
    margin-top: 3px !important;
    max-width: min(100%, 340px) !important;
}

.room-msg-theme-bubble .u-pic {
    border-radius: 50% !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.room-msg-theme-bubble .u-msg {
    border-radius: 18px !important;
    margin-top: 0 !important;
}

.room-msg-theme-bubble .u-msg img,
.room-msg-theme-bubble .u-msg video,
.room-msg-theme-bubble .u-msg audio,
.room-msg-theme-bubble .u-msg iframe {
    max-width: 100% !important;
    border-radius: 14px !important;
}

.room-msg-theme-bubble .u-msg a {
    color: #fff !important;
    text-decoration: underline !important;
}

.room-msg-theme-bubble .site-badge-inline,
.room-msg-theme-bubble .room-owner-badge-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 4px 0 0 !important;
    vertical-align: middle !important;
}

.room-msg-theme-bubble .room-msg-inline-actions {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: bottom !important;
}

.room-msg-theme-bubble .room-msg-inline-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    padding: 0 !important;
    margin: 0 0 4px 4px !important;
    align-self: flex-end !important;
    float: none !important;
    position: static !important;
    border-radius: 999px !important;
    border: 1px solid rgba(240, 68, 82, 0.16) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #e23b48 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.room-msg-theme-bubble>.btn.minix.btn-primary.fa,
.room-msg-theme-bubble .room-msg-theme-bubble-main>.btn.minix.btn-primary.fa {
    display: none !important;
}

.room-msg-theme-bubble .room-msg-inline-action::before {
    font-size: 11px !important;
    line-height: 1 !important;
}

.room-msg-theme-bubble .room-msg-inline-action-room-reply,
.room-msg-theme-bubble .room-msg-inline-action-reply {
    border-color: rgba(59, 130, 246, 0.16) !important;
    color: #2563eb !important;
}

.room-msg-theme-bubble .room-msg-inline-action:hover {
    transform: translateY(-1px);
}

.isreply {
    display: none;
    width: 100%;
    padding: 6px 8px;
    background: #eef6ff;
    border-top: 1px solid rgba(30, 64, 175, 0.16);
    direction: rtl;
}

.room-composer-reply-card {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.room-composer-reply-card__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    border: 0;
    color: #ffffff;
    background: #dc2626;
    cursor: pointer;
}

.room-composer-reply-card__body {
    min-width: 0;
    flex: 1;
    padding: 6px 8px;
    border-right: 3px solid #2563eb;
}

.room-composer-reply-card__title,
.room-message-reply-preview__title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.room-composer-reply-card__text,
.room-message-reply-preview__text {
    margin-top: 2px;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-rply {
    display: none;
    width: calc(100% - 8px);
    margin: 3px 4px 2px;
    clear: both;
    direction: rtl;
}

.room-message-reply-preview {
    border-right: 3px solid #2563eb;
    background: rgba(239, 246, 255, 0.96);
    border-radius: 8px;
    padding: 5px 8px;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.u-topic[data-mention-topic] {
    cursor: pointer;
}

.room-mention-bubble {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92em;
    line-height: 1.55;
    vertical-align: baseline;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 6px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.room-msg-theme-bubble .room-mention-bubble {
    background: linear-gradient(135deg, #facc15, #fb7185);
    color: #1f2937;
}

.room-mention-suggestions {
    width: 100%;
    max-height: 210px;
    overflow-y: auto;
    padding: 6px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.12);
    direction: rtl;
}

.room-mention-suggestions__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #0f172a;
    text-align: right;
    cursor: pointer;
}

.room-mention-suggestions__item:hover,
.room-mention-suggestions__item.is-active {
    background: #e0f2fe;
}

.room-mention-suggestions__avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dbeafe;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.room-mention-suggestions__name {
    min-width: 0;
    overflow: hidden;
    color: #075985;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
