/* FIBRA_BRASIL_WHATSAPP_V16 - botão flutuante oficial do contato */
.fb16-whatsapp {
  box-sizing: border-box;
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1fc862;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(14, 69, 41, .25);
  text-decoration: none;
  z-index: 15000;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.fb16-whatsapp svg {
  width: 35px;
  height: 35px;
  display: block;
  pointer-events: none;
}
.fb16-whatsapp:hover,
.fb16-whatsapp:focus-visible {
  background: #14ad51;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 69, 41, .3);
}
.fb16-whatsapp:focus-visible {
  outline: 3px solid #1976d2;
  outline-offset: 3px;
}
.fb16-whatsapp::after {
  content: 'Fale no WhatsApp';
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  background: #0d2440;
  color: #fff;
  font: 600 12px/1.2 Inter, system-ui, sans-serif;
  padding: 9px 12px;
  border-radius: 9px;
  box-shadow: 0 5px 15px rgba(2, 22, 39, .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.fb16-whatsapp:hover::after,
.fb16-whatsapp:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
/* O botão Voltar ao topo da V9 permanece acessível, sem colidir com o WhatsApp. */
#fb9-top.fb9-top {
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
}
/* Quando a barra de consentimento V15 está aberta, ambos sobem acima dela. */
html.fb15-banner-visible .fb16-whatsapp {
  bottom: calc(var(--fb15-height, 200px) + 14px);
}
html.fb15-banner-visible #fb9-top.fb9-top {
  bottom: calc(var(--fb15-height, 200px) + 90px);
}
@media (max-width: 767px) {
  .fb16-whatsapp { width: 56px; height: 56px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fb16-whatsapp svg { width: 33px; height: 33px; }
  .fb16-whatsapp::after { display: none; }
  #fb9-top.fb9-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  html.fb15-banner-visible #fb9-top.fb9-top { bottom: calc(var(--fb15-height, 200px) + 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .fb16-whatsapp, .fb16-whatsapp::after { transition: none; }
}
