.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

.wa-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 26px;
  border: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  display: block;
}

.wa-fab:hover {
  background: #1ebe5d;
}

.wa-popup {
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: absolute;
  bottom: 75px;
  right: 0;
  display: none;
  flex-direction: column;
  animation: fadeInUp 0.3s ease;
  overflow: visible;
}

.wa-popup.active {
  display: flex;
}

.wa-header {
  background: #25D366;
  color: #fff;
  padding: 16px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.wa-header h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wa-body {
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.wa-step,
.wa-form,
.wa-preview-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-hidden {
  display: none !important;
}

.wa-intro {
  margin: 0 0 4px;
  font-size: 14px;
  color: #334155;
}

.wa-option,
.wa-action {
  width: 100%;
  border: 1px solid #d1fae5;
  background: #f8fffb;
  color: #166534;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.wa-action {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.wa-action-success {
  background: #16a34a;
  border-color: #16a34a;
}

.wa-form-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.wa-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  font: inherit;
  box-sizing: border-box;
}

.wa-input:last-child {
  margin-bottom: 0;
}

.wa-textarea {
  min-height: 80px;
  resize: vertical;
}

.wa-preview {
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: pre-wrap;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.xdsoft_datetimepicker {
  z-index: 10500 !important; /* Higher than .wa-popup */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
