/* Retarget: targeted marketing (leads from ads) */
.adt-head-actions { margin-left: auto; display: flex; gap: 8px; }
.adt-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.adt-filters .lab-input { flex: 1 1 220px; min-width: 180px; }
.adt-filters .lab-select { flex: 0 1 200px; }
.adt-table td { vertical-align: top; }
.adt-row { cursor: pointer; }
.adt-row:hover { background: var(--surface-soft, #f8fafc); }
.adt-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.adt-snippet { max-width: 260px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adt-ad { display: block; max-width: 240px; font-weight: 600; font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.adt-facts div { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft, #f8fafc); }
.adt-facts span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.adt-facts b { display: block; margin-top: 3px; font-size: 13.5px; }
.adt-facts em { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: var(--text-2); }
.adt-h { margin: 16px 0 8px; font-size: 13px; }
.adt-msg { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.adt-msg.is-empty { color: var(--text-3); font-size: 13px; }
.adt-msg p { margin: 6px 0 0; white-space: pre-line; font-size: 13.5px; line-height: 1.55; }
.adt-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.adt-panel { margin-top: 16px; }
.adt-panel .adt-filters { margin: 0; padding: 14px; }
.adt-origin { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #eef2f7; color: #475569; }
.adt-origin.is-ads { background: #fff3d6; color: #8a5a00; }
.adt-origin.is-hubspot { background: #ffe4dc; color: #b23a12; }
.adt-pager-size { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px 12px; font-size: 12.5px; color: var(--text-2); }
.adt-pager-size .lab-select { width: auto; }

/* the lead window: a short info strip on top, then a chat */
.adt-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.adt-strip b { color: var(--text-3); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; margin-right: 4px; }
.adt-template { margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 13px; }
.adt-template.is-empty { color: var(--text-3); }
.adt-template summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.adt-template p { margin: 8px 0 0; white-space: pre-line; line-height: 1.5; }
.adt-chat { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #efeae2; display: flex; flex-direction: column; }
.adt-chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f0f2f5; border-bottom: 1px solid var(--border); }
.adt-chat-head b { display: block; font-size: 13.5px; }
.adt-chat-head small { display: block; font-size: 11.5px; color: var(--text-3); }
.adt-chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.adt-thread { display: flex; flex-direction: column; gap: 4px; padding: 12px; height: 320px; overflow-y: auto; }
.adt-thread-empty { margin: auto; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.7); font-size: 12.5px; color: var(--text-2); }
.adt-day { align-self: center; margin: 8px 0 4px; }
.adt-day span { padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 11px; color: var(--text-2); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.adt-bubble { max-width: 78%; padding: 6px 9px 4px; border-radius: 9px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.adt-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.adt-bubble small { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; color: rgba(0,0,0,.45); }
.adt-bubble.is-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.adt-bubble.is-in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.adt-bubble.is-failed { background: #fde2e2; }
.adt-tick { font-style: normal; font-size: 11px; letter-spacing: -2px; color: rgba(0,0,0,.4); }
.adt-tick.is-read { color: #34b7f1; }
.adt-tick.is-failed { color: #d92d20; letter-spacing: 0; font-weight: 700; }
.adt-composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: #f0f2f5; border-top: 1px solid var(--border); }
.adt-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; font: inherit; font-size: 13.5px; line-height: 1.35; max-height: 110px; background: #fff; outline: none; }
.adt-input:focus { border-color: #25d366; }
.adt-send { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.adt-send:disabled { opacity: .5; cursor: default; }
.adt-chat-note { display: block; padding: 6px 12px 8px; background: #f0f2f5; font-size: 11.5px; color: var(--text-3); }
.adt-chat-note.is-warn { color: #8a5a00; background: #fff6e0; }

/* pictures and videos in the chat */
.adt-bubble.has-media { padding: 3px 3px 4px; }
.adt-bubble.has-media p { padding: 4px 6px 0; }
.adt-bubble.has-media small { padding: 0 6px; }
.adt-media { display: block; max-width: 260px; max-height: 260px; width: 100%; border-radius: 7px; object-fit: cover; background: #000; }
.adt-clip { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #54656f; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.adt-clip:hover:not(:disabled) { background: rgba(0,0,0,.06); }
.adt-clip:disabled { opacity: .4; cursor: default; }
.adt-attach { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #e9edef; border-top: 1px solid var(--border); }
.adt-attach[hidden] { display: none; }
.adt-attach img, .adt-attach-video { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: #111; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.adt-attach-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adt-attach-name small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; }
.adt-attach-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--text-3); cursor: pointer; }

/* an emoji reaction sits on the corner of the message it was made to */
.adt-bubble { position: relative; }
.adt-bubble.has-reaction { margin-bottom: 10px; }
.adt-reaction { position: absolute; bottom: -12px; left: 8px; padding: 0 5px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); font-size: 15px; line-height: 22px; }
.adt-bubble.is-in .adt-reaction { left: auto; right: 8px; }

/* Mark consent dialog */
.adt-consent-note { margin: 0 0 14px; line-height: 1.5; }
.adt-consent-group { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.adt-consent-group legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.adt-consent-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.adt-consent-opt:hover { border-color: var(--primary); }
.adt-consent-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.adt-consent-why { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.adt-consent-why .lab-input { width: 100%; font-weight: 400; }
