#jdx-msgs-lista, #jdx-msgs-pend { display: contents; }

.jdx-dia { align-self: center; background: #1c2128; color: #8b949e; font-size: 11px; padding: 3px 12px; border-radius: 12px; margin: 4px 0; }
.jdx-vazio { margin: auto; color: #8b949e; font-size: 13px; text-align: center; }
.jdx-pend { opacity: .8; }

.jdx-bubble { position: relative; }
.jdx-bub-txt, .jdx-bub-leg { white-space: pre-wrap; }
.jdx-bub-txt a, .jdx-bub-leg a { color: #b6f0a0; text-decoration: underline; }
.jdx-bub-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; }
.jdx-bub-meta small { display: inline !important; margin: 0 !important; }
.jdx-bub-meta em { font-size: 10px; opacity: .7; }
.jdx-bub-apagada { opacity: .7; font-size: 12px; }

.jdx-bub-menu {
    position: absolute; top: 2px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.4); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
    opacity: 0; transition: opacity .15s;
}
.jdx-bubble:hover .jdx-bub-menu { opacity: 1; }
@media (hover: none) { .jdx-bub-menu { opacity: .6; } }

.jdx-bub-resp {
    border-left: 3px solid #67B34D; background: rgba(0,0,0,.25); border-radius: 6px;
    padding: 4px 8px; margin-bottom: 6px; font-size: 12px; cursor: pointer;
}
.jdx-bub-resp b { display: block; color: #9ad67f; }
.jdx-bub-resp span { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }

.jdx-reacoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.jdx-reacao { background: #21262d; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1px 7px; font-size: 12px; color: #fff; cursor: pointer; }
.jdx-reacao.minha { border-color: #67B34D; }

.jdx-flash .jdx-bubble { animation: jdxFlash 1.4s; }
@keyframes jdxFlash { 0%, 60% { box-shadow: 0 0 0 3px rgba(103,179,77,.8); } 100% { box-shadow: none; } }

@media (max-width: 768px) { .jdx-bubble { max-width: 84%; } }

/* Status no cabeçalho */
#jdx-chat-telefone.jdx-st-dig { font-style: italic; }
#jdx-chat-telefone.jdx-st-off { color: #8b949e; font-weight: 400; }

/* Mídia */
.jdx-midia-img { display: block; max-width: min(260px, 60vw); max-height: 300px; border-radius: 8px; cursor: zoom-in; }
.jdx-midia-video { display: block; max-width: min(280px, 64vw); max-height: 300px; border-radius: 8px; background: #000; }
.jdx-midia-ph, .jdx-midia-exp { font-size: 12px; opacity: .8; }
.jdx-midia-baixar, .jdx-midia-arq button {
    background: rgba(0,0,0,.3); color: #fff; border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.jdx-midia-arq { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.jdx-midia-arq span { font-size: 22px; }
.jdx-midia-arq div { flex: 1; min-width: 0; }
.jdx-midia-arq b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.jdx-midia-arq small { opacity: .7; }

/* Player de áudio */
.jdx-aud { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.jdx-aud-play { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: #0d1117; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.jdx-aud-bar { flex: 1; min-width: 70px; accent-color: #9ad67f; }
.jdx-aud-t { font-size: 11px; min-width: 30px; }
.jdx-aud-vel { background: rgba(0,0,0,.3); color: #fff; border: 0; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Menu do balão */
.jdx-menu {
    position: absolute; z-index: 50; min-width: 190px; background: #161b22; color: #fff;
    border: 1px solid rgba(103,179,77,.4); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.jdx-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.jdx-menu button:hover { background: #21262d; }
.jdx-menu-em { display: flex; justify-content: space-between; padding: 2px 2px 6px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.jdx-menu-em button { width: auto; font-size: 20px; padding: 3px 5px; }
.jdx-menu-t { margin: 4px 10px 6px; font-size: 12px; color: #8b949e; }

/* Foto ampliada */
.jdx-lightbox { position: absolute; inset: 0; z-index: 55; background: rgba(5,7,10,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; }
.jdx-lightbox img { max-width: 100%; max-height: 80%; object-fit: contain; border-radius: 8px; }
.jdx-lb-acoes { display: flex; gap: 10px; }
.jdx-lb-acoes button { background: #67B34D; color: #0d1117; border: 0; border-radius: 22px; padding: 9px 18px; font-weight: 800; font-size: 13px; cursor: pointer; }
.jdx-lb-acoes button[data-a="fechar"] { background: #21262d; color: #fff; }

/* Contatos achados no celular */
.jdx-ach-t { font-size: 12px; color: #67B34D; font-weight: 700; margin: 6px 0; }
.jdx-ach { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-align: left; }
.jdx-ach .jdx-avatar { width: 34px; height: 34px; }
.jdx-ach b { flex: 1; font-size: 13px; }
.jdx-ach button { background: #67B34D; color: #0d1117; border: 0; border-radius: 16px; padding: 6px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }

/* Localização e contato */
.jdx-loc { min-width: 210px; }
.jdx-loc-mapa { height: 90px; border-radius: 8px; background: linear-gradient(135deg, #1f3d2b, #16324a); display: flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 6px; }
.jdx-loc b { display: block; font-size: 13px; }
.jdx-loc-ac { display: flex; gap: 8px; margin-top: 6px; }
.jdx-loc-ac a { flex: 1; text-align: center; background: rgba(0,0,0,.3); color: #fff !important; text-decoration: none !important; border-radius: 14px; padding: 6px 8px; font-size: 12px; font-weight: 700; }
.jdx-ctt { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.jdx-ctt-ini { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.jdx-ctt div { flex: 1; min-width: 0; }
.jdx-ctt b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.jdx-ctt small { opacity: .75; }
.jdx-ctt-btn { background: #67B34D; color: #0d1117; border: 0; border-radius: 14px; padding: 6px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.jdx-loc small { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }
.jdx-loc-ao-vivo .jdx-loc-mapa { background: linear-gradient(135deg, #3d1f1f, #16324a); }
.jdx-loc-parar { width: 100%; margin-top: 6px; background: #f85149; color: #fff; border: 0; border-radius: 14px; padding: 7px; font-size: 12px; font-weight: 800; cursor: pointer; }