.whatsapp-widget {
  --wa-green: #087d42;
  --wa-soft: #e9f9ee;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 356px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.whatsapp-panel {
  position: relative;
  margin-bottom: 14px;
  padding: 26px 24px 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d4e7da;
  border-radius: 20px;
  box-shadow: 0 16px 60px #10092026, 0 2px 8px #1009200d;
  pointer-events: auto;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
.whatsapp-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: #686470;
  font-size: 25px;
  line-height: 1;
  border-radius: 50%;
}
.whatsapp-close:hover { color: var(--ink); background: #f2f0f5; }
.whatsapp-person { display: flex; align-items: center; gap: 12px; padding-right: 24px; margin-bottom: 24px; }
.whatsapp-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 43% 30%; }
.whatsapp-person strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.whatsapp-person span { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.whatsapp-panel h2 { font-size: 19px; letter-spacing: -.4px; line-height: 1.3; font-weight: 700; margin-bottom: 10px; }
.whatsapp-panel > p { font-size: 14px; line-height: 1.6; color: #686470; }
.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--wa-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: background .2s;
}
.whatsapp-cta:hover { background: #066835; }
.whatsapp-cta span { font-size: 21px; font-weight: 400; }
.whatsapp-panel .whatsapp-note { color: #686470; font-size: 11px; text-align: center; margin-top: 14px; }
.whatsapp-launcher {
  width: 58px;
  height: 58px;
  margin-left: auto;
  border: 1px solid #ffffff50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 6px 24px #06462430;
  pointer-events: auto;
  transition: background .2s;
}
.whatsapp-launcher:hover { background: #066835; }
.whatsapp-launcher .whatsapp-chevron { display: none; }
.whatsapp-launcher[aria-expanded=true] > svg:first-child { display: none; }
.whatsapp-launcher[aria-expanded=true] .whatsapp-chevron { display: block; }
.whatsapp-widget :focus-visible { outline-color: var(--wa-green); }
body.modal-open .whatsapp-widget { visibility: hidden; }
@media (max-width: 760px) {
  .whatsapp-widget { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar:not(.is-hidden) ~ .whatsapp-widget { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .whatsapp-panel { padding: 24px 22px 18px; max-height: calc(100dvh - 190px - env(safe-area-inset-bottom, 0px)); }
  .whatsapp-launcher { width: 52px; height: 52px; }
  .whatsapp-person { margin-bottom: 20px; }
  .whatsapp-panel h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget * { transition: none; }
}
