/* ── OHP WhatsApp Lead Engine Styles ─────────────────────────────────────── */

/* ── FAB ── */
.ohp-wa-fab {
  position: fixed;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ohp-wa-fab--bottom-right { bottom: 24px; right: 24px; }
.ohp-wa-fab--bottom-left  { bottom: 24px; left: 24px; }

.ohp-wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}

.ohp-wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: ohp-wa-pulse 2s infinite;
}

@keyframes ohp-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0;   }
  100% { transform: scale(1.4); opacity: 0;   }
}

.ohp-wa-tooltip {
  position: absolute;
  right: 68px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ohp-wa-fab--bottom-left .ohp-wa-tooltip { right: auto; left: 68px; }

.ohp-wa-fab:hover .ohp-wa-tooltip { opacity: 1; }

/* ── Popup ── */
.ohp-wa-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9998;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: ohp-popup-in 0.3s ease;
}

@keyframes ohp-popup-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ohp-wa-popup__header {
  background: #075E54;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ohp-wa-popup__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A6B3C, #4ADE80);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ohp-wa-popup__avatar-text {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}

.ohp-wa-popup__online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #075E54;
}

.ohp-wa-popup__info { flex: 1; }

.ohp-wa-popup__name {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}

.ohp-wa-popup__title,
.ohp-wa-popup__hours {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 2px;
}

.ohp-wa-popup__close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ohp-wa-popup__body {
  background: #ECE5DD;
  padding: 16px;
  min-height: 100px;
}

.ohp-wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.ohp-wa-bubble p {
  margin: 0 0 6px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: #111;
  line-height: 1.5;
}

.ohp-wa-bubble p:last-of-type { margin-bottom: 0; }

.ohp-wa-bubble__time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #999;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
}

.ohp-wa-popup__footer { padding: 12px 16px; background: #fff; }

.ohp-wa-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: background 0.2s;
}

.ohp-wa-popup__cta:hover { background: #20B858; color: #fff; }

/* ── Property Inline CTA ── */
.ohp-wa-property-cta {
  margin: 32px 0;
  background: linear-gradient(135deg, #0A1A0F, #1A6B3C);
  border-radius: 14px;
  overflow: hidden;
}

.ohp-wa-property-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.ohp-wa-property-cta__text strong {
  display: block;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ohp-wa-property-cta__text span {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}

.ohp-wa-property-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}

/* ── Shortcode Styles ── */
.ohp-wa-shortcode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s;
  background: #25D366;
  color: #fff;
}

.ohp-wa-shortcode--medium { padding: 12px 24px; font-size: 15px; }
.ohp-wa-shortcode--small  { padding: 8px 16px; font-size: 13px; }
.ohp-wa-shortcode--large  { padding: 16px 32px; font-size: 17px; }

.ohp-wa-shortcode--banner {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  background: #25D366;
}

@media (max-width: 600px) {
  .ohp-wa-popup { width: calc(100vw - 32px); right: 16px; }
  .ohp-wa-property-cta__inner { flex-direction: column; }
  .ohp-wa-property-btn { width: 100%; justify-content: center; }
}
