/* Vebory — buton flotant WhatsApp (comun tuturor paginilor publice)
   Fișier partajat: site-final/assets/whatsapp.css
   Nu depinde de alte fișiere; se încarcă pe paginile publice RO + EN. */

#vb-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000; /* sub meniul mobil (9998/9999), peste conținutul paginii */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  width: 56px;
  padding: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font: 600 15px/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: width .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

#vb-wa .vb-wa-ico {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: currentColor;
}

#vb-wa .vb-wa-txt {
  display: none;
  white-space: nowrap;
  padding-right: 20px;
}

#vb-wa:hover,
#vb-wa:focus-visible {
  width: auto;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

#vb-wa:hover .vb-wa-txt,
#vb-wa:focus-visible .vb-wa-txt { display: block; }

#vb-wa:focus-visible {
  outline: 3px solid #c6f24e;
  outline-offset: 3px;
}

#vb-wa:active { transform: translateY(0); }

@media (max-width: 640px) {
  #vb-wa {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    height: 52px;
    width: 52px;
  }
  #vb-wa .vb-wa-ico { width: 27px; height: 27px; flex-basis: 27px; }
  /* pe ecrane mici eticheta apare doar la focus (tastatură), nu la atingere */
  #vb-wa:hover { width: 52px; transform: none; }
  #vb-wa:hover .vb-wa-txt { display: none; }
  #vb-wa:focus-visible { width: auto; }
  #vb-wa:focus-visible .vb-wa-txt { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  #vb-wa { transition: none; }
  #vb-wa:hover, #vb-wa:active { transform: none; }
}

@media print {
  #vb-wa { display: none; }
}
