/* Tadres Team chat assistant: liquid glass widget */
#tt-chat, #tt-chat * { box-sizing: border-box; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; }
#tt-chat { --ttc-navy: #0b1f3a; --ttc-blue: #1e6bd6; --ttc-sky: #5fb3ff; --ttc-ink: #12223b; --ttc-mute: #5b6b82; position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; }
body.tt-chat-on .btn-back-to-top, body.tt-chat-on #back-to-top { bottom: 96px !important; }

.ttc-launch { position: relative; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .1px;
	background: linear-gradient(135deg, rgba(30,107,214,.92), rgba(11,31,58,.92)); box-shadow: 0 12px 32px rgba(11,31,58,.35), inset 0 1px 0 rgba(255,255,255,.35); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); transition: transform .2s ease, box-shadow .2s ease; }
.ttc-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,31,58,.42), inset 0 1px 0 rgba(255,255,255,.35); }
.ttc-launch:focus-visible, .ttc-x:focus-visible, .ttc-send:focus-visible, .ttc-chip:focus-visible { outline: 3px solid var(--ttc-sky); outline-offset: 2px; }
.ttc-launch .ttc-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); }
.ttc-launch .ttc-ico svg { width: 22px; height: 22px; }
.ttc-launch::after { content: ''; position: absolute; top: 8px; left: 42px; width: 11px; height: 11px; border-radius: 50%; background: #2fd27a; border: 2px solid #fff; }
#tt-chat.open .ttc-launch { display: none; }

.ttc-panel { position: absolute; right: 0; bottom: 0; width: 390px; height: min(640px, calc(100vh - 40px)); display: none; flex-direction: column; overflow: hidden; border-radius: 26px; border: 1px solid rgba(255,255,255,.6);
	background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(238,245,255,.74)); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 30px 70px rgba(11,31,58,.32), inset 0 1px 0 rgba(255,255,255,.9); transform-origin: bottom right; }
#tt-chat.open .ttc-panel { display: flex; animation: ttc-in .26s cubic-bezier(.2,.9,.3,1.2); }
@keyframes ttc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.ttc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; color: #fff; background: linear-gradient(135deg, var(--ttc-blue), var(--ttc-navy)); position: relative; }
.ttc-head::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255,255,255,.25); }
.ttc-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.ttc-title { flex: 1; min-width: 0; line-height: 1.25; }
.ttc-title b { display: block; font-size: 15.5px; font-weight: 600; }
.ttc-title small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.ttc-title small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2fd27a; }
.ttc-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.ttc-x svg { width: 16px; height: 16px; }
.ttc-call { color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); white-space: nowrap; }

.ttc-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.ttc-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.2px; line-height: 1.5; color: var(--ttc-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ttc-msg.bot { align-self: flex-start; background: rgba(255,255,255,.92); border: 1px solid rgba(30,107,214,.12); border-bottom-left-radius: 6px; box-shadow: 0 4px 14px rgba(11,31,58,.06); }
.ttc-msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--ttc-blue), #164fa3); border-bottom-right-radius: 6px; }
.ttc-msg a { color: var(--ttc-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ttc-msg.me a { color: #fff; }
.ttc-msg ul { margin: 4px 0; padding-left: 18px; white-space: normal; }
.ttc-msg li { margin: 3px 0; }
.ttc-msg.err { background: #fff4f2; border-color: #f3c7bf; }
.ttc-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ttc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8aa2c4; animation: ttc-dot 1.2s infinite ease-in-out; }
.ttc-typing i:nth-child(2) { animation-delay: .15s; } .ttc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ttc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

.ttc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 10px; }
.ttc-chip { border: 1px solid rgba(30,107,214,.28); background: rgba(255,255,255,.78); color: var(--ttc-blue); font-size: 13px; font-weight: 500; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.ttc-chip:hover { background: #fff; }

.ttc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(11,31,58,.08); background: rgba(255,255,255,.55); }
.ttc-in { flex: 1; resize: none; max-height: 110px; min-height: 46px; border: 1px solid rgba(11,31,58,.14); border-radius: 16px; padding: 12px 14px; font-size: 16px; line-height: 1.35; color: var(--ttc-ink); background: #fff; outline: none; }
.ttc-in:focus { border-color: var(--ttc-blue); box-shadow: 0 0 0 3px rgba(30,107,214,.15); }
.ttc-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center; background: linear-gradient(135deg, var(--ttc-blue), var(--ttc-navy)); }
.ttc-send:disabled { opacity: .5; cursor: default; }
.ttc-send svg { width: 20px; height: 20px; }
.ttc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ttc-foot { text-align: center; font-size: 11px; color: var(--ttc-mute); padding: 0 12px 10px; background: rgba(255,255,255,.55); }

@media (max-width: 600px) {
	#tt-chat { right: 14px; bottom: 14px; }
	.ttc-launch { height: 56px; padding: 0 8px; }
	.ttc-launch .ttc-lbl { display: none; }
	.ttc-launch::after { left: 40px; }
	#tt-chat.open { inset: 0; }
	.ttc-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; background: #f3f7fe; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.ttc-head { padding-top: max(16px, env(safe-area-inset-top)); }
	.ttc-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
	body.tt-chat-lock { overflow: hidden; }
	body.single-property #tt-chat:not(.open) { bottom: 84px; }
	body.tt-chat-on .btn-back-to-top, body.tt-chat-on #back-to-top { bottom: 84px !important; }
}
@media (prefers-reduced-motion: reduce) { #tt-chat * { animation: none !important; transition: none !important; } }
