.zv-chat-launcher{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9998;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:54px;
  padding:0 18px 0 14px;
  border:0;
  border-radius:999px;
  background:#24447f;
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(17,39,76,.22);
}

.zv-chat-launcher-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
}

.zv-chat-launcher-icon svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.zv-chat-panel{
  position:fixed;
  right:22px;
  bottom:88px;
  z-index:9999;
  width:min(380px, calc(100vw - 32px));
  height:min(560px, calc(100dvh - 120px));
  display:none;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
  border:1px solid #dce4ea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 60px rgba(17,39,76,.22);
}

.zv-chat-panel.is-open{
  display:grid;
}

.zv-chat-header{
  min-height:72px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#24447f;
  color:#fff;
}

.zv-chat-identity{
  display:flex;
  align-items:center;
  gap:11px;
}

.zv-chat-identity strong,
.zv-chat-identity small{
  display:block;
}

.zv-chat-identity strong{
  font-size:15px;
  line-height:1.3;
}

.zv-chat-identity small{
  margin-top:2px;
  font-size:12px;
  opacity:.82;
}

.zv-chat-avatar{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#fff;
  color:#24447f;
  font-weight:800;
}

.zv-chat-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}

.zv-chat-messages{
  overflow-y:auto;
  padding:16px;
  background:#f6f8fb;
  overscroll-behavior:contain;
}

.zv-chat-message{
  display:flex;
  margin:0 0 11px;
}

.zv-chat-message--user{
  justify-content:flex-end;
}

.zv-chat-bubble{
  max-width:86%;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  color:#26343d;
  font-size:14px;
  line-height:1.48;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  white-space:pre-wrap;
}

.zv-chat-message--user .zv-chat-bubble{
  background:#24447f;
  color:#fff;
  border-bottom-right-radius:5px;
}

.zv-chat-message--bot .zv-chat-bubble{
  border-bottom-left-radius:5px;
}

.zv-chat-quick-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:4px 0 14px;
}

.zv-chat-quick{
  padding:7px 11px;
  border:1px solid #cbd7e3;
  border-radius:999px;
  background:#fff;
  color:#24447f;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.zv-chat-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:12px;
  border-top:1px solid #e1e7ed;
  background:#fff;
}

.zv-chat-input{
  min-width:0;
  height:44px;
  padding:0 13px;
  border:1px solid #cbd5df;
  border-radius:10px;
  background:#fff;
  color:#1d2b34;
  font:inherit;
  font-size:14px;
  outline:none;
}

.zv-chat-input:focus{
  border-color:#24447f;
  box-shadow:0 0 0 3px rgba(36,68,127,.12);
}

.zv-chat-send{
  height:44px;
  padding:0 16px;
  border:0;
  border-radius:10px;
  background:#24447f;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

@media(max-width:640px){
  .zv-chat-launcher{
    right:14px;
    bottom:14px;
    min-height:50px;
    padding:0 15px 0 12px;
  }

  .zv-chat-panel{
    left:10px;
    right:10px;
    bottom:76px;
    width:auto;
    height:min(68dvh, 540px);
    border-radius:16px;
  }

  .zv-chat-header{
    min-height:66px;
    padding:12px 14px;
  }

  .zv-chat-messages{
    padding:13px;
  }

  .zv-chat-form{
    padding:10px;
  }
}

@media(max-width:380px){
  .zv-chat-launcher-text{
    display:none;
  }

  .zv-chat-launcher{
    width:52px;
    padding:0;
    justify-content:center;
  }

  .zv-chat-panel{
    bottom:76px;
  }
}
