/* WhatsApp chat bubble for ChatPreview.jsx. Imported by the component, so it
   renders the same in the flow editor and on the Blasts page. The flow editor's
   .app-container defines the variables; elsewhere the fallbacks apply. */

/* the customer's chat */
.chat-strip {
    padding: 12px 14px 14px 22px;
    background: #efeae2; /* WhatsApp chat wallpaper */
    border-bottom: 1px solid var(--line, #e7edea);
}
.chat-bubble {
    position: relative;
    width: fit-content;
    max-width: 88%;
    margin: 0;
    padding: 7px 10px 8px;
    background: var(--surface, #ffffff);
    border-radius: 0 var(--r-sm, 8px) var(--r-sm, 8px) var(--r-sm, 8px);
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    font-family: var(--font-ui, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink, #0c211d);
    overflow-wrap: anywhere;
}
/* incoming-message tail */
.chat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    border-top: 8px solid var(--surface, #ffffff);
    border-left: 8px solid transparent;
}
.chat-bubble > * {
    margin: 0;
}
.chat-bubble > * + * {
    margin-top: 4px;
}
.chat-bubble-header {
    font-weight: 700;
}
.chat-bubble-footer {
    font-size: 12px;
    color: var(--muted, #6b7c79);
}
.chat-bubble-image {
    display: block;
    width: 220px;
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
}
.chat-bubble-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #1f2c33;
    color: #fff;
    font-size: 22px;
}
.chat-bubble-link {
    display: block;
    color: var(--teal-700, #0a7163);
    text-decoration: underline;
    word-break: break-all;
}
/* list button / Flow CTA: a full-width row under a divider, as on WhatsApp */
.chat-bubble-action {
    margin: 6px -10px -8px !important;
    padding: 7px 10px;
    border-top: 1px solid var(--line, #e7edea);
    text-align: center;
    font-weight: 600;
    color: var(--teal-700, #0a7163);
}
.chat-chips {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 88%;
    max-width: 260px;
    margin-top: 3px;
}
.chat-chip {
    padding: 7px 10px;
    background: var(--surface, #ffffff);
    border-radius: var(--r-sm, 8px);
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    text-align: center;
    font-family: var(--font-ui, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-700, #0a7163);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-sticker {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}
.chat-bubble.is-empty {
    background: transparent;
    border: 1px dashed var(--faint, #9aa8a4);
    box-shadow: none;
    color: var(--muted, #6b7c79);
}
.chat-bubble.is-empty::before {
    display: none;
}

