.cometchat-thread-header {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0px;
    flex-shrink: 0;
    background: var(--cometchat-background-color-01, #FFF);
}

.cometchat-thread-header__top-bar {
    display: flex;
    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
    align-items: center;
    gap: var(--cometchat-padding-2, 8px);
    height: 64px;
    align-self: stretch;
    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);
    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);
    background: var(--cometchat-background-color-01, #FFF);
}

.cometchat-thread-header__top-bar-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 0 0;
    overflow: hidden;
}

.cometchat-thread-header__top-bar-title {
    color: var(--cometchat-text-color-primary, #141414);
    text-overflow: ellipsis;
    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);
}

.cometchat-thread-header__top-bar-subtitle-text{
    color: var(--cometchat-text-color-secondary, #727272);
    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.cometchat-thread-header__top-bar-subtitle-text-clickable {
    cursor: pointer;
}

.cometchat-thread-header__top-bar-close {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cometchat-thread-header__top-bar-close .cometchat-button {
    height: 24px;
    width: 24px;
    padding: 0px;
    gap: 0px;
    background: transparent;
}

.cometchat-thread-header__top-bar-close .cometchat-button:hover {
    background: transparent;
}

.cometchat-thread-header__top-bar-close .cometchat-button:active {
    background: transparent;
}

.cometchat-thread-header__top-bar-close .cometchat-button__icon {
    background: var(--cometchat-icon-color-primary, #141414);
}

.cometchat-thread-header__top-bar-close .cometchat-button__icon:hover {
    background: var(--cometchat-icon-color-highlight);
}

.cometchat-thread-header__body {
    display: flex;
    width: 100%;
    padding-top: var(--cometchat-padding-3, 12px);
    flex-direction: column;
    flex-shrink: 0;
}

.cometchat-thread-header__body-timestamp {
    display: flex;
    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);
    align-self: center;
    border-radius: var(--cometchat-radius-1, 4px);
    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);
    background: var(--cometchat-background-color-02, #FAFAFA);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.cometchat-thread-header__body-timestamp .cometchat-date {
    color: var(--cometchat-text-color-primary, #141414);
    text-align: center;
    font: var(--cometchat-font-caption1-medium, 500 12px Roboto);
    padding: 0px;
    display: flex;
}

.cometchat-thread-header__message {
    display: flex;
    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
    gap: 0px;
    min-height: 50px;
    max-height: 300px;
    overflow: hidden auto;
    flex: 1 0 0;
}

.cometchat-thread-header-hide-scrollbar .cometchat-thread-header__message::-webkit-scrollbar,
.cometchat-thread-header-hide-scrollbar .cometchat-thread-header__message::-webkit-scrollbar-thumb {
    display: none;
}

.cometchat-thread-header__message .cometchat-text-bubble .cometchat-text-bubble__read-more {
    display: none;
}

.cometchat-thread-header__message-small {
    min-height: fit-content;
    max-height: 150px;
}

.cometchat-thread-header__message-incoming {
    align-self: flex-start;
}

.cometchat-thread-header__message-outgoing {
    align-self: flex-end;
}

.cometchat-thread-header__message .cometchat-message-bubble__wrapper {
    padding: 0px;
    width: 100%;
}

.cometchat-thread-header__reply-bar {
    display: flex;
    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-5, 20px);
    justify-content: center;
    align-items: center;
    gap: var(--cometchat-padding-2, 8px);
    align-self: stretch;
}

.cometchat-thread-header__reply-bar-count {
    color: var(--cometchat-text-color-secondary, #727272);
    text-align: center;
    font: var(--cometchat-font-body-regular, 400 14px Roboto);
}

.cometchat-thread-header__reply-bar-divider {
    width: 100%;
    height: 1px;
    background: var(--cometchat-border-color-default, #E8E8E8);
    flex: 1;
}