:root {
  --vh: 1vh;
}

#new-chat-widget {
  width: auto;
  font-family: 'Montserrat', sans-serif;
}

.new-chat-toggle {
  width: 6vw;
  height: 6vw;
  min-width: 40px;
  min-height: 40px;
  border-radius: 3vw;
  background-color: #11B5E4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 10000;
}

.new-chat-toggle:hover {
  background-color: #11B5E4;
}

.new-chat-toggle img {
  width: 2vw;
  height: 2vw;
  min-width: 16px;
  min-height: 16px;
}

.new-chat-popup {
  display: block;
  width: 100%;
  max-width: 740px;
  height: 435px;
  max-height: 435px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.new-chat-header {
  background-color: #11B5E4;
  color: #fff;
  padding: 1.5vh 1.5vw;
  font-weight: bold;
  font-size: 1.4vw;
  text-align: center;
  flex-shrink: 0;
}

.new-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1vh 1vw;
  background-color: #f7f9fb;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

.new-chat-form {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1vh 1vw;
  background-color: #fff;
  border-top: 0.1vw solid #ccc;
}

#new-chat-input {
  width: 100%;
  min-height: 8vh;
  border-radius: 1vw;
  border: 0.2vw solid #11B5E4;
  padding: 1vh 1vw;
  font-size: 1.2vw;
  resize: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

#new-send-button {
  margin-top: 1vh;
  min-height: 40px;
  background-color: #11B5E4;
  color: white;
  border: none;
  border-radius: 1vw;
  font-size: 1.2vw;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

#new-send-button:hover {
  background-color: #11B5E4;
}

.new-my-message,
.new-other-message {
  padding: 0.8vh 1vw;
  border-radius: 1vw;
  font-size: 1.1vw;
  word-wrap: break-word;
  max-width: 90%;
  line-height: 1.4;
}

.new-my-message {
  background-color: #11B5E4;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.new-other-message {
  background-color: #e1e1e1;
  color: #000;
  align-self: flex-start;
  margin-right: auto;
}

.new-scroll-to-bottom {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  padding: 1vh 2vw;
  background-color: #11B5E4;
  color: white;
  border: none;
  border-radius: 1vw;
  cursor: pointer;
  display: none;
  z-index: 10;
  font-size: 1vw;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
}

.new-scroll-to-bottom:hover {
  background-color: #11B5E4;
}

@media screen and (min-width: 1600px) and (max-width: 1919px) {
  .new-chat-popup {
    height: 435px;
    max-height: 435px;
  }

  #new-chat-input {
    font-size: 1.1vw;
    min-height: 7vh;
  }

  #new-send-button {
    font-size: 1.1vw;
  }

  .new-chat-header {
    font-size: 1.3vw;
  }

  .new-my-message,
  .new-other-message {
    font-size: 1vw;
  }

  .new-scroll-to-bottom {
    font-size: 1vw;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1599px) {
  #new-chat-input {
    font-size: 1.2vw;
    min-height: 7.5vh;
  }

  #new-send-button {
    min-height: 25px;
    height: 25px !important;
    font-size: 1.2vw;
  }

  .new-chat-header {
    font-size: 1.4vw;
  }

  .new-my-message,
  .new-other-message {
    font-size: 1.1vw;
  }

  .new-scroll-to-bottom {
    font-size: 1.1vw;
  }

  #new-chat-input {
    min-height: 6vh;
    max-height: 6vh;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #new-chat-input {
    font-size: 1.4vw;
    min-height: 8vh;
  }

  #new-send-button {
    height: 25px !important;
    min-height: 25px;
    font-size: 1.4vw;
  }

  .new-chat-header {
    font-size: 1.6vw;
  }

  .new-my-message,
  .new-other-message {
    font-size: 1.3vw;
  }

  .new-scroll-to-bottom {
    font-size: 1.2vw;
  }

  #new-chat-input {
    min-height: 6vh;
    max-height: 6vh;
  }
}

@media screen and (max-width: 767px) {
  #new-chat-widget {
    width: 100%;
  }

  .new-chat-popup {
    width: 100%;
    max-width: none;
    height: 320px;
    max-height: none;
  }

  .new-chat-toggle {
    width: 12vw;
    height: 12vw;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
  }

  .new-chat-toggle img {
    width: 5vw;
    height: 5vw;
    max-width: 20px;
    max-height: 20px;
  }

  .new-chat-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 2vh 2vw;
    background-color: #fff;
    border-top: 0.2vh solid #ccc;
    box-sizing: border-box;
    max-height: auto;
  }

  #new-chat-input {
    width: 100%;
    min-height: 6vh;
    max-height: 6vh;
    border-radius: 1.5vh;
    border: 0.3vh solid #11B5E4;
    padding: 1.5vh 1vw;
    font-size: 16px;
    resize: none;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    overflow-y: auto;
  }

  #new-send-button {
    margin-top: 10px;
    height: 25px !important;
    min-height: 25px;
    padding: 0px;
    background-color: #11B5E4;
    color: white;
    border: none;
    border-radius: 1.5vh;
    font-size: 3.5vw;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
  }

  .new-chat-header {
    font-size: 4vw;
  }

  .new-my-message,
  .new-other-message {
    font-size: 3.5vw;
  }

  .new-scroll-to-bottom {
    font-size: 3.2vw;
    bottom: 12vh;
  }

  .new-chat-messages {
    padding: 1vh 5vw 1vh 2vw;
  }
}

.new-message-time {
  font-size: 0.8vw;
  color: #666;
  margin-top: 0.5vh;
  align-self: flex-end;
}

@media screen and (max-width: 767px) {
  .new-message-time {
    font-size: 2.8vw;
    margin-top: 1vh;
  }
}

.new-message-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75vh;
}

.new-initials-circle {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: #11B5E4;
  color: white;
  border-radius: 50%;
  font-size: 1.1vw;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.new-initials-circle.empty {
  visibility: hidden;
}

@media screen and (max-width: 767px) {
  .new-initials-circle {
    width: 25px;
    height: 25px;
    font-size: 12px;
    margin-right: 2vw;
  }

  .new-message-wrapper {
    margin-bottom: 1vh;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .new-initials-circle {
    width: 30px;
    height: 30px;
    font-size: 1.3vw;
    margin-right: 10px;
  }

  .new-message-wrapper {
    margin-bottom: 0.9vh;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1599px) {
  .new-initials-circle {
    width: 30px;
    height: 30px;
    font-size: 1.1vw;
    margin-right: 10px;
  }

  .new-message-wrapper {
    margin-bottom: 0.9vh;
  }
}

@media screen and (min-width: 1600px) and (max-width: 1919px) {
  .new-initials-circle {
    width: 50px;
    height: 50px;
    font-size: 1vw;
    margin-right: 14px;
  }
}

.new-date-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75vh;
}

.new-date-separator {
  padding: 1vh 2vh;
  text-align: center;
  font-weight: normal;
  color: #858585;
  background: #d5d5d5;
  font-size: 1.1vw;
  user-select: none;
  border-radius: 100vw;
}

@media screen and (max-width: 767px) {
  .new-date-wrapper {
    margin-bottom: 1vh;
  }

  .new-date-separator {
    font-size: 3.5vw;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .new-date-wrapper {
    margin-bottom: 0.9vh;
  }

  .new-date-separator {
    font-size: 1.3vw;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1599px) {
  .new-date-wrapper {
    margin-bottom: 0.9vh;
  }

  .new-date-separator {
    font-size: 1.1vw;
  }
}

@media screen and (min-width: 1600px) and (max-width: 1919px) {
  .new-date-separator {
    font-size: 1vw;
  }
}

.new-chat-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0vh 2vw;
  border-bottom: 1px solid #ccc;
  background-color: #11B5E4;
  color: white;
}

.new-chat-minimize-button {
  position: fixed;
  right: 2vw;
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  width: min-content;
}