.whatsapp-chat {
  --wa-green: #24c978;
  --wa-gold: #e3bb62;
  position: fixed;
  z-index: 1060;
  right: 18px;
  bottom: 24px;
  width: min(324px, calc(100vw - 28px));
  color: #242820;
  font-family: Arial, sans-serif;
}
.whatsapp-chat[hidden] { display: none !important; }
.whatsapp-chat *, .whatsapp-chat *::before, .whatsapp-chat *::after { box-sizing: border-box; }
.whatsapp-chat__panel {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(185, 147, 63, .62);
  border-radius: 16px;
  background: linear-gradient(155deg, #ffffff, #f6f8f3 78%);
  box-shadow: 0 18px 56px rgba(0,0,0,.35), 0 0 28px rgba(36,201,120,.14), inset 0 1px #fff;
  transform-origin: right bottom;
  animation: waPanelEnter .62s cubic-bezier(.2,.9,.26,1) both, waPanelAura 4.5s ease-in-out .65s infinite;
}
.whatsapp-chat__panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  clip-path: inset(0 round 16px);
  pointer-events: none;
  background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,.1) 46%, rgba(36,201,120,.04) 54%, transparent 68%);
  transform: translateX(-120%);
  animation: waPanelSweep 5.4s ease-in-out 1.2s infinite;
}
.whatsapp-chat__panel::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: -12px;
  z-index: 0;
  width: 24px;
  height: 24px;
  border-right: 2px solid #9d7a35;
  border-bottom: 2px solid #9d7a35;
  border-radius: 0 0 5px 0;
  background: #fff;
  transform: rotate(45deg);
  filter: drop-shadow(2px 3px 4px rgba(20,93,49,.22));
}
.whatsapp-chat__header, .whatsapp-chat__body { position: relative; z-index: 1; }
.whatsapp-chat__header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(34,131,75,.15);
  background: linear-gradient(100deg, #effaf2, #fff 82%) !important;
}
.whatsapp-chat__brand-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(91,232,156,.7);
  border-radius: 14px;
  color: #d7ffdf;
  background: linear-gradient(145deg, #2bbd71, #10633f);
  box-shadow: 0 0 0 4px rgba(36,201,120,.08), 0 0 18px rgba(36,201,120,.26);
  animation: waBrandPulse 3s ease-in-out infinite;
}
.whatsapp-chat__brand-icon svg { width: 24px; height: 24px; fill: currentColor; }
.whatsapp-chat__heading { display: grid; flex: 1; gap: 4px; min-width: 0; }
.whatsapp-chat__heading strong { color: #183321 !important; font-size: 14px; font-weight: 800; animation: waTextGlow 3.6s ease-in-out infinite; }
.whatsapp-chat__heading > span { color: #46594b !important; font-size: 11px; }
.whatsapp-chat__heading i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #42e58e; box-shadow: 0 0 9px rgba(66,229,142,.85); animation: waOnlinePulse 1.8s ease-in-out infinite; }
.whatsapp-chat__close { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(36,73,47,.12); border-radius: 50%; color: #3d4c40; background: rgba(28,70,41,.055); font-size: 21px; cursor: pointer; transition: background .18s, transform .18s; }
.whatsapp-chat__close:hover { transform: rotate(90deg); background: rgba(28,70,41,.12); }
.whatsapp-chat__body { padding: 14px; }
.whatsapp-chat__welcome { max-width: 94%; margin-bottom: 12px; padding: 11px 12px; border: 1px solid rgba(33,137,74,.13); border-radius: 4px 13px 13px 13px; color: #27392c; background: linear-gradient(135deg, #effaf2, #f7fbf7); font-size: 12px; line-height: 1.55; animation: waMessageEnter .52s .12s both; }
.whatsapp-chat__form { display: grid; gap: 9px; }
.whatsapp-chat__form textarea { display: block; width: 100%; min-height: 72px; max-height: 132px; resize: vertical; padding: 11px 12px; border: 1px solid rgba(49,91,57,.22); border-radius: 10px; outline: 0; color: #202b23; background: #fff; font: 13px/1.5 Arial,sans-serif; transition: border-color .2s, box-shadow .2s; }
.whatsapp-chat__form textarea:focus { border-color: #57d98e; box-shadow: 0 0 0 3px rgba(36,201,120,.12); }
.whatsapp-chat__form textarea::placeholder { color: #737b73; }
.whatsapp-chat__form button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 13px; border: 1px solid #8be8ae; border-radius: 10px; color: #082c19; background: linear-gradient(110deg, #7ce9a6, #39cb7a 56%, #24a95d); box-shadow: 0 5px 18px rgba(36,201,120,.18), inset 0 1px rgba(255,255,255,.5); font-size: 12px; font-weight: 800; cursor: pointer; transition: filter .18s, box-shadow .18s, transform .18s; }
.whatsapp-chat__form button:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 7px 22px rgba(36,201,120,.3), inset 0 1px rgba(255,255,255,.55); }
.whatsapp-chat__form button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: waSendNudge 1.8s ease-in-out infinite; }
.whatsapp-chat__note { display: block; margin-top: 9px; color: #5d685f; font-size: 10px; text-align: center; }
.whatsapp-chat__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes waPanelEnter { 0% { opacity: 0; transform: translateY(48px) scale(.88); filter: blur(5px); } 72% { opacity: 1; transform: translateY(-4px) scale(1.015); filter: blur(0); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes waPanelAura { 0%,100% { box-shadow: 0 18px 56px rgba(0,0,0,.35), 0 0 20px rgba(36,201,120,.1), inset 0 1px #fff; } 50% { box-shadow: 0 18px 56px rgba(0,0,0,.35), 0 0 30px rgba(36,201,120,.22), inset 0 1px #fff; } }
@keyframes waPanelSweep { 0%,18% { transform: translateX(-120%); } 64%,100% { transform: translateX(120%); } }
@keyframes waBrandPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.055); box-shadow: 0 0 0 5px rgba(36,201,120,.1), 0 0 22px rgba(36,201,120,.42); } }
@keyframes waTextGlow { 0%,100% { text-shadow: 0 0 0 rgba(35,141,76,0); } 50% { text-shadow: 0 0 9px rgba(35,141,76,.28); } }
@keyframes waOnlinePulse { 0%,100% { opacity: .7; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes waMessageEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes waSendNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@media (max-width: 575px) {
  .whatsapp-chat { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); width: min(324px, calc(100vw - 24px)); }
  .whatsapp-chat__panel { border-radius: 18px; }
  .whatsapp-chat__panel::before { clip-path: inset(0 round 18px); }
  .whatsapp-chat__header { min-height: 66px; padding: 10px 12px; }
  .whatsapp-chat__body { padding: 12px; }
}
@media (max-width: 575px) {
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop {
    transform: none;
    border-top-color: rgba(119, 239, 164, .95) !important;
    box-shadow: 0 -8px 28px rgba(0,0,0,.5), 0 -2px 19px rgba(36,201,120,.27), inset 0 1px 0 rgba(255,255,255,.2);
  }
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop::before {
    animation: waNavTopGleam 2.4s ease-in-out infinite;
  }
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(86,235,148,.9), transparent);
    box-shadow: 0 0 9px rgba(36,201,120,.8);
    animation: waNavBottomGlow 2.2s ease-in-out infinite;
  }
  body.whatsapp-chat-open .footerfixedcontent [data-whatsapp-chat-trigger] .footercontenttext {
    border-color: rgba(114,246,164,.96);
    color: #eaffef !important;
    background: linear-gradient(145deg, #5be493, #158a4a 62%, #075b34) !important;
    box-shadow: 0 0 0 4px rgba(36,201,120,.12), 0 0 18px rgba(36,201,120,.48), inset 0 1px rgba(255,255,255,.38);
    animation: waNavActionGlow 1.9s ease-in-out infinite;
  }
  body.whatsapp-chat-open .footerfixedcontent [data-whatsapp-chat-trigger] small { color: #baffd0; text-shadow: 0 0 9px rgba(55,225,128,.6); }
}
@keyframes waNavTopGleam { 0%,100% { opacity: .45; transform: translateX(-18%); } 50% { opacity: 1; transform: translateX(165%); } }
@keyframes waNavBottomGlow { 0%,100% { opacity: .42; transform: scaleX(.72); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes waNavActionGlow { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-chat__panel, .whatsapp-chat__panel::before, .whatsapp-chat__brand-icon, .whatsapp-chat__heading strong, .whatsapp-chat__heading i, .whatsapp-chat__welcome, .whatsapp-chat__form button svg { animation: none !important; }
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop,
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop::before,
  body.whatsapp-chat-open .footerfixedcontent .footercontentdesktop::after,
  body.whatsapp-chat-open .footerfixedcontent [data-whatsapp-chat-trigger] .footercontenttext { animation: none !important; }
  .whatsapp-chat__close, .whatsapp-chat__form button { transition: none; }
}
