#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  font-family: "Plus Jakarta Sans", serif;
  width: 90vw;
  max-width: 90vw !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

@media (min-width: 769px) {
  #chat-widget {
    width: 400px !important;
    bottom: 20px !important;
    min-width: 20vw !important;
    max-width: 50vw !important;
  }

  #message {
    width: 20rem !important;
  }

  .chat-icon {
    bottom: 20px !important;
  }
}

.chat-icon {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.chat-icon img {
  width: 30px;
  height: 30px;
}

.chat-icon:hover {
  transform: scale(1.1);
}

.chat-header {
  background-color: #075e54;
  color: #fff;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
  display: none;
}

.chat-header .chat-title {
  display: flex;
  flex-direction: column;
}

.chat-header .close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  padding-block: 1px;
  padding-inline: 6px;
}

.chat-body {
  background-image: url("https://linkgonet.maubizq.my.id/assets/img/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*   background-color: #e5ddd5; */
  padding: 15px;
  /*   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  display: none;
}

.chat-footer {
  border-radius: 0 0 10px 10px;
  display: none;
  text-align: center;
  background-color: #f4f4f4;
}

.chat-messages-received {
  overflow-y: auto;
  margin-bottom: 0.2rem;
}

.message.received {
  margin: 10px 0;
  display: inline-block;
  min-width: 70%;
  max-width: 95%;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  position: relative;
  background-color: #ffffff;
  color: #000;
  border-radius: 0 10px 10px 10px;
  left: 8px;
}

.message.received::after {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #ffffff transparent transparent;
}

.chat-messages-send {
  display: flex;
  justify-content: end;
  overflow-y: auto;
  margin-bottom: 0.2rem;
}

.message.send {
  margin: 10px 0;
  display: inline-block;
  min-width: 70%;
  max-width: 95%;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  position: relative;
  background-color: #dcf8c6;
  color: #000;
  border-radius: 10px 0 10px 10px;
  right: 8px;
}

.message.send::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent #dcf8c6;
}

.message-time {
  font-size: 10px;
  color: #999;
  text-align: right;
  display: block;
  margin-top: 5px;
}

.start-chat {
  display: flex;
  /*   align-items: center; */
  text-decoration: none;
  color: #ffffff;
  background-color: #25d366;
  padding: 10px 20px;
  border-radius: 5px;
  border: 0;
  font-size: 14px;
  font-weight: 500;
}

.start-chat img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.start-chat:hover,
#form-container button:hover {
  background-color: #1b9e4d;
}

.chat-header-left {
  display: flex;
  align-items: center;
}

.chat-logo {
  background-color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-title h3 {
  margin: 0;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", serif;
  color: #ffffff;
}

.chat-title p {
  margin: 0;
  font-size: 12px;
  font-family: "Plus Jakarta Sans", serif;
  color: #ffffff;
}

.powered-by {
  font-size: 12px;
  color: #aaa;
  margin-block-end: 0em;
  text-decoration: none;
}

.powered-by:hover {
  color: #aaa;
  cursor: pointer;
}

.title {
  font-weight: bolder;
}

p {
  margin-block-start: 0em;
  margin-block-end: 0.5em;
}

.close-btn:hover {
  font-weight: 600;
}

#icon-message {
  padding-left: 5px;
  color: #34b7f1;
}

#form-container {
  max-width: 100%;
}

#message {
  width: 17rem;
  height: 2.4rem;
  border-radius: 2rem;
  border: 1px solid #ccc;
  font-size: 14px;
  resize: none;
  padding: 0 1rem;
  font-family: "Plus Jakarta Sans", serif;
}

#message:focus {
  /*   border-color: #128c7e; */
  outline: none;
  background-color: #ffffff;
}

#form-container button {
  width: 2.4rem;
  height: 2.4rem;
  background-color: #25d366;
  border-radius: 50%;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#form-container img {
  width: 20px;
  height: 20px;
}
