.tl-chat-launcher{
  position:fixed;
  right:26px;
  bottom:26px;
  width:62px;
  height:62px;
  border-radius:50%;
  background:#3b3535;
  color:#fff8ed;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
  cursor:pointer;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
  z-index:9990;
  padding: 15px;
}

.tl-chat-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  z-index:9991;
}

.tl-chat-overlay.active{
  display:block;
}

.tl-chat-widget{
  position:fixed;
  right:26px;
  bottom:100px;
  width:380px;
  height:520px;
  max-height:calc(100vh - 130px);
  background:#fffaf2;
  color:#3b3535;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 30px 90px rgba(0,0,0,.3);
  opacity:0;
  pointer-events:none;
  transform:translateY(25px) scale(.96);
  transition:.25s ease;
  z-index:9992;
}

.tl-chat-widget.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.tl-chat-head{
  flex:0 0 auto;
  background:#3b3535;
  color:#fff8ed;
  padding:20px;
  display:flex;
  justify-content:space-between;
  gap:18px;
}

.tl-chat-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff8ed;
    color: #3b3535;
    font-size: 13px;
    font-weight: 600;
}

.tl-chat-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 600;
}

.tl-chat-head button{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff8ed;
  font-size:24px;
  cursor:pointer;
}

.tl-chat-messages{
  flex:1 1 auto;
  min-height:0;
  padding:18px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.tl-msg{
  max-width:86%;
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.tl-msg p {
    margin: 0;
    padding: 13px 15px;
    font-size: 11px;
    line-height: 1.5;
}

.tl-msg-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#f2b766;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.tl-msg-bot{
  align-self:flex-start;
}

.tl-msg-bot p{
  background:#f1ebe2;
  color:#3b3535;
  border-radius:18px 18px 18px 6px;
}

.tl-msg-user{
  align-self:flex-end;
}

.tl-msg-user p{
  background:#3b3535;
  color:#fff8ed;
  border-radius:18px 18px 6px 18px;
}

.tl-chat-form{
  flex:0 0 auto;
  margin:0 16px 16px;
  padding:12px;
  background:#fff;
  border:1px solid rgba(59,53,53,.15);
  border-radius:20px;
}

.tl-chat-form textarea{
  width:100%;
  height:38px;
  border:0;
  outline:0;
  resize:none;
  background:transparent;
  color:#3b3535;
  font-family:inherit;
  font-size:12px;
}

.tl-chat-form-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
}

.tl-chat-tools{
  display:flex;
  gap:12px;
  color:rgba(59,53,53,.45);
}

.tl-chat-form button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #3b3535;
    color: #fff8ed;
    cursor: pointer;
    padding: 8px;
}

p {
    font-size: 12px;
}

.tl-msg-bubble {
    font-size: 12px;
}

img {
    width: 30px;
}

@media(max-width:640px){
  .tl-chat-launcher{
    right:18px;
    bottom:18px;
  }

  .tl-chat-widget{
    left:12px;
    right:12px;
    bottom:90px;
    width:auto;
    height:520px;
    max-height:calc(100vh - 110px);
  }
}

@media(max-width:420px){
  .tl-chat-widget{
    left:0;
    right:0;
    bottom:0;
    height:100vh;
    max-height:100vh;
    border-radius:0;
  }
}