﻿/* ============================================================
   GENTEXT CHAT BUBBLES — MAIN CHAT
   ============================================================ */

.gtx-chat .gtx-bubble {
    padding: 22px 26px;
    border-radius: 20px;
    max-width: 75%;
    position: relative;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.45;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background: #FFFFFF;
    color: #1A1A1A;
}

/* CHAT ROW SPACING — THIS IS WHAT MOVES BLUE BUBBLE UP */
.gtx-chat .gtx-row {
    margin: 4px 0; /* tighten spacing here */
}

/* INCOMING CHAT BUBBLE */
.gtx-chat .gtx-block-in {
    align-self: flex-start;
    background: #3A3A3C;
    color: #FFFFFF;
}

.gtx-chat .gtx-block-in::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 18px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #3A3A3C;
}

/* OUTGOING CHAT BUBBLE */
.gtx-chat .gtx-block-out {
    align-self: flex-end;
    background: #0A84FF;
    color: #FFFFFF;
}

.gtx-chat .gtx-block-out::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 18px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #0A84FF;
}

/* CHAT TYPOGRAPHY */
.gtx-chat .gtx-bubble h2,
.gtx-chat .gtx-bubble h3,
.gtx-chat .gtx-bubble p,
.gtx-chat .gtx-bubble blockquote {
    margin: 0 0 14px 0;
    color: inherit;
}

.gtx-chat .gtx-bubble blockquote {
    font-style: italic;
    opacity: 0.9;
}

/* ============================================================
   LIST PREVIEW BUBBLES (HOVER)
   ============================================================ */

.gtx-hover-preview {
    position: absolute;
    z-index: 99999;
    max-width: 260px;
    font-family: 'Inter', sans-serif;
}

/* BASE PREVIEW BUBBLE */
.gtx-prev-in,
.gtx-prev-out {
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: inline-block;
    max-width: 200px;
    word-wrap: break-word;
    clear: both;
}

/* INCOMING PREVIEW BUBBLE */
.gtx-prev-in {
    background: #3A3A3C;
    color: #FFFFFF;
    position: relative;
    text-align: left;
    float: left;
}

.gtx-prev-in::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 10px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #3A3A3C;
}

/* OUTGOING PREVIEW BUBBLE */
.gtx-prev-out {
    background: #0A84FF;
    color: #FFFFFF;
    position: relative;
    text-align: right;
    float: right;
}

.gtx-prev-out::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 10px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #0A84FF;
}
