/* ===== WhatsApp Lead Tracker – Public Styles ===== */
:root {
  --wlt-color: #25D366;
  --wlt-dark:  #128C7E;
  --wlt-white: #ffffff;
  --wlt-radius: 16px;
  --wlt-shadow: 0 8px 32px rgba(0,0,0,.18);
  --wlt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Wrapper ── */
#wlt-float-wrap {
  position: fixed;
  bottom: 24px;
  z-index: 99999;
  font-family: var(--wlt-font);
}
#wlt-float-wrap.wlt-pos-right { right: 24px; }
#wlt-float-wrap.wlt-pos-left  { left:  24px; }

/* ── Botão flutuante ── */
#wlt-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wlt-color);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
#wlt-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
#wlt-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wlt-color);
  opacity: .4;
  animation: wlt-pulse 2s ease-out infinite;
}
@keyframes wlt-pulse {
  0%   { transform: scale(1);   opacity: .4; }
  70%  { transform: scale(1.4); opacity: 0;  }
  100% { transform: scale(1.4); opacity: 0;  }
}
#wlt-float-btn .wlt-icon-close {
  font-size: 20px;
  color: white;
  line-height: 1;
}

/* ── Popup ── */
.wlt-popup {
  position: absolute;
  bottom: 72px;
  width: 320px;
  background: #f0f0f0;
  border-radius: var(--wlt-radius);
  box-shadow: var(--wlt-shadow);
  overflow: hidden;
  animation: wlt-slide-up .25s ease;
}
.wlt-pos-right .wlt-popup { right: 0; }
.wlt-pos-left  .wlt-popup { left:  0; }

@keyframes wlt-slide-up {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ── Header ── */
.wlt-popup-header {
  background: var(--wlt-color);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wlt-agent-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wlt-agent-info { flex: 1; color: white; }
.wlt-agent-info strong { display: block; font-size: 14px; }
.wlt-agent-info span   { font-size: 12px; opacity: .85; }
.wlt-close-popup {
  background: none; border: none; color: white;
  font-size: 18px; cursor: pointer; opacity: .8; padding: 4px;
  line-height: 1;
}
.wlt-close-popup:hover { opacity: 1; }

/* ── Body ── */
.wlt-popup-body { padding: 16px; }

.wlt-bubble {
  background: white;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 14px;
  position: relative;
}
.wlt-bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  border: 8px solid transparent;
  border-top-color: white;
  border-right-color: white;
}

/* ── Intent buttons ── */
.wlt-intent-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.wlt-intent-btn {
  background: white;
  border: 1.5px solid var(--wlt-color);
  color: var(--wlt-color);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
}
.wlt-intent-btn:hover,
.wlt-intent-btn.active {
  background: var(--wlt-color);
  color: white;
}

/* ── Form ── */
.wlt-form { display: flex; flex-direction: column; gap: 10px; }
.wlt-form input[type=text],
.wlt-form input[type=tel] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border .15s;
  box-sizing: border-box;
  background: white;
}
.wlt-form input:focus { border-color: var(--wlt-color); }

.wlt-submit-btn {
  background: var(--wlt-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
}
.wlt-submit-btn:hover   { background: var(--wlt-dark); }
.wlt-submit-btn:active  { transform: scale(.98); }
.wlt-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

.wlt-msg {
  font-size: 12.5px;
  text-align: center;
  min-height: 18px;
  color: #e53935;
}
.wlt-msg.success { color: var(--wlt-dark); }

/* ── Trigger button (shortcode) ── */
.wlt-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.wlt-trigger-btn:hover  { filter: brightness(1.1); }
.wlt-trigger-btn:active { transform: scale(.97); }

/* ── Responsivo ── */
@media (max-width: 380px) {
  .wlt-popup { width: calc(100vw - 48px); }
  #wlt-float-wrap.wlt-pos-right { right: 16px; }
  #wlt-float-wrap.wlt-pos-left  { left:  16px; }
}
