/* One recognizable contact action across all landing themes. */
body a[href^="https://wa.me/"]:any-link,
#agenda-widget a[href^="https://wa.me/"]:any-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  max-width: 100%;
  padding: .55em .9em;
  border: 1px solid #168142;
  border-radius: 999px;
  background: #25d366;
  color: #08391b;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
body a[href^="https://wa.me/"]:any-link::before,
#agenda-widget a[href^="https://wa.me/"]:any-link::before {
  content: "";
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("/img/whatsapp.svg") center / contain no-repeat;
  mask: url("/img/whatsapp.svg") center / contain no-repeat;
}
body a[href^="https://wa.me/"]:any-link:hover,
#agenda-widget a[href^="https://wa.me/"]:any-link:hover {
  background: #19be58;
  color: #072e16;
  text-decoration: none;
}
body a[href^="https://wa.me/"]:any-link:focus-visible,
#agenda-widget a[href^="https://wa.me/"]:any-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #08391b;
}
body a.wa-flotante[href] {
  position: fixed;
  z-index: 55;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid white;
  box-shadow: 0 3px 14px #112b203b;
}
body a.wa-flotante[href]::before { width: 29px; height: 29px; }
body .bar {
  right: calc(76px + env(safe-area-inset-right, 0px));
  grid-template-columns: 1fr;
}
body .bar > a:only-child { flex: 1; }
/* Avoid covering the calendar while choosing a time or using the phone keyboard. */
@media (max-width: 820px) {
  body .bar[hidden] + a.wa-flotante,
  body:has(form :focus) a.wa-flotante { visibility: hidden; }
}
