.live-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 8px 2px #00ff00;
    animation: blink 0.6s infinite alternate;
    vertical-align: middle;
}
.profile {
    display: inline;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222; /* Optional: fallback bg */
}
.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle */
    object-position: center;
    display: block;
}

@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 2px 1px mediumseagreen;
    }
    100% {
        opacity: 0;
    }
}
.chat-bar-open {
  display: none;
  text-align: center;
  position: fixed;
  bottom: 40px;
  right: 50px;
}
/* #chat-open,
#chat-close {
  display: none;
} */

.chat-bar-close {
    display: none;
    text-align: center;
    position: fixed;
    bottom: 40px;
    right: 50px;
}

.chat-bar-open .close,
.chat-bar-close .close {
    background-color: #fff;
    cursor: pointer;
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 50%;
    border-style: none;
    vertical-align: middle;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
    box-sizing: border-box;
}

.chat-bar-close .close i {
    font-size: 30px;
}

/* chat window 1 */
.chat-window {
    width: 332px;
    height: 350px;
    border-radius: 10px;
    background-color: #fff;
    padding: 0px;
    z-index: 9999999;
    position: fixed;
    bottom: 110px;
    right: 54px;
    display: none;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
}
.hi-there {
    background-color: black;
    color: #fff;
    padding: 10px 10px;
    border-radius: 5px;
}
.hi-there .p1 {
    font-size: 20px;
}
.chat-window .start-conversation{
    display:flex;
    justify-content: space-between;
    flex-direction: column;
    height: 260px;
    padding: 5px 16px;
}
.chat-window .start-conversation button {
    cursor: pointer;
    border: none;
    border-radius: 20px;
    padding: 7px 30px;
    margin: 10px 0px;
    background-color: #13a884;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    row-gap: 5px;
    bottom: 0;
}
.chat-window .start-conversation button span {
    font-size: 14px;
}
.chat-window .start-conversation button i {
    font-size: 16px;
    position: relative;
    left: 6px;
    top: 3px;
}
/* messages */
.chat-window .start-conversation .second-chat {
  display: inline-block;
}

.chat-window .start-conversation.cw1 .second-chat .circle {
  background-color: #4c5aa1;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  float: left;
  margin-top: 10px;
  margin-right: 5px;
}
.chat-window .start-conversation.cw1 .second-chat .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle */
    object-position: center;
    display: block;
    border-radius: 50%;
}
.chat-window .start-conversation .second-chat #circle-mar {
  margin-top: 5px;
}

.chat-window .start-conversation .second-chat p {
  font-size: 12px;
  overflow-wrap: break-word;
}
.chat-window .start-conversation .second-chat p {
  width: 200px;
  float: left;
  background-color: #ecf1fb;
  padding: 12px;
  margin: 0px 5px;
  border-radius: 10px;
  color: #000;
}

/* chat window 2 */
.chat-window2 {
    display: none;
    width: 332px;
    height: 434px;
    border-radius: 10px;
    background-color: #fff;
    padding: 0px;
    z-index: 9999999;
    position: fixed;
    bottom: 110px;
    right: 54px;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
}
.chatting{
    padding: 16px;
}
.chat-window2 .hi-there .p2 {
    font-size: 12px;
}
.message-box {
    height: 316px;
    width: 100%;
    overflow: auto;
}
.message-box .first-chat {
    width: 200px;
    float: right;
    background-color: #4c5aa1;
    padding: 10px;
    margin: 14px 0px;
    margin-bottom: 0px;
    border-radius: 5px;
    color: white;
}
.message-box .first-chat p {
    margin:0;
  font-size: 12px;
  overflow-wrap: break-word;
}
.message-box .first-chat .arrow {
    content: "";
    width: 0px;
    height: 0px;
    border-left: 9px solid transparent;
    border-right: 9px solid #4c5aa1;
    border-top: 9px solid #4c5aa1;
    border-bottom: 9px solid transparent;
    right: -172px;
    bottom: -23px;
    position: relative;
    margin-top: -15px;
}

.message-box .second-chat {
  display: inline-block;
  margin-top: 14px;
}

.message-box .second-chat .circle {
  background-color: #4c5aa1;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  float: left;
  margin-top: 10px;
  margin-right: 5px;
}
.message-box .second-chat .circle img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circle */
    object-position: center;
    display: block;
    border-radius: 50%;
}
.message-box .second-chat #circle-mar {
  margin-top: 5px;
}

.message-box .second-chat p {
  font-size: 12px;
  overflow-wrap: break-word;
}
.message-box .second-chat p {
  width: 200px;
  float: left;
  background-color: #ecf1fb;
  padding: 12px;
  margin: 0px 5px;
  border-radius: 10px;
  color: #000;
}

/* input section */
.chat-window2 .input-box {
  position: absolute;
  font-size: 12px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0px 30px;
  padding-bottom: 18px;
  border-top: 1px solid lightgray;
}
.chat-window2 .input-box .write-reply {
  float: left;
}
.chat-window2 .input-box .write-reply input[type="text"] {
    padding-top: 15px;
  border: none;
  outline: none;
  font-size: 14px;
}
.chat-window2 .input-box .send-button {
  float: right;
  border: none;
  outline: none;
}
.chat-window2 .input-box .send-button button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
}
.chat-window2 .input-box .send-button button i {
  color: grey;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

/* RESPONSIVE */
@media screen and (max-width: 396px) {
  .chat-window {
    right: 14px;
    bottom: 87px;
  }
  .hi-there {
    padding: 12px 30px;
  }
  .chat-window2 {
    right: 14px;
    bottom: 87px;
    height: 420px;
  }
  .chat-bar-open {
    bottom: 20px;
    right: 21px;
  }
  .chat-bar-close {
    bottom: 21px;
    right: 25px;
  }
  .message-box .second-chat .arrow {
  margin-left:41px;
  }
}

@media (max-width: 576px) {
    .profile {
        width: 40px;
        height: 40px;
    }
}

#minimizeBtn{
  cursor: pointer;
}