/* WhatsApp flutuante + conversa guiada. Tudo que é comando do WhatsApp é VERDE (regra do dono): botão #25D366, topo #075E54,
   opções com contorno #1DA851 e letra #075E54, botão final #1DA851. */
.bc-botao {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font: 700 16px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.4), 0 0 0 4px rgb(255 255 255 / 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}
.bc-botao-texto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bc-botao:hover {
  background: #1da851;
  transform: scale(1.05);
}
.bc-opcao:focus-visible {
  outline: 2px solid #5a3d31;
  outline-offset: 2px;
}
.bc-botao:focus-visible,
.bc-final:focus-visible,
.bc-voltar:focus-visible,
.bc-fechar:focus-visible,
.bc-campo input:focus-visible,
.bc-enviar:focus-visible {
  outline: 3px solid #075e54;
  outline-offset: 2px;
}

.bc-painel {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100dvh - 210px));
  overflow: hidden;
  border-radius: 20px;
  background: #efeae2;
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.5);
  font-family: Inter, system-ui, sans-serif;
  color: #1f2a2a;
}
.bc-painel[hidden] {
  display: none;
}
.bc-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #075e54;
  color: #fff;
}
.bc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.bc-quem {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.2;
}
.bc-quem strong {
  font-size: 16px;
}
.bc-quem span {
  font-size: 12.5px;
  opacity: 0.85;
}
.bc-fechar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.bc-fechar:hover {
  background: rgb(255 255 255 / 0.15);
}

.bc-msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 8px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.bc-msg {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.1);
  animation: bc-entra 0.2s ease;
}
@keyframes bc-entra {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.bc-bot {
  align-self: flex-start;
  border-top-left-radius: 4px;
  background: #fff;
}
.bc-eu {
  align-self: flex-end;
  border-top-right-radius: 4px;
  background: #d9fdd3;
}
.bc-digitando {
  display: inline-flex;
  gap: 5px;
  padding: 13px 15px;
}
.bc-digitando span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a9a96;
  animation: bc-ponto 1s ease-in-out infinite;
}
.bc-digitando span:nth-child(2) {
  animation-delay: 0.15s;
}
.bc-digitando span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bc-ponto {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.bc-acoes {
  flex: none;
  max-height: 60%;
  padding: 10px 12px 12px;
  overflow-y: auto;
  background: #f7f4ee;
  border-top: 1px solid #e0d9cc;
}
.bc-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bc-opcao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid #d9cbc0;
  border-radius: 999px;
  background: #fff;
  color: #5a3d31;
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
/* passar o mouse: fundo marrom bem clarinho; o desenho continua aparecendo (nada de preencher de verde) */
.bc-opcao:hover {
  background: #f3e9e1;
  border-color: #5a3d31;
  color: #3b2820;
}
.bc-grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.bc-grade .bc-opcao {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 86px;
  padding: 6px 4px;
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
}
.bc-ic {
  display: grid;
  place-items: center;
}
.bc-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.bc-campo {
  display: flex;
  gap: 8px;
}
.bc-campo input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #c9d3cf;
  border-radius: 999px;
  background: #fff;
  font: 16px Inter, system-ui, sans-serif;
  color: #1f2a2a;
}
.bc-enviar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #1da851;
  color: #fff;
  cursor: pointer;
}
.bc-final {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1da851;
  color: #fff;
  font: 700 17px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
}
.bc-final:hover {
  background: #15803d;
}
.bc-voltar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #075e54;
  font: 600 14px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.bc-voltar:hover {
  background: #e3ece9;
}

@media (max-width: 520px) {
  .bc-botao {
    right: 14px;
    bottom: 14px;
  }
  .bc-painel {
    right: 8px;
    bottom: 94px;
    width: calc(100vw - 16px);
    height: min(620px, calc(100dvh - 100px));
  }
}
