/* Estilos del widget del recepcionista. Todo bajo #rt- para no chocar con
   el CSS de la web del cliente donde se pegue. */

#rt-burbuja {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rt-color, #D4FF3F);
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
#rt-burbuja:hover { transform: scale(1.06); }

#rt-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  font-family: -apple-system, system-ui, sans-serif;
}
#rt-panel.rt-abierto { display: flex; }

#rt-cabecera {
  background: #111;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#rt-cabecera strong { font-size: 14px; }
#rt-cabecera span { font-size: 12px; opacity: 0.7; display: block; }
#rt-cerrar { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px; }

#rt-mensajes {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f7f7;
}
.rt-burbuja-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}
.rt-usuario { align-self: flex-end; background: var(--rt-color, #D4FF3F); color: #111; }
.rt-bot { align-self: flex-start; background: #fff; color: #222; border: 1px solid #e5e5e5; }

#rt-whatsapp {
  display: block;
  text-align: center;
  font-size: 12.5px;
  padding: 8px;
  background: #eafce0;
  color: #1a7a1a;
  text-decoration: none;
  flex-shrink: 0;
}

#rt-datos {
  padding: 10px 12px;
  border-top: 1px solid #eee;
  display: none;
  gap: 6px;
  flex-direction: column;
  flex-shrink: 0;
}
#rt-datos.rt-abierto { display: flex; }
#rt-datos input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
}
#rt-datos button {
  border: none;
  border-radius: 8px;
  padding: 8px;
  background: #111;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

#rt-pie {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
#rt-texto {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  resize: none;
  font-family: inherit;
}
#rt-enviar {
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
#rt-datos-link {
  align-self: flex-start;
  margin: 0 12px 8px;
  font-size: 12px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
}
