﻿.chat-wrapper {
    width: calc(100vw - 96px);
    margin-left: 88px;
}

@media (max-width: 960px) {
    .chat-wrapper {
        width: 100vw;
        margin-left: 0;
    }
}

.chat-inbox {
    width: 420px;
    height: calc(100vh - 65px);
    border-right: 1px solid #EAECF0;
}

.chat-inbox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F2F4F7;
}

.chat-inbox__header-new-chat {
    border-radius: 8px;
    padding: 10px 16px;
}

.chat-inbox__search {
    border-radius: 8px;
    border: 1px solid #D0D5DD;
}

.chat-inbox__item {
    display: flex;
    justify-content: start;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #F9FAFB;
    padding: 12px 24px 12px 8px;
}

.chat-inbox__item:hover {
    background: #F9FAFB;
}

.chat-inbox__item.selected {
    background: #EAECF0;
}

.chat-inbox__unread-mark {
    width: 12px;
    min-width: 12px;
}

.chat-inbox__unread-mark span {
    color: red;
    font-size: 20px;
    margin-left: -6px;
}

.chat-conversation__empty-conversation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #F4F4F4;
}

.chat-conversation__main-holder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F4F4F4;
}

.chat-conversation__messages-holder {
    width: 100%;
    height: calc(100vh - 200px);
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.chat-conversation__messages-inner-holder {
    width: 752px;
    margin-top: auto;
    margin-bottom: 0;
    display: grid;
}

.chat-conversation__message-item-mine {
    padding: 8px 12px 4px 8px;
    margin: 12px 0 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    justify-self: end;
    border-radius: 8px 0 8px 8px;
    background: #6443e5;
    color: #FFFFFF;
}

.chat-conversation__message-item-others {
    padding: 8px 8px 4px 12px;
    margin: 12px 20px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    justify-self: start;
    border-radius: 0 8px 8px 8px;
    border: 1px solid #EAECF0;
    background: #FFFFFF;
    color: #101828;
}

.chat-send-message__paper {
    display: flex;
    align-items: end;
    padding: 8px;
    gap: 8px;
    border-radius: 12px;
    background: #FFFFFF;
    width: 752px;
    max-height: 120px;
    margin: auto;
}

@media (max-width: 700px) {
    .chat-send-message__paper {
        width: calc(100vw - 40px);
    }
}

.chat-send-message__input {
    width: 100%;
}

.chat-send-message__btn {
    border-radius: 8px !important;
    padding: 10px !important;
    height: 40px;
    width: 40px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.chat-send-message__btn.send-btn path {
    fill: #FFFFFF;
}

.chat-new-message-contact {
    width: 360px;
}

.chat-new-message-contact .header {
    display: flex;
    justify-content: center;
}

.chat-new-message-contact .header > p {
    border: 1px solid #D0D5DD;
    border-radius: 8px 0 0 8px;
    padding: 8px 12px;
    align-items: center;
}

.chat-new-message-contact .header > div {
    width: 286px;
    border: 1px solid #D0D5DD;
    border-radius: 0 8px 8px 0;
}

.chat-new-message-contact .header div input {
    padding: 8px 12px;
}

.chat-new-message-contact .send-btn span {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    justify-content: start;
    align-items: center;
}

.chat-avatar-coin__container {
    display: flex;
    width: 48px !important;
    height: 48px !important;
    padding: 5px 0;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 200px;
    border: 3px solid #FFF;
    background: #F2F4F7;
    box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}
