.chat{
  position:fixed;inset:auto 24px 24px auto;z-index:200;display:none;
}
.chat.is-open{display:block}

.chat__panel{
  width:380px;max-width:calc(100vw - 32px);
  height:560px;max-height:calc(100vh - 80px);
  background:linear-gradient(180deg, rgba(43,29,20,.98), rgba(18,18,18,.98));
  border:1px solid rgba(200,122,46,.35);
  border-radius:22px;
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.7);
  animation:chatIn .25s ease;
}
@keyframes chatIn{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

.chat__head{
  display:flex;align-items:center;gap:12px;
  padding:16px;border-bottom:1px solid rgba(200,122,46,.2);
}
.chat__avatar img{
  width:44px;height:44px;border-radius:50%;
  border:2px solid var(--amber);object-fit:cover;
}
.chat__head strong{
  font-family:var(--font-heading, 'Cormorant Garamond', serif);
  font-size:18px;color:var(--cream);display:block;
}
.chat__status{
  font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;
}
.chat__status .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--saffron);box-shadow:0 0 8px var(--saffron);
}
.chat__close{
  margin-left:auto;background:none;border:0;color:var(--muted);
  font-size:26px;cursor:pointer;line-height:1;
}
.chat__close:hover{color:var(--cream)}

.chat__body{
  flex:1;overflow-y:auto;padding:16px;
  display:flex;flex-direction:column;gap:12px;
}
.msg{
  padding:10px 14px;border-radius:14px;max-width:85%;
  font-size:14px;line-height:1.4;
}
.msg p{margin:0}
.msg--garry{
  background:rgba(200,122,46,.1);
  border:1px solid rgba(200,122,46,.25);
  color:var(--cream);border-top-left-radius:4px;
}
.msg--user{
  background:rgba(255,255,255,.06);
  color:var(--cream);margin-left:auto;border-top-right-radius:4px;
}

.chat__input{
  display:flex;gap:8px;padding:12px;
  border-top:1px solid rgba(200,122,46,.2);
}
.chat__input input{
  flex:1;background:rgba(255,255,255,.04);
  border:1px solid rgba(200,122,46,.2);
  border-radius:999px;padding:10px 16px;
  color:var(--cream);font-size:14px;outline:none;
}
.chat__input input:focus{border-color:var(--amber)}
.chat__input button{
  width:42px;height:42px;border-radius:50%;
  background:var(--amber);border:0;color:#1a1005;
  font-size:18px;cursor:pointer;transition:.2s;
}
.chat__input button:hover{background:var(--saffron)}

@media (max-width:680px){
  .chat{inset:auto 12px 12px 12px}
  .chat__panel{width:100%;height:70vh}
}