.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 40px;
  z-index: 1000;
}

.chat-icon {
  width:90px;
  height:90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  xbox-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}
.chat-icon img{
  width:90px;
  height:90px;
}
.chat-iconOpen {
  margin-bottom: -3px;
  margin-left:2px;
  width:60px;
  height:60px;
  border-radius: 50%;
  display:  none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  xbox-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}
.chat-iconOpen img{
  width:60px;
  height:60px;
}


/** close icon **/
.chat-icon2{
  display: flex;
  width: 30px;
  height: 30px;
  position:absolute;
  top:30px;
  right:5px;
  justify-content: center;
   align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  border-radius: 50%;
}
/** download icon **/
.chat-icon3{
  display: flex;
  width: 30px;
  height: 30px;
  position:absolute;
  top:30px;
  right:45px;
  justify-content: center;
   align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  border-radius: 50%;
}
/** copy icon **/
.chat-icon4{
  display: flex;
  width: 30px;
  height: 30px;
  position:absolute;
  top:30px;
  right:85px;
  justify-content: center;
   align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  border-radius: 50%;
}


.chat-window {
  display: none;
  width: 45vi;
  height:75vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-direction: column;
  overflow: hidden;
  margin-top: 10px;
  border:2px solid #ddd;
}

.chat-window.mobile {
  width: 90vw;
  height: 70vh;
}

.chat-header {
  background-color: #f8f9fa;
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
  font-weight: bold;
}

.message-area {
  flex: 1;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: #fefefe;

}

.input-area {
  display: flex;
  padding: 10px;
  box-sizing: border-box;
  background-color: #ffffff;
  xborder-top: 1px solid #e9ecef;
}

.input-field {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 8px;
  margin-right: 10px;
  font-size: 14px;
  margin-bottom:0px;
}

.send-button {
  padding: 10px 16px;
  Xbackground-color: #28a745;
  background-color: #64a1f5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  width:100px;
  box-sizing: border-box;
  transition: background-color 0.3s;
}

.message {
  margin-bottom: 12px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 16px;
}

.message h1, .message h2{
  font-size:18px !important;
}
.message ul{
  margin-bottom:10px;
}
.message ul li{
  margin-left:16px;
}

.user-message {
  background-color:#64a1f5;
  color: #fff;
  margin-left: auto;
  text-align: right;
}

.bot-message {
  background-color: #ececec;
  color: #333;
  margin-right: auto;
}

.thinking-dots {
  display: inline-block;
  width: 40px;
  height: 10px;
  text-align: center;
}

.thinking-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 0.6s infinite alternate;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-6px);
  }
}

.chat-footer{
	background-color:#eee;
	text-align:center;
}
.chat-footer a{
	display:flex;
  justify-content: center;
  align-content: center;
	padding:10px 0px;
  box-sizing: border-box;
	font-size:12px;
  line-height:20px;
	color:#333;
}
.chat-footer img{
  display:flex;
  align-content: flex-start;
}

@media screen and (max-width:980px){
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }  
  .chat-icon{
    width:60px;
    height:60px; 
  }
  .chat-icon img{
    width:60px;
    height:60px; 
  }
    .chat-window {
      display: none;
      width: 90vw;
      height:75vh;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      flex-direction: column;
      overflow: hidden;
      margin-top: 10px;
      border:2px solid #ddd;
    }
    .input-field{
        margin-right:5px;
    }
    .send-button{
        font-size:16px;
    }
}
@media screen and (max-width:768px){
  .chat-widget {
    bottom: 20px;
    right: 10px;
  }
}
@media screen and (max-height:800px){
    .chat-window {
      height:65vh;
  }
}