:root {
   --buddy-card-gap: 16px;
   --buddy-card-photo-size: 200px;
   --buddy-chat-log-height: 400px;
}

/* Three stacked rows: photo+action, info+habits, chat */
.buddy-card {
   display: flex;
   flex-direction: column;
   gap: var(--buddy-card-gap);
   width: auto;
   height: auto;
}

.buddy-card__row {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: flex-start;
   gap: var(--buddy-card-gap);
}

/* Button sits on the same line as the photo, vertically centred */
.buddy-card__row--top {
   align-items: center;
}

.buddy-card__photo-img {
   display: block;
   width: var(--buddy-card-photo-size);
   height: var(--buddy-card-photo-size);
   object-fit: cover;
}

/* Hidden until JS reveals them; an inline style set by JS still wins */
.buddy-card__actions,
.buddy-chat {
   display: none;
}

/* Info may shrink, habits keep their natural width */
.buddy-card__info {
   flex: 1 1 240px;
   min-width: 0;
   font-size: 14px;
}

.buddy-card__habits {
   flex: 0 1 auto;
   font-size: 12px;
}

.buddy-chat {
   width: 100%;
}

.buddy-chat__log {
   width: 100%;
   height: var(--buddy-chat-log-height);
}

.buddy-chat__composer {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px;
   margin-top: 8px;
}

.buddy-chat__delay {
   flex: 1 1 100%;
   text-align: right;
   font-size: 14px;
}

.buddy-chat__input {
   flex: 1 1 240px;
   max-width: 420px;
}


/* --------------------------------------------------------------------------------------------- */
/*                                           BUDDY                                               */
/* --------------------------------------------------------------------------------------------- */
.buddy_chat
{
    position: relative;
    left: 20px;
    top: 0px;
    width: 500px;
    height: 400px; 
    background-color: #F3F3FE;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.person_info_bud
{
    position: relative;
    top: 30px;
    left: 40px; 
    width: 200px; 
    /* height: 200px; */
    max-height: 200px;
    background-color: white;
    /* border: 1px solid #75A0C9; */
}

.person_info_bud_v
{
    position: relative;
    top: 40px;
    left: 50px;
    width: 200px;
    max-width: 90%;
    /* height: 200px; */
    background-color: white;
    /* border: 1px solid #75A0C9; */
}

.person_info_bud_v-m
{
    position: relative;
    left: 10px;
    width: 200px;
    max-width: 60%;
    background-color: white;
    /* border: 1px solid #75A0C9; */
}

.person_habits_bud
{
    position: relative;
    left: 10px; 
    max-width: 150px;
    /* height: 270px;  */
    max-height: 250px;
    background-color: white;
    font-size: small;
    /* border: 1px solid #75A0C9; */
    /* overflow-y: auto; */
}

.person_habits_bud_v
{
    position: relative;
    top: 60px;
    left: 50px;
    width: 200px;
    max-width: 90%;
    /* height: 270px;  */
    background-color: white;
    font-size: small;
    /* border: 1px solid #75A0C9; */
    /* overflow-y: auto; */
}

.person_photo_bud
{
    position: relative;
    top: 30px;
    left: 40px; 
    width: 200px; 
    /* height: 270px; */
    max-height: 200px;
    padding-left: 10px;
    background-color: white;
    font-size: small;
    /* border: 1px solid #75A0C9; */
    /* overflow-y: auto; */
}

.person_photo_bud_v
{
    position: relative;
    top: 30px;
    left: 40px; 
    width: 200px; 
    /* height: 270px; */
    max-height: 200px;
    padding-left: 10px;
    background-color: white;
    font-size: small;
    /* border: 1px solid #75A0C9; */
    /* overflow-y: auto; */
}

.person_photo_bud_v-m
{
    position: relative;
    top: 10px;
    width: 200px; 
    /* height: 270px; */
    max-height: 200px;
    padding-left: 10px;
    background-color: white;
    font-size: small;
    /* border: 1px solid #75A0C9; */
    /* overflow-y: auto; */
}
