/* CONTENEDOR GENERAL */
#cw-wrapper {
  position: fixed;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

/* 👉 Posiciones */
.cw-bottom-right {
  right: 20px;
  align-items: flex-end;
}

.cw-bottom-left {
  left: 20px;
  align-items: flex-start;
}

/* BOTÓN PRINCIPAL */
.cw-button {
  background-color: #2ec723f;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 15px;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cw-button:hover {
  transform: scale(1.05);
}

/* POPUP */
.cw-popup {
  position: absolute;
  bottom: 60px; /* 👈 se muestra arriba del botón */
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Popup abierto */
.cw-popup.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 👉 Popup a la derecha */
.cw-bottom-right .cw-popup {
  right: 0;
  left: auto;
  transform-origin: bottom right;
}

/* 👈 Popup a la izquierda */
.cw-bottom-left .cw-popup {
  left: 0;
  right: auto;
  transform-origin: bottom left;
}

/* CABECERA */
.cw-popup-header {
  background-color: #25D366;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* CUERPO */
.cw-popup-body {
  padding: 10px 15px;
}

.cw-bubble {
  background: #f1f1f1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

/* PIE */
.cw-popup-footer {
  text-align: right;
  padding: 10px 15px;
}

.cw-open-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cw-open-btn:hover {
  background: #20b358;
}

.cw-bubble {
  white-space: pre-wrap; /* respeta saltos y espacios */
  line-height: 1.5; /* mejora la legibilidad */
}
