/* The Interior House — WhatsApp enquiry chatbot */
.tih-chat__launcher{position:fixed;right:20px;bottom:20px;width:60px;height:60px;border-radius:50%;background:var(--terracotta);color:var(--warm-cream);border:0;box-shadow:var(--shadow);cursor:pointer;z-index:999;display:grid;place-items:center;transition:background .25s,transform .25s}
.tih-chat__launcher:hover{background:var(--burnt-clay);transform:translateY(-2px)}
.tih-chat__launcher::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--terracotta);animation:tih-pulse 2.6s ease-out infinite}
.tih-chat__launcher.is-open::before{display:none}
.tih-chat__hint{position:absolute;right:72px;white-space:nowrap;background:var(--espresso);color:var(--warm-cream);font:400 .8rem var(--sans);padding:.5rem .8rem;opacity:0;transform:translateX(6px);transition:.25s;pointer-events:none}
.tih-chat__launcher:hover .tih-chat__hint,.tih-chat__launcher:focus-visible .tih-chat__hint{opacity:1;transform:none}
@keyframes tih-pulse{0%{transform:scale(1);opacity:.7}80%,100%{transform:scale(1.45);opacity:0}}

.tih-chat__panel{position:fixed;right:20px;bottom:92px;width:340px;height:480px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:var(--warm-cream);color:var(--espresso);box-shadow:0 18px 50px rgba(48,35,31,.28);z-index:999;font-family:var(--sans)}
.tih-chat__panel[hidden]{display:none}
.tih-chat__head{background:var(--espresso);color:var(--warm-cream);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.tih-chat__title{display:grid}
.tih-chat__title strong{font:400 1.05rem var(--serif)}
.tih-chat__title small{font-size:.74rem;opacity:.8;display:flex;align-items:center;gap:.4rem}
.tih-chat__title small::before{content:"";width:7px;height:7px;border-radius:50%;background:#4cc38a}
.tih-chat__close{background:none;border:0;color:var(--warm-cream);font-size:1.7rem;line-height:1;cursor:pointer;width:36px;height:36px}
.tih-chat__log{padding:14px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px}
.tih-msg{max-width:85%;padding:9px 12px;font-size:.9rem;line-height:1.5;white-space:pre-line;animation:tih-in .25s ease-out}
.tih-msg--bot{background:#fff;align-self:flex-start;border-radius:2px 12px 12px 12px}
.tih-msg--user{background:var(--terracotta);color:var(--warm-cream);align-self:flex-end;border-radius:12px 2px 12px 12px}
@keyframes tih-in{from{opacity:0;transform:translateY(6px)}}
.tih-chat__foot{padding:10px 12px 14px;border-top:1px solid rgba(168,137,98,.35)}
.tih-chat__choices{display:flex;flex-wrap:wrap}
.tih-chip{border:1px solid var(--terracotta);background:transparent;color:var(--burnt-clay);padding:.45rem .8rem;margin:3px;cursor:pointer;font:400 .82rem var(--sans);border-radius:999px;transition:.2s}
.tih-chip:hover,.tih-chip:focus-visible{background:var(--terracotta);color:var(--warm-cream)}
.tih-chat__form{display:flex;gap:6px}
.tih-chat__form input{flex:1;min-width:0;font:300 .95rem var(--sans);padding:.7rem .8rem;border:1px solid rgba(48,35,31,.25);background:#fff;color:var(--espresso);border-radius:2px}
.tih-chat__form input:focus{outline:none;border-color:var(--terracotta)}
.tih-chat__send{background:var(--espresso);color:var(--warm-cream);border:0;padding:0 1rem;cursor:pointer;font:500 .85rem var(--sans)}
.tih-chat__send:hover{background:var(--burnt-clay)}
.tih-chat__wa{display:flex;justify-content:center;align-items:center;gap:.5rem;background:#1f7a4d;color:#fff;text-decoration:none;padding:.85rem 1rem;font:500 .9rem var(--sans)}
.tih-chat__wa:hover{background:#17603c;color:#fff}
.tih-chat__restart{display:block;margin:.6rem auto 0;background:none;border:0;color:var(--burnt-clay);font-size:.8rem;text-decoration:underline;cursor:pointer}
@media (max-width:520px){
  .tih-chat__panel{right:0;bottom:0;width:100%;height:auto;max-height:80vh;min-height:60vh;border-radius:12px 12px 0 0;overflow:hidden}
  .tih-chat__launcher{right:16px;bottom:16px}
  .tih-chat__hint{display:none}
}
@media (prefers-reduced-motion:reduce){.tih-chat__launcher::before{animation:none;display:none}}
