/* CSS Multiple Whatsapp Chat */
#whatsapp-chat {
  position: fixed;
  background: #fff;
  width: 350px;
  border-radius: 10px;
  border: 2px solid var(--dark-bg);
  box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
  bottom: 90px;
  right: 30px;
  overflow: hidden;
  z-index: 99;
  animation-name: showchat;
  animation-duration: 1s;
  transform: scale(1);
}
a.blantershow-chat {
  background: var(--accent-bg);
  color: var(--dark-bg);
  position: fixed;
  z-index: 98;
  bottom: 25px;
  right: 30px;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  border: 2px solid var(--dark-bg);
  box-shadow: 0 4px 0 0 var(--white-smoke);
  transition: all .4s;
}
a.blantershow-chat:hover {
  box-shadow: none;
  color: inherit;
}
a.blantershow-chat i {
  transform: scale(1.2);
  margin: 0 10px 0 0;
}
.header-chat {
  background: linear-gradient(to right top, var(--accent-bg), var(--accent-color));
  color: black;
  padding: 20px;
}
.header-chat h3 {
  margin: 0px;
  font-size: 18px;
  margin-bottom: 8px;
  color: black;
}
.header-chat p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: black;
  line-height: 1.7;
  margin: 0;
}
.info-avatar {
  position: relative;
}
.info-avatar img {
  border-radius: 100%;
  width: 50px;
  float: left;
  margin: 0 10px 0 0;
}
.info-avatar:before {
  content: "\f232";
  z-index: 1;
  font-family: "Font Awesome 5 Brands";
  background: #23ab23;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  top: 28px; /* Geser ke atas */
  left: 30px;
  display: flex;
  align-items: center; /* Pusatkan vertikal */
  justify-content: center; /* Pusatkan horizontal */
  font-size: 14px; /* Sesuaikan ukuran ikon */
}
a.informasi {
  padding: 20px;
  display: block;
  overflow: hidden;
  animation-name: showhide;
  animation-duration: 2.5s;
}
a.informasi:hover {
  background: #f1f1f1;
}
.info-chat span {
  display: block;
}
#get-label,
span.chat-label {
  font-size: 12px;
  color: #888;
  line-height: 1.6em;
}
#get-nama,
span.chat-nama {
  margin: 0px;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  color: black;
}
#get-label,
#get-nama {
  color: #fff;
}
span.my-number {
  display: none;
}
.blanter-msg {
  color: #444;
  padding: 15px;
  font-size: 12.5px;
  text-align: center;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  gap: 8px;
}

/* Wrapper utama */
.chat-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Jarak antara chat input dan tombol send */
  background: white;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  max-width: 100%; /* Pastikan container tidak melar */
}

/* Container chat input */
.chat-input-container {
  flex: 1; /* Membuat chat input tidak mendorong elemen lain */
  max-width: 100%; /* Pastikan tidak melewati batas */
  background: white;
  border-radius: 10px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
}

/* Chat input */
#chat-input {
  flex: 1; /* Biarkan input mengikuti lebar container */
  font-family: "Inter", sans-serif;
  min-height: 20px;
  max-height: 100px; /* Batasi tinggi maksimal */
  width: 100%;
  outline: none;
  background-color: white;
  overflow-y: auto; /* Aktifkan scroll jika teks terlalu panjang */
  word-break: break-word; /* Pecah kata jika panjang */
  white-space: pre-wrap;
  text-align: left;
  vertical-align: top;
  border: none;
}

/* Placeholder styling */
#chat-input:empty:before {
  content: attr(placeholder);
  color: gray;
  pointer-events: none;
}

/* Container tombol send */
.send-button-container {
  display: flex;
  align-items: center;
}

/* Tombol send */
#send-it {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

/* Ikon dalam tombol send */
#send-it img {
  width: 20px;
  height: 20px;
}

.first-msg {
  display: flex; /* Gunakan flexbox untuk mengontrol posisi */
  justify-content: flex-start; /* Bubble akan berada di kiri */
  padding: 24px 14px;
}

.first-msg span {
  background: #e2e2e2;
  color: #333;
  font-size: 14.2px;
  line-height: 1.7;
  border-radius: 15px 15px 15px 5px; /* Bubble style (kiri lebih tajam) */
  padding: 12px 18px;
  display: inline-block;
  max-width: 70%; /* Agar tidak terlalu panjang */
  word-wrap: break-word; /* Jika teks panjang, tetap dalam bubble */
  text-align: left; /* Pastikan teks rata kiri */
}
.start-chat .blanter-msg {
  display: flex;
}
#get-number {
  display: none;
}
a.close-chat {
  position: absolute;
  top: 5px;
  right: 15px;
  color: black;
  font-size: 30px;
  text-decoration: none;
  cursor: default;
}

a.close-chat:hover {
  color: inherit; 
}

@keyframes showhide {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}
@keyframes showchat {
  from {
    transform: scale(0);
    opacity: 0;
  }
}
@media screen and (max-width: 480px) {
  #whatsapp-chat {
    width: auto;
    left: 5%;
    right: 5%;
    font-size: 80%;
  }
}
.hide {
  display: none;
  animation-name: showhide;
  animation-duration: 1.5s;
  transform: scale(1);
  opacity: 1;
}
.show {
  display: block;
  animation-name: showhide;
  animation-duration: 1.5s;
  transform: scale(1);
  opacity: 1;
}
