/* "Ask AI about this home" (TT_IDX_Listing_Chat): a slim bar under the photos, with a dropdown.
   Its own file so it cannot disturb tt-idx.css. */
.tt-lchat { position: relative; margin: 12px 0 8px; z-index: 20; }

.tt-lchat__bar { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 16px; background: #f1f6fb; border: 1px solid #b9c9d8; border-radius: 10px; color: #1d4f7a; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.tt-lchat__bar:hover, .tt-lchat__bar:focus-visible { background: #e6eff8; border-color: #1d4f7a; outline: none; }
.tt-lchat__spark { flex: 0 0 auto; }
.tt-lchat__bar-text { flex: 1 1 auto; }
.tt-lchat__badge { flex: 0 0 auto; background: #fff6dc; border: 1px solid #e6c866; color: #6b5200; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.tt-lchat__caret { flex: 0 0 auto; transition: transform .15s ease; }
.tt-lchat__bar[aria-expanded="true"] .tt-lchat__caret { transform: rotate(180deg); }
.tt-lchat__bar[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: #1d4f7a; }

.tt-lchat__drop { position: absolute; left: 0; right: 0; top: 100%; box-sizing: border-box; background: #fff; border: 1px solid #1d4f7a; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(20, 40, 60, .18); padding: 8px 12px 12px; max-height: 70vh; overflow-y: auto; }
.tt-lchat__drop[hidden] { display: none; }

.tt-lchat__list { list-style: none; margin: 0; padding: 0; }
.tt-lchat__list li { margin: 0; padding: 0; border-bottom: 1px solid #edf1f5; }
.tt-lchat__list li:last-child { border-bottom: 0; }
.tt-lchat__q { display: block; width: 100%; background: none; border: 0; padding: 11px 4px; text-align: left; font-size: 15px; color: #1c2630; cursor: pointer; }
.tt-lchat__q:hover, .tt-lchat__q:focus-visible { background: #f1f6fb; color: #1d4f7a; outline: none; }
.tt-lchat.is-chatting .tt-lchat__list { display: none; }

.tt-lchat__log { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.tt-lchat__log:empty { display: none; }
.tt-lchat__msg { max-width: 94%; padding: 9px 13px; border-radius: 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.tt-lchat__msg--you { align-self: flex-end; background: #1d4f7a; color: #fff; }
.tt-lchat__msg--bot { align-self: flex-start; background: #f2f4f6; color: #1c2630; }
.tt-lchat__msg.is-wait { color: #6b7782; font-style: italic; }
.tt-lchat__askus { display: inline-block; margin-top: 6px; font-weight: 600; }
.tt-lchat__more { background: none; border: 0; padding: 2px 0 8px; color: #1d4f7a; font-size: 14px; text-decoration: underline; cursor: pointer; }
.tt-lchat__more[hidden] { display: none; }

.tt-lchat__form { display: flex; gap: 8px; margin-top: 6px; }
.tt-lchat__form input[type="text"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #b9c4cf; border-radius: 8px; font-size: 16px; }
.tt-lchat__form button { padding: 10px 18px; border: 0; border-radius: 8px; background: #1d4f7a; color: #fff; font-size: 16px; cursor: pointer; }
.tt-lchat__form button[disabled] { opacity: .6; cursor: default; }
.tt-lchat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tt-lchat__fine { margin: 8px 0 0; font-size: 12.5px; color: #5d6872; line-height: 1.4; }

@media (max-width: 600px) { .tt-lchat__msg { max-width: 100%; } .tt-lchat__drop { max-height: 65vh; } }

/* The sign-up shown to someone we do not know (TT_IDX_Chat_Signup). */
.tt-lchat__signup { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 4px; }
.tt-lchat__signup[hidden] { display: none; }
.tt-lchat__signup-lead { margin: 0 0 2px; font-size: 15px; line-height: 1.45; color: #1c2630; }
.tt-lchat__signup input[type="text"], .tt-lchat__signup input[type="email"] { padding: 10px 12px; border: 1px solid #b9c4cf; border-radius: 8px; font-size: 16px; min-width: 0; }
.tt-lchat__agree { margin: 0; font-size: 13px; color: #5d6872; line-height: 1.45; }
.tt-lchat__signup button { align-self: flex-start; padding: 10px 18px; border: 0; border-radius: 8px; background: #1d4f7a; color: #fff; font-size: 16px; cursor: pointer; }
.tt-lchat__signup button[disabled] { opacity: .6; cursor: default; }
.tt-lchat__signup-msg { margin: 0; font-size: 14px; color: #1d4f7a; }
.tt-lchat.is-signup .tt-lchat__fine { display: none; }
.tt-lchat__form[hidden], .tt-lchat__list[hidden] { display: none; }

/* The request-our-value-report button under a value answer. */
.tt-lchat__value { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
.tt-lchat__valuebtn { padding: 9px 16px; border: 0; border-radius: 8px; background: #721e35; color: #fff; font-size: 15px; cursor: pointer; }
.tt-lchat__valuebtn[disabled] { opacity: .6; cursor: default; }
.tt-lchat__valuebtn[hidden] { display: none; }
.tt-lchat__valueterms { font-size: 13px; color: #5d6872; line-height: 1.4; }
