
:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --msger-bg: #fff;
  --border: 2px solid #ddd;
  --left-msg-bg: #ececec;
  --right-msg-bg: #579ffb;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}


.msger-header {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  display: flex;
  background: #b6ecf7;
  padding-right: 5px;
  padding-left: 5px;
  padding-top: 13px;
  padding-bottom: 13px;
  border-top-right-radius:20px;
  border-top-left-radius:20px;
}

.msger-chat {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height:400px;
  max-height:400px;
}
.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.msg:last-of-type {
  margin: 0;
}
.msg-img {
  width: 60px;
  height: 60px;
  /* margin-right: 10px; */
  object-fit:cover;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}
.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 0;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  border-bottom-right-radius:20px;
  border-bottom-left-radius:20px;
  display: flex;
  padding: 20px;
  border-top: var(--border);
  background: black;
}
.msger-inputarea * {
  padding: 3px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}
.msger-input {
  outline: 2px solid transparent;
  /* flex: 1; */
  width:100%;
  position:relative;
  bottom:0px;
}
.msger-send-btn {
  margin-left: 10px;
  background: rgb(240 66 138);
  color: #fff;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn:hover {
  background: rgb(176, 49, 102);
}

.msger-chat {
  background-color: #fcfcfe;
}


.chatclosebtn{
  display: block;
  background-color:white;
  cursor:pointer;
  width:30px;
  height:30px;
  border-radius:100px;
  top:0px;position:relative;
  top:10px;display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

@media only screen and (max-width: 745px) {
  .msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height:600px;
  }
}