
/* MESSAGES */

.messagesList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

    background: white;
    border-radius: 20px;
    padding: 12px;
}

.messageLeft {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.messageAvatarWrapper {
    position: relative;
    flex-shrink: 0;
}

.messagePetAvatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;

    border: 3px solid white;
}

.messageOwnerAvatar {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 24px;
    height: 24px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid #65E3E6;
    background: white;
}

.messageInfo {
    min-width: 0;
}

.messageInfo h4 {
    margin: 0 0 4px 0;
}

.messageInfo p {
    font-size: 14px;
    color: #8A8F98;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 180px;
}

.messageMeta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.unreadDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #65E3E6;
}

/* PAGE */

.chatPage {
    padding: 24px;
    padding-bottom: 120px;
    overflow-y: visible; 

    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

/* NAV */

.chatNavLeft {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatHeaderAvatars {
    position: relative;
    width: 44px;
    height: 44px;
}

.chatPetAvatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid white;
}

.chatOwnerAvatar {
    position: absolute;

    right: -4px;
    bottom: -4px;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid #65E3E6;
    background: white;
}

.chatHeaderInfo h3 {
    margin: 0;
    font-size: 16px;
}

.chatHeaderInfo p {
    margin: 0;
}

/* CHAT */

.messageRow {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.messageRow.received {
    justify-content: flex-start;
}

.messageRow.sent {
    justify-content: flex-end;
}

.bubbleAvatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;
    object-fit: cover;

    flex-shrink: 0;
}

/* BUBBLES */

.messageBubble {
    max-width: 260px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.receivedBubble {
    background: #FFE6DD;
    border-bottom-left-radius: 6px;
}

.sentBubble {
    background: #65E3E6;
    border-bottom-right-radius: 6px;
}

.messageTime {
    font-size: 12px;
    color: #8A8F98;
    margin-top: 6px;
}

/* INPUT BAR */

.chatInputBar {
    position: fixed;

    bottom: 68px;
    left: 0;
    right: 0;

    background: white;

    padding: 16px 24px;

    display: flex;
    flex-direction: row;
    gap: 12px;

    border-top: 1px solid #E9ECEF;
}

.chatSendButton {
    width: 56px;
    height: 56px;

    border: none;
    border-radius: 16px;

    background: #00696B;

    display: flex;
    align-items: center;
    justify-content: center;
}

.chatFormRow {
    align-items: center;
    gap: 12px;
}

.chatFormRow input {
    flex: 1;
}
