:root {
    --reply-color-title: #001F25;
}

.chatAttachments_progress {
    height: 3px;
    width: 100%;
    background-color: #b3deff;
    border-radius: 10px;
    background-clip: padding-box;
    overflow: hidden;
    bottom: -2px;
    right: 0px;
    z-index: 15;
    position: relative;
    display: none;
}

.chatAttachments_progress .indeterminate:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.chatAttachments_progress .indeterminate:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

.chat_progress {
    height: 3px;
    width: 100%;
    background-color: #b3deff;
    border-radius: 10px;
    background-clip: padding-box;
    overflow: hidden;
    bottom: -2px;
    right: 0px;
    z-index: 15;
    position: relative;
    display: none;
}

.chat_progress .indeterminate:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.chat_progress .indeterminate:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

.chatAttachments_progress,
.chat_progress,
.msg_progress {
    background-color: #00819d36;
    height: 2px;
    border-radius: 50%;
}

.chatAttachments_progress .indeterminate,
.chat_progress .indeterminate,
.msg_progress .indeterminate {
    background-color: var(--main-color);
}

.ummaMessages__chatListContainer {
    margin-right: 16px;
}

.ummaMessages__chatListYou {
    float: left;
    font-weight: 600;
    margin-right: 8px;
    /* display: none; */
}

.ummaMessage__chatListHeader {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ummaMessages__search {
    border-radius: 10px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 8px;
    margin-bottom: 8px;
    width: 100%;
}

.ummaMessages__search input {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    padding: 12px 8px;
    border: none;
}

.ummaMessages__search input::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__search input::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__search input:-ms-input-placeholder {
    /* IE 10+ */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__search input:-moz-placeholder {
    /* Firefox 18- */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__chatListTabs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ummaMessages__chatListTabsItem {
    background: var(--header-form);
    border-radius: 10px;
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-main);
    padding: 8px;
    text-align: center;
    width: 100%;
    transition: 0.2s all;
}

.ummaMessages__chatListTabsItem.active {
    color: var(--main-color);
    background: var(--white);
}

.ummaMessages__chatListTabsItem.onlyIcon {
    width: 32px;
    min-width: 32px;
}

.ummaMessages__chatListTabsItem:hover {
    background: var(--white);
    transition: 0.2s all;
    cursor: pointer;
}

.ummaMessages__chatListItem {
    background: var(--white);
    border-radius: 10px;
    padding: 16px;
    gap: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: 0.2s all;
    display: grid;
    grid-template-columns: 52px 1fr;
}

.ummaMessages__chatListItem:hover {
    background: var(--header-form);
    transition: 0.2s all;
}

.ummaMessages__chatListItem.active {
    background: var(--main-color);
}

.ummaMessages__chatListItemAvatar {
    width: 52px;
    min-width: 52px;
    height: 52px;
    position: relative;
}

.ummaMessages__chatListItemAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ummaMessages__chatListItemBody {
    width: 100%;
}

.ummaMessages__chatListItemHeader {
    display: flex;
    justify-content: space-between;
}

.ummaMessages__chatListItemTitle {
    font-weight: 600;
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    color: var(--text-black);
    margin-bottom: 2px;
    gap: 4px;
}

.ummaMessages__chatListItemTitle>span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.ummaMessages__chatListItemSubTitle {
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    color: var(--text-black);
    margin-bottom: 2px;
}

.ummaMessages__chatListItemTime {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-main);
    white-space: nowrap;
}

.ummaMessages__chatListItemFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ummaMessages__typing,
.ummaMessages__chatListItemText {
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: var(--text-black);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    clear: both;
}

.ummaMessages__typing {
    color: var(--main-color);
}

.ummaMessages__typing:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4, end) 900ms infinite;
    animation: ellipsis steps(4, end) 900ms infinite;
    content: "\2026";
    /* ascii code for the ellipsis character */
    width: 0px;
}

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

@-webkit-keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

[data-chat-type="group"] .ummaMessages__chatListItemText {
    -webkit-line-clamp: 1;
}

.ummaFileIcon {
    background: var(--background-main);
    border-radius: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    position: relative;
    float: left;
}

.ummaFileIcon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ummaMessages__chatListItemCount {
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ummaMessages__chatListItemCount>span {
    font-size: 11px;
    width: auto;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 4px;
}

.ummaMessages__chatListItemCount>span:not([data-seen-icon]) {
    background: var(--main-color);
}

.active .ummaMessages__chatListItemCount>span:not([data-seen-icon]) {
    display: none;
}

.ummaMessages__chatListItemCount span[data-seen-icon]>svg path {
    fill: var(--text-main);
}

.active .ummaMessages__chatListItemCount span[data-seen-icon]>svg path {
    fill: var(--white);
}

.ummaMessages__chatListItemSeen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ummaMessages__chatListItemSeen span[data-seen-icon]>svg path {
    fill: var(--text-main);
}

.active .ummaMessages__chatListItemSeen span[data-seen-icon]>svg path {
    fill: var(--white);
}

.ummaMessages__chatListItem.active .ummaMessages__chatListItemTitle,
.ummaMessages__chatListItem.active .ummaMessages__chatListItemSubTitle,
.ummaMessages__chatListItem.active .ummaMessages__typing,
.ummaMessages__chatListItem.active .ummaMessages__chatListItemText,
.ummaMessages__chatListItem.active .ummaMessages__chatListItemTime {
    color: var(--white);
}

.ummaMessages__room {
    background: var(--white);
    display: none;
}

.ummaMessages__roomHeader {
    border-radius: 10px 10px 0px 0px;
    margin: 1px;
    display: flex;
    justify-content: space-between;
    background: var(--background-main);
    gap: 16px;
    padding: 16px;
    align-items: center;
    position: relative;
}


.ummaMessages__chatListItem,
.ummaMessages__chatListTabsItem,
.ummaMessages__search,
.ummaMessages__room {
    border-radius: 10px;
}

.ummaMessages__roomFooter {
    border-radius: 0px 0px 10px 10px;
}

.ummaMessages__roomHeaderBack {
    padding: 8px 8px;
    display: none;
}

.ummaMessages__roomHeaderAvatar {
    width: 42px;
    min-width: 42px;
    height: 42px;
    position: relative;
}

.ummaMessages__roomHeaderAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ummaMessages__roomHeaderAvatar .verified-color svg {
    width: 15px !important;
    height: 15px !important;
}

.ummaSidebar__container .shariat_police,
.pageMessages .ummaMessages__roomHeaderAvatar .shariat_police,
.pageMessages .ummaMessages__roomHeaderAvatar .verified-color {
    width: 15px !important;
    height: 15px !important;
}

.ummaMessages__roomHeaderBody {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ummaMessages__roomHeaderTitle {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    align-items: center;
    color: var(--text-black);
    margin-bottom: 4px;
    gap: 4px;
}

.ummaMessages__roomHeaderTitle a {
    color: inherit;
}

.ummaMessages__roomHeaderStatus {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.ummaMessages__roomHeaderAction {
    position: relative;
}

.ummaMessages__roomHeaderActionBtn {
    padding: 8px 8px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: 0.2s all;
}

.ummaMessages__roomHeaderActionBtn:hover {
    background: var(--border-2);
    transition: 0.2s all;
    cursor: pointer;
}

.ummaMessages__roomHeaderCallButtons {
    display: flex;
    gap: 16px;
}

.ummaMessages__roomHeaderCallButtons:hover {
    cursor: pointer;

}

.ummaMessages__roomHeaderCall:hover svg>path {
    fill: var(--main-color);
}

.ummaMessages__roomBody {
    position: relative;
    width: 100%;
    height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ummaMessages__roomContainerScrolled {
    overflow-y: overlay;
    overflow-x: hidden;
    flex: 1;
    width: 100%;
    margin-bottom: 0.5rem;
}

.ummaMessages__roomMessagesContainer::-webkit-scrollbar-thumb {
    visibility: hidden;
    transition: 0.2s all;
    background-color: transparent;
}

.ummaMessages__roomMessagesContainer {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    gap: 8px;
    flex-flow: column nowrap;
    padding-bottom: 16px;
    position: relative;
}

.ummaMessages__roomMessagesContainer:hover::-webkit-scrollbar-thumb {
    visibility: visible;
    transition: 0.2s all;
    background-color: rgb(0 0 0 / 17%);
}

.ummaMessages__messageItem {
    display: flex;
    margin-left: 24px;
    gap: 8px;
    margin-bottom: 4px;
    position: relative;
    animation-fill-mode: none !important;
    transition: 0.2s all;
    align-items: end;
}

.ummaMessages__messageItem.group:not(.outgoing) .ummaMessages__messageAvatar,
.ummaMessages__messageItem.group:not(.outgoing) .ummaMessages__messageTitle {
    display: block;
}

.ummaMessages__messageItem.outgoing {
    justify-content: flex-end;
    margin-right: 15px;
}

.ummaMessages__messageItem.outgoing+.ummaMessages__messageItem.outgoing:last-child .ummaMessages__message {
    border-radius: 20px 20px 2px 20px;
}

.outgoing .ummaMessages__message a[data-fancybox] {
    border-radius: 20px 20px 20px 20px;
}

.ummaMessages__messageItem.incoming+.ummaMessages__messageItem.incoming:last-child .ummaMessages__message {
    border-radius: 20px 20px 20px 2px;
}

.incoming .ummaMessages__message a[data-fancybox] {
    border-radius: 20px 20px 20px 20px;
}

.ummaMessages__messageTitle {
    display: none;
    padding: 8px 12px 0px;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
}

.ummaMessages__messageTitle a {
    color: var(--second-color);
}

.ummaMessages__messageAvatar {
    display: none;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.ummaMessages__messageAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ummaMessages__message {
    background: var(--header-form);
    max-width: 444px;
    border-radius: 20px 20px 20px 20px;
    position: relative;
    min-width: 110px;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-end;
    /* -webkit-touch-callout: none; */
    /* -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */
    flex-direction: column;
    transition: 0.2s all;
    font-weight: 500;
    font-size: 12px;
    overflow: hidden;
    width: auto;
}

.ummaMessages__message a[data-fancybox] {
    border-radius: 20px 20px 2px 20px;
    overflow: hidden;
}

.ummaMessages__message.mediaInclude {
    border: 1px solid var(--main-color);
}

.incoming .ummaMessages__message.mediaInclude {
    border: 1px solid var(--header-form);
}

.ummaMessages__messageVideo .ummaMessage__videoDuration {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 5px;
    width: 100%;
    max-width: 40px;
    font-weight: 600;
    font-size: 10px;
    line-height: 150.4%;
    text-align: center;
    padding: 2px;
    margin: 8px;
    position: absolute;
    color: var(--white);
    right: 0px;
}

.ummaMessage__videoPlayActionIcon {
    z-index: 99;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0;
    margin: auto auto;
    opacity: 0.8;
}

.ummaMessage__videoPreview {
    width: auto;
    max-height: 320px;
    max-width: 320px;
}

.ummaMessages__messageText {
    white-space: pre-line;
    min-width: 36px;
    width: 100%;
    padding: 6px 14px;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
}

.ummaMessages__messageText a {
    color: var(--reply-color-title);
}

.ummaMessages__messageText>p {
    margin: 0px;
}

.ummaMessages__call .ummaMessages__messageText {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ummaMessages__call .ummaMessages__messageTime {
    margin: 0px;
}

.ummaMessages__call .ummaMessages__messageTime span {
    line-height: 1em;
}

.ummaMessages__messageTime {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    z-index: 10;
    margin-left: 8px;
    margin-top: auto;
    float: right;
    padding: 0px 0px 0px 0px;
    font-style: italic;
}

.ummaMessages__message>.ummaMessages__messageTime {
    width: 100%;
    margin: 0px;
    padding: 4px 16px;
}

.ummaMessages__messageTime span {
    font-size: 10px;
    color: var(--text-main);
    line-height: 22px;
}

.outgoing .ummaMessages__message {
    background: var(--main-color);
    color: var(--white);
}

.outgoing .ummaMessages__message .ummaMessages__messageTime span {
    color: var(--white);
}

.outgoing .ummaMessages__message .ummaMessages__messageTime span>svg {
    margin-bottom: 2px;
}

.outgoing .ummaMessages__message .ummaMessages__messageTime span>svg path {
    fill: var(--white);
}

.ummaMessages__messageProduct {
    display: flex;
    flex-flow: column;
    max-width: max-content;
    padding: 8px;
    transition: 0.2s all;
}

.ummaMessages__messageProduct:hover img {
    transition: 0.2s all;
    transform: scale(1.1);
}

.ummaMessages__messageProductImage {
    border-radius: 16px;
    width: 150px;
    height: 150px;
    margin-bottom: 4px;
    overflow: hidden;
}

.ummaMessages__messageProductImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.2s all;
}

.ummaMessages__messageProductTitle {
    margin-bottom: 4px;
    width: 150px;
}

.ummaMessages__messageProductTitle a {
    color: var(--main-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.ummaMessages__messageItem.outgoing .ummaMessages__messageProductTitle a {
    color: inherit;
}

.ummaMessages__messageProductPrice {
    font-weight: 500;
    font-size: 12px;
    line-height: 150.4%;
}

.ummaMessages__messageEmpty {
    color: var(--text-main);
    font-style: italic;
}

.outgoing .ummaMessages__messageEmpty {
    color: var(--white);
}

.ummaMessages__roomDateSection {
    display: block;
    color: #ffffff;
    line-height: 20px;
    position: sticky;
    z-index: 2;
    background-color: rgb(0 0 0 / 17%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    max-width: 150px;
    margin: 0px auto 8px;
    border-radius: 10px;
    padding: 0px 8px;
    top: 4px;
    bottom: 0px;
    font-size: 12px;
}

.ummaMessages__roomDaySection {
    display: grid;
    /* gap: 8px; */
    flex-flow: column nowrap;
    /* -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */
}

.ummaMessages__roomDaySection:first-child {
    margin-top: auto !important;
}

.ummaMessages__messageImage img {
    /* width: fit-content; */
    max-height: 320px;
    height: 100%;
}

.ummaMessages__messageMenuWrap {
    display: none;
}

.ummaMessages__messageVideo .ummaMessages__messageTime,
.ummaMessages__messageImage .ummaMessages__messageTime {
    position: absolute;
    z-index: 9;
    bottom: 4px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2px 8px;
    border-radius: 4px;
}

.ummaMessages__messageVideo .ummaMessages__messageTime span,
.ummaMessages__messageImage .ummaMessages__messageTime span {
    color: var(--white)
}

.ummaMessages__messageVideo {
    display: flex;
    max-width: 320px;
    width: 100%;
    max-height: 320px;
    height: 100%;
}

.ummaMessages__messageVideo video {
    /* width: 100%; */
    max-height: 320px;
    border-radius: 0px;
}

.ummaMessages__messageAudio {
    padding: 8px 8px;
    min-width: 250px;
}

.ummaMessages__messageAudioTitle {
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-main);
    /* margin-bottom: 8px; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ummaMessages__messageAudioBody {
    display: flex;
}

.ummaMessage__messageAudioWaveContainer {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 0px 8px;
    gap: 4px;
}

.ummaMessage__messageAudioWave {
    height: 20px;
    overflow: hidden;
}

[data-message-type="audio"] .ummaMessage__messageAudioWave {
    height: auto;
    overflow: visible;
}

.ummaMessage__messageAudioWave audio {
    display: none;
}

.audio-waveform-container {
    position: relative;
    cursor: pointer;
}

.audio-waveform-fake {
    position: absolute;
    inset: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none
}

.playing .audio-waveform-background .audio-waveform-bar {
    opacity: .3;
}

.audio-waveform-background .audio-waveform-bar:hover {
    opacity: 1;
}

.audio-waveform-fake {
    transition: width 0.3s ease-out;
}


.progress-line.is-shown {
    display: block;
}

.progress-line {
    display: none;
    --height: 2px;
    --border-radius: 4px;
    --thumb-size: 12px;
    flex: 1 1 auto;
    margin: 6px 0px;
}

.progress-line {
    position: relative;
    height: 2px;
    position: relative;
    border-radius: var(--border-radius);
}

.progress-line:before {
    position: absolute;
    inset: 0;
    display: block;
    content: '';
    border-radius: inherit;
    opacity: .1;
    background-color: var(--white-2);
}

.incoming .progress-line:before {
    background-color: var(--color-4);
}

.progress-line__filled {
    background-color: var(--white);
    height: 100%;
    position: absolute;
}

.progress-line__filled:not(.progress-line__loaded):after {
    content: '';
    display: block;
    height: var(--thumb-size);
    width: var(--thumb-size);
    border-radius: 50%;
    background-color: var(--white);
    cursor: pointer;
    position: absolute;
    inset-inline-end: 0;
    top: calc((var(--thumb-size) - var(--height)) / -2);
    transform: translate(calc(var(--thumb-size) / 2 * 1)) scale(1);
}

.progress-line__filled:not(.progress-line__loaded):after {
    transition: transform .125s ease-in-out;
}

.progress-line__seek {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    caret-color: var(--color);
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    opacity: 0;
}

/* Скрытие ползунка для WebKit браузеров */
.progress-line__seek::-webkit-slider-thumb {
    appearance: none;
    width: 0;
    height: 0;
}

/* Скрытие ползунка для Firefox */
.progress-line__seek::-moz-range-thumb {
    appearance: none;
    width: 0;
    height: 0;
}

/* Скрытие ползунка для IE и Edge (старые версии) */
.progress-line__seek::-ms-thumb {
    width: 0;
    height: 0;
    border: none;
    /* Может потребоваться для полного скрытия */
}

.ummaMessage__messageAudioWaveDuration {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-main);
}

.ummaMessages__messageAudio .ummaMessages__messageTime {
    position: absolute;
    z-index: 9;
    bottom: 4px;
    right: 14px;
    font-weight: 400;
}

.ummaMessage__messageAudioAction {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

[data-message-type="voice"] .ummaMessage__messageAudioAction {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.ummaMessage__messageAudioAction:active {
    transform: scale(0.95);
    transition: 0.2s all;
}

.uploading .ummaMessage__messageAudioAction>svg {
    visibility: hidden;
}

.ummaMessage__messageAudioWaveContainer .ummaMessage__messageUploadingPercent {
    background: unset;
    backdrop-filter: unset;
    border-radius: unset;
    width: unset;
    max-width: unset;
    font-weight: unset;
    font-size: unset;
    line-height: unset;
    text-align: unset;
    padding: 0px;
    margin: 0px;
    position: relative;
}

.outgoing .ummaMessage__messageAudioWaveDuration,
.outgoing .ummaMessages__messageAudioTitle {
    color: var(--white);
}

.outgoing .ummaMessage__messageAudioAction svg>path {
    fill: var(--white);
}

.ummaMessages__messageMenu {
    background: var(--white);
    box-shadow: 0px 0px 12px -5px rgb(0 0 0 / 25%);
    border-radius: 10px 10px 10px 10px;
    padding: 8px;
    display: none;
    position: absolute;
    /* right: -230px; */
    /* top: 50% !important; */
    max-width: 221px;
    width: 221px;
    z-index: 3020;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nikahUmma__messageMenuItem {
    display: flex;
    flex-direction: column;
}

.nikahUmma__messageMenuItemBox {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    padding: 8px;
    border-radius: 10px;
    flex-direction: row-reverse;
}

.nikahUmma__messageMenuItem:not(:last-child):after {
    content: '';
    height: 1px;
    width: 92%;
    margin: 2px auto;
    background: #f3f4f7;
}

.nikahUmma__messageMenuText {
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 15px;
    color: var(--text-black);
    cursor: default;
}

.nikahUmma__messageMenuItemIcon {
    display: flex;
    width: 16px;
}

.nikahUmma__messageMenuItem:active .nikahUmma__messageMenuItemBox,
.nikahUmma__messageMenuItem:hover .nikahUmma__messageMenuItemBox {
    background: #f3f4f7;
}

.ummaMessages__roomFooter {
    padding: 24px 0px;
    margin: 0px 24px;
    border-top: 1px solid var(--border-2);
    background: var(--white);
}

.ummaMessages__sendForm {
    background: var(--background-main);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
}

.ummaMessages__sendFormAction {
    display: flex;
    align-items: flex-end;
    padding: 16px;
    gap: 16px;
    position: relative;
    z-index: 2002;
}

.ummaMessages__sendFormActionAttach {
    position: relative;
    overflow: hidden;
}

.ummaMessages__sendFormActionAttach input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    text-align: right;
    opacity: 0;
    outline: 0;
    cursor: inherit;
    display: block;
}

.ummaMessages__sendFormActionAttach.disactive {
    opacity: 0.3;
}

.ummaMessages__sendFormTextarea {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ummaMessages__sendFormTextarea textarea {
    background: transparent !important;
    width: 100% !important;
    outline: none;
    resize: none !important;
    padding: 12px 16px 0px;
    margin: 7px 0px;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    border: none;
    outline: none;
    height: 40px;
    border-left: 1px solid var(--border-2);
    max-height: 300px;
    border-radius: 0px !important;
}

.ummaMessages__sendFormTextarea textarea::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__sendFormTextarea textarea::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__sendFormTextarea textarea:-ms-input-placeholder {
    /* IE 10+ */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__sendFormTextarea textarea:-moz-placeholder {
    /* Firefox 18- */
    color: var(--border);
    white-space: nowrap;
}

.ummaMessages__sendFormActionSend {}

.ummaMessages__recordVoiceTimerContainer {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.ummaMessages__recordVoiceTimer {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--text-black);
    gap: 4px;
}

.ummaMessages__recordVoiceTimer::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background-color: var(--danger-2);
}

#deleteMessageModal,
#confirmStopRecordingModal {
    z-index: 2005;
}

.ummaMessages__recordWrapp {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 2000;
}

.ummaMessages__recordVoiceBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ummaMessages__recordVoiceBtn:active {
    transition: all 0.2s;
    transform: scale(0.95);
}

.ummaMessages__recordVoiceBtn:hover {
    cursor: pointer;
}

.ummaMessages__recordVoiceBtn:hover svg path {
    fill: var(--main-color);
    transition: all 0.2s;
}

.ummaMessages__recordVoiceBtn svg {
    position: relative;
    z-index: 10;
}

.ummaMessages__recordVoiceBtn.active::before {
    content: '';
    background-color: var(--main-color);
    -webkit-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    -moz-animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
    border-radius: 50px;
    position: absolute;
    width: 42px;
    height: 42px;
}

.ummaMessages__recordVoiceBtn.active svg>path {
    fill: var(--white);
}


@keyframes pulse {
    to {
        box-shadow: 0 0 0 10px rgb(2 129 157 / 10%);
        background-color: var(--main-color);
        transform: scale(0.9);
    }
}

.ummaMessages__voicePreviewContainer {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    animation: scale-up-horizontal-right 0.2s;
}

.ummaMessages__voicePreviewContainer.removing {
    animation: blur-out 0.5s linear both;
}

.removing {
    animation: blur-out 2s linear both;
}

.ummaMessages__voicePreviewWaveContainer {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 25px;
    background: var(--white);
    gap: 10px;
    padding: 0px 10px;
}

.ummaMessages__voicePreviewWaveData {
    width: 100%;
}

.ummaMessages__voicePreviewControl {
    display: flex;
    align-items: center;
}

.ummaMessages__voicePreviewDuration {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--text-main);
}

.ummaMessages__voicePreviewRemoveButton:hover {
    cursor: pointer;
}

.ummaMessages__voicePreviewRemoveButton:hover svg path {
    fill: var(--danger-2);
    transition: all 0.2s;
}

.ummaMessages__previewFormContainer {
    display: none;
    position: relative;
    width: 100%;
    height: 61px;
}

.ummaMessages__previewForm {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    position: absolute;
    width: 100%;
    background: var(--background-main);
}

.ummaMessages__previewFormIcon {
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.ummaMessages__previewFormBody {
    background: var(--background-main);
    border-radius: 2px 10px 10px 2px;
    border-left: 2px solid var(--second-color);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 8px;
}

.ummaMessages__previewFormInfo {
    width: 100%;
}

.ummaMessages__previewFormMediaFile {
    width: 37px;
    height: 37px;
    margin-right: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.ummaMessages__previewFormMediaFile video,
.ummaMessages__previewFormMediaFile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ummaMessages__previewFormTitle {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: var(--second-color);
}

.ummaMessages__previewFormText {
    font-weight: 500;
    font-size: 12px;
    line-height: 150.4%;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.ummaMessages__formClose {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.ummaMessages__formClose:hover svg path {
    fill: var(--main-color);
}

.ummaMessages__messageReplyContainer {
    /* border-left: 2px solid var(--second-color); */
    padding: 4px 8px;
    margin-top: 8px;
    display: flex;
    border-radius: 8px;
    background: #ffffff1a;
    width: -webkit-fill-available;
    margin: 8px 8px 0px;
    position: relative;
    overflow: hidden;
}

.ummaMessages__messageReplyContainer::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    flex: 0 0 auto;
    width: 3px;
    background: var(--second-color);
    z-index: 1;
}

.outgoing .ummaMessages__messageReplyContainer::before {
    content: '';
    background: var(--reply-color-title);
}

.ummaMessages__messageReplyMedia {
    font-size: 0px;
    overflow: hidden;
    min-width: fit-content;
}

.ummaMessages__messageReplyMedia .ummaFileIcon {
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.ummaMessages__messageReplyMedia .ummaFileIcon>svg {
    width: 20px;
    height: 20px;
}

.ummaMessages__messageReplyMedia img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.ummaMessages__messageReplyBody {}

.ummaMessages__messageReplyTitle {
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 12px;
    color: var(--second-color);
    margin-bottom: 4px;
}

.ummaMessages__messageReplyText {
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}


.outgoing .ummaMessages__messageReplyTitle {
    color: var(--reply-color-title);
}

.ummaMessages__messageFetchContainer {
    border-left: 2px solid var(--second-color);
    padding: 0px 0px 0px 8px;
    margin: 8px 0px 0px 0px;
    display: flex;
    line-height: 0px;
}

.ummaMessages__messageFetchBody {
    width: 100%;
}

.ummaMessages__messageFetchTitle {
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4em;
    color: var(--second-color);
}

.ummaMessages__messageFetchText {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4em;
}

.ummaMessages__messageFetchMedia {
    width: auto;
    height: 72px;
    max-width: 72px;
    margin-left: 16px;
    border-radius: 10px;
    overflow: hidden;
}

.ummaMessages__messageFetchMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.outgoing .ummaMessages__messageFetchTitle {
    color: var(--reply-color-title);
}

.outgoing .ummaMessages__messageFetchContainer {
    border-left: 2px solid var(--reply-color-title);
}

.outgoing .ummaMessages__messageFetchTitle {
    color: var(--reply-color-title);
}

.ummaMessages__roomMenu {
    background: var(--white);
    box-shadow: 0px 0px 12px -5px rgb(0 0 0 / 25%);
    border-radius: 10px;
    padding: 8px;
    display: none;
    position: absolute;
    right: 0px;
    /* top: 50% !important; */
    max-width: 221px;
    width: 221px;
    z-index: 3020;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ummaMessages__roomAlert {
    position: absolute;
    width: 100%;
    z-index: 9;
    top: -500px;
    transition: 0.3s all ease-in-out;
}

.ummaMessages__roomAlert.open {
    top: 0px;
    transition: 0.3s all ease-in-out;
}

.ummaMessages__roomAlertContainer {
    max-width: 423px;
    width: 100%;
    box-shadow: 0px 0px 12px -5px rgb(0 0 0 / 25%);
    border-radius: 2px 2px 2px 2px;
    background: var(--white);
    margin: 0 auto;
    padding: 16px;
    text-align: center;
}

.ummaMessages__roomAlertTitle {
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: var(--text-black);
    margin-bottom: 8px;
}

.ummaMessages__roomAlertDescription {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-black);
    margin-bottom: 16px;
}

.ummaMessages__roomAlertCheckBox {
    margin-bottom: 16px;
}

.ummaMessages__roomAlertCheckBox a {
    margin: 0px 4px;
}

.ummaMessages__roomAlertFooter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ummaMessages__roomAlertCancelBtn {
    background: var(--header-form);
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    padding: 8px;
    max-width: 134px;
    width: 100%;
    cursor: pointer;
}

.ummaMessages__roomAlertAcceptBtn {
    background: var(--main-color);
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    padding: 8px;
    max-width: 134px;
    width: 100%;
    cursor: pointer;
}

@-webkit-keyframes rotating

/* Safari and Chrome */
    {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.ummaMessage__messageUploadingOverlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 999;
}

.ummaMessage__messageUploadingPercent {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 5px;
    width: auto;
    /* max-width: 140px;*/
    font-weight: 600;
    font-size: 10px;
    line-height: 150.4%;
    text-align: center;
    padding: 2px 4px;
    margin: 4px 8px;
    position: absolute;
    color: var(--white);
}

.ummaMessage__messageUploadingProgress {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ummaMessage__messageUploadingProgress .circle-container {
    -webkit-animation: rotating 2s linear infinite;
    -moz-animation: rotating 2s linear infinite;
    -ms-animation: rotating 2s linear infinite;
    -o-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
}

.circle-container {
    width: 45px;
    height: 45px;
}

.circle-container__progress {
    fill: none;
    stroke-linecap: round;
    stroke: #ffffff;
    stroke-dasharray: 100 100;
    stroke-linecap: round;
    stroke-width: 2;
    stroke-dashoffset: 100px;
}

.ummaMessage__messageUploadingProgress span {
    position: absolute;
}

.ummaMessage__messageUploadingProgress:hover span {
    -webkit-transform: scale(0.95);
    -o-transform: rotate(0.95);
    transform: rotate(0.95);
}

.ummaMessage__messageUploadingProgress:active span {
    -webkit-transform: scale(0.9);
    -o-transform: rotate(0.9);
    transform: rotate(0.9);
}

.ummaMessage__messageFile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uploading .ummaMessage__messageFile {
    align-items: flex-start;
}

.ummaMessage__messageFileIcon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.uploading .ummaMessage__messageFileIcon>svg {
    visibility: hidden;
}

.uploading .ummaMessage__messageFileIcon {
    background: transparent;
}

.ummaMessage__messageFileIcon .ummaMessage__messageUploadingProgress .circle-container {
    width: 31px;
    height: 31px;
}

.ummaMessage__messageFileIcon .ummaMessage__messageUploadingProgress {
    width: 32px;
    height: 32px;
}

.ummaMessage__messageFile .ummaMessage__messageUploadingPercent {
    background: transparent;
    padding: 0px;
    max-width: fit-content;
    margin: 0px;
}

#wo_nw_msg_page .messages-container .empty_state {
    color: var(--header-form);
}

.outgoing .ummaMessages__message {
    /* animation: scale-up-bottom-right 0.2s; */
    border-radius: 20px 20px 0px 20px;
}

@keyframes scale-up-bottom-right {
    0% {
        transform: scale(0.1);
        transform-origin: right bottom
    }

    80% {
        transform: scale(1.1);
        transform-origin: right bottom
    }

    100% {
        transform: scale(1);
        transform-origin: right bottom
    }
}

.incoming .ummaMessages__message {
    /* animation: scale-up-bottom-left 0.2s; */
    border-radius: 20px 20px 20px 0px;
}

@keyframes scale-up-bottom-left {
    0% {
        transform: scale(0.1);
        transform-origin: left bottom
    }

    80% {
        transform: scale(1.1);
        transform-origin: left bottom
    }

    100% {
        transform: scale(1);
        transform-origin: left bottom
    }
}

.ummaMessages__call .ummaMessage__messageFileIcon {
    border-radius: 50px;
    background: #ffffff36;
}

.ummaMessages__call.incoming .ummaMessage__messageFileIcon svg path {
    fill: #49A399;
}

.ummaMessages__call .ummaMessage__messageFileName {
    line-height: 16px;
}

.videoCall__title {
    font-size: 14px;
}

.videoCall__duration {
    font-size: 12px;
}

.ummaMessages__call.incoming .ummaMessage__messageFileIcon[data-call-status="missed"],
.ummaMessages__call.incoming .ummaMessage__messageFileIcon[data-call-status="initiated"] {
    background: #FBEDED;
}

.ummaMessages__call.incoming .ummaMessage__messageFileIcon[data-call-status="missed"] svg path,
.ummaMessages__call.incoming .ummaMessage__messageFileIcon[data-call-status="initiated"] svg path {
    fill: #D94B4B;
}


/* Chat Attachments Modal */
#chatAttachments {
    z-index: 2002;
}

#chatAttachments .modal-body {
    padding: 0px;
}

#chatAttachments .modal-dialog {
    width: 100%;
    max-width: 540px;
    margin: 35px auto;
}

#chatAttachments .modal-header {
    background: inherit;
    width: 100%;
    padding: 16px 32px 0px;
}

.chatAttachments__container {
    width: 100%;
    max-width: 540px;
    background: var(--white);
    border-radius: 10px;
    max-height: 91vh;
    overflow-y: overlay;
    position: relative;
}

/* Стили для скрытия полосы прокрутки */
.chatAttachments__container::-webkit-scrollbar {
    width: 0px;
}

.custom-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    background: var(--accent);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.chatAttachments__container:hover .custom-scrollbar {
    opacity: 1;
}

.chatAttachments__container {
    scrollbar-width: none;
}

.chatAttachments__container:hover {
    scrollbar-width: auto;
}

.chatAttachments__header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    padding-top: 32px;
    margin-bottom: 12px;
}

.chatAttachments__title {
    color: var(--text-black);
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 550;
    line-height: normal;
}

.chatAttachments__userContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chatAttachments__userAvatar {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.chatAttachments__userAvatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.chatAttachments__userName {
    color: var(--text-black);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 550;
    line-height: normal;
    margin-bottom: 4px;
}

.chatAttachments__userStatus {
    color: var(--text-main);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.chatAttachments__tabs {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--white-2);
    padding: 12px 16px 0px;
    margin-bottom: 12px;
}

.chatAttachments__tabItem {
    color: var(--text-main);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    flex-direction: column;
    transition: 0.2s all;
    position: relative;
    padding-bottom: 8px;
    line-height: 1em;
}

.chatAttachments__tabItem:hover {
    color: var(--text-black);
    transition: 0.2s all;
    cursor: pointer;
}

.chatAttachments__tabItem.active {
    color: var(--text-black);
}

.chatAttachments__tabItem.active::after {
    content: '';
    height: 2px;
    background: var(--accent);
    width: 100%;
    position: relative;
    border-radius: 4px 4px 0px 0px;
    bottom: 0px;
    position: absolute;
}


.chatAttachments__tabContent {
    display: none;
    padding: 0px 0px 8px;
    min-height: 664px;
}

.chatAttachments__tabContent.active {
    display: block;
}

.chatAttachments__mediaList {
    padding: 0px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 4px;
}

.chatAttachments__mediaItem {
    /* width: 128px; */
    height: 128px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chatAttachments__mediaItem a,
.chatAttachments__mediaItem video,
.chatAttachments__mediaItem img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.chatAttachments__mediaDuration {
    color: var(--white);
    text-align: center;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    position: absolute;
    bottom: 6px;
    right: 6px;
}

.chatAttachments__voiceList,
.chatAttachments__audioList,
.chatAttachments__fileList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0px 8px;
}

.chatAttachments__voiceItem,
.chatAttachments__linkItem,
.chatAttachments__audioItem,
.chatAttachments__fileItem {
    display: flex;
    gap: 12px;
}

.chatAttachments__linkImg,
.chatAttachments__fileImg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--text-main);
    color: var(--white);
    font-size: 2em;
}

.chatAttachments__fileImg img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.chatAttachments__fileImg.default img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.chatAttachments__audioInfo,
.chatAttachments__fileInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
}

.chatAttachments__fileName,
.chatAttachments__audioName,
.chatAttachments__fileName {
    color: var(--text-black);
    font-size: 16px;
    font-style: normal;
    font-weight: 550;
    line-height: normal;
}

.chatAttachments__audioDate,
.chatAttachments__audioDuration,
.chatAttachments__fileDate,
.chatAttachments__fileSize {
    color: var(--text-main);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.chatAttachments__audioControl .ummaMessage__messageAudioAction {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatAttachments__linkMonthContainer {
    display: flex;
    flex-direction: column;
    position: relative;
}

.chatAttachments__linkDateMonth {
    width: 100%;
    background: var(--white-2);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    color: var(--color-4);
    position: sticky;
    padding: 6px 16px;
}

.chatAttachments__linkList {
    padding: 0px 8px;
}

.chatAttachments__linkItem {
    padding: 12px 0px;
}

.chatAttachments__linkItem:not(:last-child) {
    border-bottom: 1px solid var(--white-2);
}

.chatAttachments__linkInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
}

.chatAttachments__fileDescription {
    color: var(--text-main);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
}

.chatAttachments__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatAttachments__links a {
    color: var(--main-color);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmerAnimation 2s infinite linear;
}

@keyframes shimmerAnimation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Дополнительные стили для элементов внутри .shimmer для имитации контента */
.shimmer.chatAttachments__mediaItem,
.shimmer .chatAttachments__audioControl,
.shimmer .chatAttachments__audioName,
.shimmer .chatAttachments__audioDuration,
.shimmer .chatAttachments__audioDate,
.shimmer .chatAttachments__linkImg,
.shimmer .chatAttachments__fileName,
.shimmer .chatAttachments__fileDescription,
.shimmer .chatAttachments__fileDate,
.shimmer .chatAttachments__links {
    background-color: #ddd;
    color: transparent;
    border-radius: 4px;
}

.shimmer .chatAttachments__audioControl {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    min-width: 40px;
}

.shimmer .chatAttachments__linkImg {
    width: 60px;
    height: 60px;
}

.shimmer .chatAttachments__audioName,
.shimmer .chatAttachments__audioDuration,
.shimmer .chatAttachments__audioDate,
.shimmer .chatAttachments__fileName,
.shimmer .chatAttachments__fileDescription,
.shimmer .chatAttachments__fileDate {
    margin: 5px 0;
    height: 10px;
}

.shimmer .chatAttachments__audioName,
.shimmer .chatAttachments__fileName {
    width: 70%;
}

.shimmer .chatAttachments__audioDuration {
    width: 20%;
}

.shimmer .chatAttachments__audioDate,
.shimmer .chatAttachments__fileDate {
    width: 35%;
}

.shimmer .chatAttachments__fileDescription {
    width: 90%;
}

.shimmer .chatAttachments__links {
    height: 10px;
    width: 50%;
}

.chatAttachments_empty {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 25% 0px;
    color: var(--text-main);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.chatAttachments__attachContainer .ummaMessages__message {
    background: inherit;
    justify-content: flex-start;
    flex-flow: row nowrap;
    border-radius: 4px;
    max-width: initial;
    border-radius: 4px;
}

.chatAttachments__attachContainer .ummaMessages__message a[data-fancybox] {
    border-radius: initial;
}

#deleteMessageModal .modal-content {
    background: var(--white);
}

.highlighting {
    transition: opacity 1s ease-in-out;
    opacity: 0.4;
}

.bubble-tail {
    position: absolute;
    width: 12px;
    height: 20px;
    z-index: 0;
    display: block;
    fill: var(--main-color);
    inset-inline-end: -8.4px;
    transform: translateY(1px) scaleX(calc(1 * -1));
}

.incoming .bubble-tail {
    margin-inline-start: -8.4px;
    transform: translateY(1px) scaleX(1);
    fill: var(--header-form);
    inset-inline-end: unset;
}


.border-radius-right-all > .ummaMessages__message{
    border-radius: 20px 20px 0px 20px !important;
}

.border-radius-top-right-straight > .ummaMessages__message{
    border-radius: 20px 10px 0px 20px !important;
}

.border-radius-bottom-right-straight > .ummaMessages__message{
    border-radius: 20px 20px 10px 20px !important;
}

.border-radius-top-bottom-right-straight > .ummaMessages__message{
    border-radius: 20px 10px 10px 20px !important;
}

.border-radius-left-all > .ummaMessages__message{
    border-radius: 20px 20px 20px 0px !important;
}

.border-radius-bottom-left-straight > .ummaMessages__message{
    border-radius: 20px 20px 20px 10px !important;
}

.border-radius-top-left-straight > .ummaMessages__message{
    border-radius: 10px 20px 20px 0px !important;
}

.border-radius-top-bottom-left-straight > .ummaMessages__message{
    border-radius: 10px 20px 20px 10px !important;
}

.border-radius-bottom-left-straight .bubble-tail,
.border-radius-top-bottom-left-straight .bubble-tail,
.border-radius-bottom-right-straight .bubble-tail,
.border-radius-top-bottom-right-straight .bubble-tail {
    display: none;
}
