/* Botón de WhatsApp con globito (igual que arsoft_website_whatsapp_chat de Odoo) */
.o_arsoft_wa {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
  line-height: 1.35;
}

.o_arsoft_wa [hidden] {
  display: none !important;
}

.o_arsoft_wa_burbuja {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.o_arsoft_wa_burbuja:hover {
  transform: scale(1.07);
}

.o_arsoft_wa_aviso {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.o_arsoft_wa_globito {
  position: relative;
  width: min(300px, calc(100vw - 36px));
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  animation: o_arsoft_wa_aparecer 0.3s ease-out;
}

.o_arsoft_wa_globito .o_arsoft_wa_link {
  display: flex;
  gap: 10px;
  padding: 12px 30px 12px 12px;
  color: #111 !important;
  text-decoration: none !important;
}

.o_arsoft_wa_globito img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.o_arsoft_wa_texto {
  font-size: 14px;
}

.o_arsoft_wa_texto strong {
  display: block;
  font-size: 13px;
}

.o_arsoft_wa_texto > span {
  display: block;
  white-space: pre-line;
}

.o_arsoft_wa_texto em {
  display: block;
  margin-top: 4px;
  color: #128c4b;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.o_arsoft_wa_cerrar {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.o_arsoft_wa_cerrar:hover {
  color: #111;
}

@keyframes o_arsoft_wa_aparecer {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .o_arsoft_wa_globito {
    animation: none;
  }
}
