/*--------------------------------------------------------------
# WhatsApp Chat Widget
--------------------------------------------------------------*/
.back-to-top {
  right: 20px;
  bottom: 20px;
}

.wa-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99998;
  transition: opacity 0.3s ease;
}

.wa-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.wa-float-btn:hover {
  background: #1ebe5b;
  transform: scale(1.06);
}

.wa-chat-box {
  position: absolute;
  left: 0;
  bottom: 74px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
}

.wa-chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-chat-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #fff;
  color: #128c7e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.wa-header-text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.wa-header-text span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b6ffb0;
  display: inline-block;
}

.wa-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.wa-close:hover {
  opacity: 1;
}

.wa-chat-body {
  padding: 14px 16px 16px;
  background: #ece5dd;
}

.wa-message {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-message p {
  margin: 0;
  font-size: 13.5px;
  color: #333;
  line-height: 1.5;
}

.wa-message-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  text-align: right;
}

.wa-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-form input[type="text"],
.wa-form input[type="tel"] {
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13.5px;
  background: #fff;
  color: #333;
}

.wa-form input[type="text"]:focus,
.wa-form input[type="tel"]:focus {
  outline: none;
  border-color: #25d366;
}

.wa-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #444;
  cursor: pointer;
}

.wa-consent input {
  margin-top: 3px;
}

.wa-consent a {
  color: #128c7e;
  text-decoration: underline;
}

.wa-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wa-start-btn:hover {
  background: #1ebe5b;
}

.wa-start-btn i {
  font-size: 18px;
}

@media (max-width: 575px) {
  .wa-chat-box {
    left: -6px;
  }
}
