.source-chat {--source-brand:#158784;--bubble-in:#fff;--bubble-out:#edf3ef;--paper:#fff;color-scheme:light;background:var(--paper);color:#202124;line-height:1.4;text-align:start}
.source-chat .source-head {display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;background:#fff;color:#222;padding:.65rem .85rem;border-bottom:1px solid #e5e6e5}
.source-chat .source-name {overflow-wrap:anywhere;font-size:1rem}
.source-chat .source-channel {font-size:.8rem;color:#586563;flex:none}
.source-chat .source-messages {display:flex;flex-direction:column;gap:.65rem;max-height:min(62dvh,37rem);min-width:0;overflow:auto;overscroll-behavior:contain;padding:.75rem .7rem 1rem;scrollbar-width:thin}
.source-chat .source-line {display:flex;gap:.5rem;align-items:flex-start;min-width:0}
.source-chat .source-line.outgoing {justify-content:flex-end}
.source-chat .source-column {max-width:85%;min-width:0}
.source-chat .source-avatar {flex:0 0 1.75rem;height:1.75rem;border-radius:50%;background:#d8eeeb;color:#255951;display:grid;place-items:center;position:relative;overflow:hidden;font-size:.85rem}
.source-chat .source-avatar-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.source-chat .source-bubble {display:block;width:fit-content;max-width:100%;border:1px solid #d8dad9;border-radius:.65rem;padding:.48rem .7rem;background:var(--bubble-in);color:#191b1b;overflow-wrap:anywhere}
.source-chat .outgoing .source-bubble {background:var(--bubble-out);border-color:transparent;border-bottom-right-radius:0}
.source-chat .source-text {white-space:pre-wrap;font-size:1rem}
.source-chat .source-time,.source-chat .source-event {text-align:center;color:#676c6b;margin:.15rem .4rem;font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}
.source-chat .source-auto {display:block;text-align:right;font-size:.76rem;color:#696e6c;margin-top:.15rem}
.source-chat .source-product {width:min(16rem,100%);max-width:100%;line-height:1.35}
.source-chat .source-column:has(.source-product) {width:min(77%,17.5rem)}
.source-chat .source-bubble:has(.source-product) {width:100%;padding:.65rem}
.source-chat .source-product-label {font-size:.95rem;font-weight:600;display:flex;align-items:center;gap:.45rem;margin-bottom:.48rem}
.source-chat .source-product-label::before {content:"";width:.8rem;height:.72rem;border-radius:2px;background:var(--source-brand);clip-path:polygon(0 28%,23% 28%,28% 0,72% 0,77% 28%,100% 28%,100% 100%,0 100%,0 28%,31% 28%,68% 28%,65% 12%,35% 12%,31% 28%)}
.source-chat .source-product-photo {display:block;width:100%;height:auto;max-height:15rem;object-fit:contain;border-radius:.25rem;background:#f6f6f5}
.source-chat .source-product-title {margin-top:.4rem;overflow-wrap:anywhere;font-size:1rem}
.source-chat .source-price {display:block;margin-top:.25rem;color:var(--source-brand);font-size:1rem}
.source-chat .source-card-meta,.source-chat .source-no-photo {display:block;color:#666c69;font-size:.78rem;margin-top:.18rem}
.source-chat .source-chat-photo {max-width:100%;max-height:14rem;display:block;object-fit:contain;border-radius:.35rem}
.source-chat[data-channel="tokopedia"] {--bubble-out:#f5f5f5}
.source-chat[data-channel="whatsapp"] {--paper:#efeae2;--bubble-out:#d9fdd3;--source-brand:#008069}
.source-chat[data-channel="messenger"] {--bubble-in:#f0f2f5;--bubble-out:#0866ff}
.source-chat[data-channel="instagram"] {--bubble-in:#f3f3f3;--bubble-out:#7754d6}
.source-chat:is([data-channel="messenger"],[data-channel="instagram"]) .outgoing .source-bubble {color:white}
.source-chat.source-log {display:flex;flex-direction:column;gap:.55rem;min-width:0;padding:.7rem;overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin}
.source-log .source-line {align-self:stretch;width:100%}
.source-log .outgoing .source-bubble {margin-inline-start:auto}
.source-chat .source-meta,.source-chat .source-by {display:block;font-size:.75rem;line-height:1.4;color:#53615d;margin:.13rem 0}
.source-chat .outgoing :is(.source-meta,.source-by){text-align:end}
.source-chat[data-channel="whatsapp"] .source-bubble{border-radius:.55rem;border-color:transparent;box-shadow:0 1px 1px #0002}
.source-chat:is([data-channel="messenger"],[data-channel="instagram"]) .source-bubble{border:0;border-radius:1.1rem}
.source-chat[data-channel="tiktok"]{--source-brand:#bb2047;--bubble-in:#f2f2f3;--bubble-out:#e5f5f4}
.source-chat[data-channel="shopee"]{--source-brand:#bd472b;--bubble-out:#dcf6e9}
.source-chat:is([data-channel="teman"],[data-channel="supplier"]){--paper:#151b1a;--bubble-in:#293230;--bubble-out:#39442b;color-scheme:dark;color:#f5f7f4}
.source-chat:is([data-channel="teman"],[data-channel="supplier"]) .source-bubble{color:#f5f7f4;border-color:#46504f}
.source-chat:is([data-channel="teman"],[data-channel="supplier"]) :is(.source-meta,.source-by,.source-time,.source-event){color:#c2ccc8}
.source-chat.source-log .source-bubble {box-sizing:border-box}
.source-chat.source-log :is(.source-line,.source-column,.source-bubble){min-width:0}

.source-chat .source-media{display:block;max-width:100%;max-height:15rem}
