/* ===== Widget Live Chat — pojok kanan bawah ===== */
.fauzan-chat-launcher {
  position: fixed;
  right: 15px;
  bottom: 70px;
  z-index: 2000;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: none;
  background: #0563bb;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(5, 99, 187, .4);
  cursor: pointer;
  transition: transform .15s;
}
.fauzan-chat-launcher:hover { transform: scale(1.06); }
.fauzan-chat-launcher .badge-chat {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc3545;
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

.fauzan-chat-box {
  position: fixed;
  right: 22px;
  bottom: 130px;
  z-index: 2001;
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 460px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.fauzan-chat-box.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.fauzan-chat-head {
  background: linear-gradient(135deg, #0563bb, #03448a);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fauzan-chat-head .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.fauzan-chat-head .nm { flex: 1; line-height: 1.15; }
.fauzan-chat-head .nm b { display: block; font-size: .95rem; }
.fauzan-chat-head .nm span { font-size: .72rem; opacity: .9; }
.fauzan-chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.fauzan-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f4f7fb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fauzan-msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.4; word-wrap: break-word; }
.fauzan-msg .utk { display: block; font-size: .68rem; opacity: .7; margin-bottom: 2px; }
.fauzan-msg.visitor { align-self: flex-end; background: #0563bb; color: #fff; border-bottom-right-radius: 3px; }
.fauzan-msg.admin { align-self: flex-start; background: #fff; color: #222; border: 1px solid #e3e8f0; border-bottom-left-radius: 3px; }
.fauzan-chat-empty { text-align: center; color: #8a94a6; font-size: .82rem; padding: 20px 10px; }

.fauzan-chat-foot { border-top: 1px solid #e3e8f0; padding: 10px 12px; background: #fff; }
.fauzan-ask-name { display: flex; gap: 8px; }
.fauzan-ask-name input, .fauzan-chat-input input {
  flex: 1;
  border: 1px solid #d5dbe5 !important;
  border-radius: 20px !important;
  padding: 8px 14px !important;
  font-size: .88rem;
}
.fauzan-chat-input { display: flex; gap: 8px; }
.fauzan-chat-input button, .fauzan-ask-name button {
  width: 40px; height: 38px;
  border-radius: 50%;
  border: none;
  background: #0563bb;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fauzan-chat-hint { font-size: .7rem; color: #98a1b3; text-align: center; margin-top: 6px; }