/* WhatsApp Chat Widget — MMP Style */
#wa-chat-root * { box-sizing: border-box; }

.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; display: block; }
.wa-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f44336;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.wa-popup {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 310px;
  background: #fff;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: none;
  z-index: 99997;
  border: 1px solid #e0e0e0;
  animation: waSlideUp 0.22s ease;
}
.wa-popup.open { display: block; }

@keyframes waSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wa-header {
  background: #1e3a6e;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}
.wa-header-title { color: #fff; font-size: 14px; font-weight: 500; font-family: inherit; }
.wa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.wa-close:hover { color: #fff; }

.wa-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.wa-alert {
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  display: none;
  font-family: inherit;
}
.wa-alert.err { background: #fdecea; color: #c0392b; display: block; }
.wa-alert.ok  { background: #e8f8ee; color: #1e7e4a; display: block; }

.wa-body textarea {
  width: 100%;
  height: 90px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #333;
  resize: none;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.wa-body textarea::placeholder { color: #aaa; }
.wa-body textarea:focus { border-color: #1e3a6e; box-shadow: 0 0 0 2px rgba(30,58,110,0.1); }

.wa-phone-row {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: visible;
  background: #fff;
  transition: border-color 0.15s;
}
.wa-phone-row:focus-within { border-color: #1e3a6e; box-shadow: 0 0 0 2px rgba(30,58,110,0.1); }

.wa-country {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-right: 1px solid #ddd;
  background: #f8f8f8;
  position: relative;
  min-width: 88px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 6px 0 0 6px;
}
.wa-flag   { font-size: 17px; line-height: 1; }
.wa-code   { font-size: 13px; color: #333; font-weight: 500; font-family: inherit; }
.wa-chev   { font-size: 9px; color: #999; }
.wa-country select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.wa-phone-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #333;
  background: transparent;
  min-width: 0;
  font-family: inherit;
}
.wa-phone-input::placeholder { color: #aaa; }

.wa-send-btn {
  width: 100%;
  padding: 11px;
  background: #1e3a6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.2s;
}
.wa-send-btn svg    { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.wa-send-btn:hover  { background: #16306b; }
.wa-send-btn:disabled { background: #7a9ac4; cursor: not-allowed; }

.wa-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  font-family: inherit;
}

@media (max-width: 480px) {
  .wa-popup { right: 12px; left: 12px; width: auto; bottom: 86px; }
  .wa-fab   { right: 16px; bottom: 20px; }
}
