/* ==============================
   WhatsApp Branch Widget (fixo)
   ============================== */

:root {
  --wa-green: #25D366;
  --wa-dark: #075E54;
  --wa-text: #0f172a;
  --wa-bg: #ffffff;
  --wa-shadow: 0 10px 30px rgba(0,0,0,0.15);
  --wa-z: 9999;
  --wa-gap: 14px;
  --wa-radius: 18px;
  --wa-item-radius: 12px;
  --wa-size: 56px;
  --wa-pad: 12px;
}

/* container fixo */
.wa-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--wa-z);
  display: grid;
  gap: var(--wa-gap);
  align-items: end;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

/* botão redondo */
.wa-button {
  width: var(--wa-size);
  height: var(--wa-size);
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--wa-green), #13c05a);
  box-shadow: var(--wa-shadow);
  display: grid;
  place-items: center;
  transition: transform .15s ease, filter .2s ease;
}

.wa-button:hover { transform: translateY(-1px) scale(1.02); }
.wa-button:active { transform: translateY(0) scale(0.98); }
.wa-button:focus { outline: 2px solid rgba(37,211,102,.6); outline-offset: 2px; }

.wa-icon {
  width: 26px;
  height: 26px;
  fill: white;
}

/* menu (drop-up) */
.wa-menu {
  position: absolute;
  right: 0;
  bottom: calc(var(--wa-size) + var(--wa-gap));
  width: min(86vw, 320px);
  background: var(--wa-bg);
  border-radius: var(--wa-radius);
  box-shadow: var(--wa-shadow);
  padding: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.wa-widget.open .wa-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wa-menu-header {
  font-weight: 700;
  color: var(--wa-text);
  padding: 8px 10px 6px;
}

/* itens */
.wa-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px;
  border-radius: var(--wa-item-radius);
  text-decoration: none;
  background: #f8fafc;
  color: var(--wa-text);
  border: 1px solid #eef2f7;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}

.wa-item:hover {
  background: #eff6ff;
  border-color: #dbeafe;
  transform: translateY(-1px);
}

.wa-title { font-weight: 600; }
.wa-number { font-size: 0.92rem; color: #334155; }

/* barra simples sem JS */
.wa-noscript {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--wa-z);
  background: #0b1220;
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.95rem;
}
.wa-noscript a { color: #a7f3d0; text-decoration: underline; }

/* mobile tweaks */
@media (max-width: 480px) {
  .wa-widget { right: 12px; bottom: 12px; }
  .wa-menu { width: min(92vw, 320px); }
}
